Skype for Business, Asterisk and SIP REFER

Skype-For-Business-Asterisk-SIP-ReferIf you don’t use VoIP gateway that “officially” supported by Microsoft and Skype for Business you may experience troubles in some cases as those devices may not interpret correctly SIP Refer messages sent by Skype for Business Mediation Server. The problem I’ve experienced in my environment was that when you activate “Call me at” feature in Skype for Business mobile client calls were immediately dropped after you had picked up your phone. I’ve used Asterisk as VoIP gateway and Skype for Business uses it for all calls to PSTN and cell carriers.

The scenario is as follows:

  1. User has “Call me at” feature activated in Skype for Business mobile client (either of two options: “VoIP over Wi-Fi only” or “Cellular Network”)
  2. User dials some PSTN or mobile number with Wi-Fi disabled so “”Call me at” activates.
  3. User receives a call from Skype for Business Mediation Server
  4. User picks up a phone and call is dropped after 1-2 seconds.

SIP debug in Asterisk console showed me nothing special but one notice: Got OK on REFER Notify message

And call always gets disconnected after this message:

Got-OK-on-REFER-Notify-messageStill this is not much to work with so I dig deeper and found the following in debug messages (full debug was activated):

Asterisk can’t execute call transfer as Skype requested. The full SIP session you can find on the first image of this post.

After this my thought was that SIP Refer message from mediation server could be a problem. I opened Voice Routing –> Trunk Configuration in Skype for Business Control Panel and set Refer Support option to None. And that did the trick!

Skype-for-Business-trunk-configuration-refer-support

 

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [dot] com