Skype Connect
About
Skype now supports SIP via Skype Connect, as part of its Skype for Business offering.
Click here to expand Table of Contents
Caveats
Note the EULA and Terms of Service, e.g. no reselling allowed, for business users only, no emergency calls, etc.Caveats
Also, incoming calls from Skype users are supported, but only Skype business accounts created via the Skype Manager (not for personal accounts), and Skype Connect only appears to support outgoing calls to landlines (via Skype Out), not outgoing calls to any Skype users.
SIP Profile
Skype _SIP User_and Password values can be found or set in the Skype Manager under Features > Skype Connect > SIP Profiles > YOUR PROFILE > Authentication Details. Note: this is not your Skype username, but a separate SIP username for each SIP Profile you've created in the Skype Manager.
conf/sip_profiles/external/skype.xml
Skype offers Registration or IP based authentication for each SIP profile.
Using the Registration method:
<include>
<gateway name="skype">
<param name="realm" value="sip.skype.com"/>
<param name="proxy" value="sip.skype.com"/> <!-- is this necessary? it's the same as realm -->
<param name="from-domain" value="sip.skype.com"/>
<param name="username" value="YOUR_SKYPE_sip_USERNAME"/>
<param name="from-user" value="YOUR_SKYPE_sip_USERNAME"/>
<param name="password" value="YOUR_SKYPE_SIP_PASSWORD"/>
<param name="contact-params" value="YOUR_SKYPE_sip_USERNAME@sip.skype.com"/>
<param name="extension" value="YOUR_SKYPE_sip_USERNAME"/>
<param name="extension-in-contact" value="true"/>
<param name="retry-seconds" value="30"/>
<param name="caller-id-in-from" value="false"/>
</gateway>
</include>
Param caller-id-in-from should be set false. Quick Start Guide: "If you are making outgoing calls, ensure that your SIP user name is in the From field in the SIP message (i.e. 990500000231@sip.skype.com)"
TODO: using IP based authentication
Dialplan Configuration
Main Source: http://forum.skype.com/index.php?showtopic=609283&st=0&p=2772523&#entry2772523
In the Skype Manager, you must purchase at least one channel for the SIP profile, and configuring incoming / outgoing appropriately.
Inbound: conf/dialplan/public/01_skype.xml
You must first configure the Incoming settings for the SIP Profile in the Skype Manager. Note that Skype business accounts can be configured here, but not Skype personal accounts.
<include>
<extension name="skype_inbound">
<condition field="destination_number" expression="YOUR_SKYPE_SIP_USERNAME">
<action application="transfer" data="YOU_LOCAL_NUMBER_WHERE_YOU_Want_TRANSFER_SKYPE_CALL XML default"/>
</condition>
</extension>
</include>
Outbound: conf/dialplan/default/01_skype.xml
This has not been tested yet.
Note: Any number beginning with YOURPREFIX (e.g. 00) will be routed via Skype. Replace YOURPREFIX with the prefix you would like to use.
<include>
<extension name="skype_outbound">
<condition field="destination_number" expression="^(YOURPREFIX\d+)$">
<action application="bridge" data="sofia/gateway/skype/$1"/>
</condition>
</extension>
</include>
Support
Quick Start Guide, Users Guides, Requirements, forums, etc. are available at the Skype Connect support page