System information
Users configured in chan_skype.conf must be created with the Skype
Manager interface. Personal Skype IDs are not allowed.
Our example Skype user will be pbx.shifteight.org. We’ll configure this user in
chan_skype.conf. There are additional options that could be set here, but for our pur-
poses we’re keeping it simple:
[general]
default_user=pbx.shifteight.org
[pbx.shifteight.org]
secret=my_secret_pass
context=skype_incoming
exten=start
buddy_autoadd=true
The default_user option in the [general] section is used to control which account we
should use when placing calls via Skype. If we had multiple accounts, the
default_user would be used when placing calls unless we specified a different user to
place the call as (we’ll discuss this further in the next section).
We’ve also defined the password (secret), the context incoming calls will enter into,
and the extension (exten) that will be executed within the context. If we had multiple
Skype users and wanted to control all of them from the same context, we could
give them each different extension values, such as exten=leifmadsen or
exten=russellbryant.
Additionally, we’ve enabled the ability to automatically add people who contact us to
our buddies list.
Placing and receiving calls via Skype
Placing a call to a Skype buddy is relatively straightforward. Like with other channel
types in Asterisk, the Skype channel type is used to place calls to endpoints on the Skype
network.
Utilizing the Dial() application from the dialplan, we can place calls to other Skype
users:
[LocalSets]
exten => 100,1,Answer()
same => n,Dial(Skype/vuc.me,30)
same => n,Playback(silence/1&user&is-curntly-unavail)
same => n,Hangup()
430 | Chapter 18: External Services