Good day. I am in the final few feet of my quest to remove my Sonus SBC and use Asterisk as the gateway between Lync 2013 and an AT&T BVOIP router. I have calls moving in and out for 90% of users. All calls come in fine and are routed to Lync properly and can be answered, put on hold, and transferred as expected. I have just a few (10 that I know of out of 400) Lync users that cannot dial out through Asterisk. The message I am getting is:
[2016-11-16 04:42:13] NOTICE[11065][C-0000003d]: chan_sip.c:26260 handle_request_invite: Call from ‘’ (10.1.10.76:52237) to extension ‘1585*******’ rejected because extension not found in context ‘default’.
Note that I replaced the dialed number with asterisks, but there was a full complete number there. From just about any other phone I can dial out fine. On this box there are no extensions setup. All I have is a catch all inbound route going to the Lync Trunk, and an outbound route for the typical numbers (911, 10 digit, 11 digit, international). I thought I was onto something because the Lync users did not have a phone number populated in Active Directory (hence the “blank” quotes after Call From.) Populating the number in AD doesn’t do it either. I have tried multiple settings in my SIP trunk options.
If it helps, all of the phones that fail seem to be “non users” - such as a front desk, guest phone, etc. They are setup the same in Lync with an active directory account, enterprise voice, standard URI (tel:+1312xxxxxxx;ext=10xxxx)
It works fine with the same users going through the Sonus SBC, which is doing nothing more than translating UDP SIP to TCP SIP. Below are most of the settings that I have configured - if there is anything else you would like to see, let me know. Thanks for the help. BTW - I went through heck getting this to work - a nice Blog post about my adventure will follow when Im done, in the hopes no one else has to go through this like I did…
TrunkToLync
Outgoing Peer Details - name - connect-with-lync
type=friend
transport=tcp
qualify=yes
promiscredir=yes
port=5058
insecure=very
host=10.1.10.75
dtmfmode=rfc2833
context=from-internal
canreinvite=yes
Incoming settings - user context - from-lync
type=friend
transport=tcp
qualify=no
port=5060
insecure=very
context=from-lync
other settings changed from default (and tried as default also)
Asterisk general SIP settings - allow anonymous Yes
Chan_SIP - enable TCP = Yes and added transport=tcp to sip settings
Inbound Route any/any goes directly to trunk-to-lync
Outbound route 911, 10 digit, 11 digit, go to the two AT&T trunks
Im using the latest FreePBX distro 10.13.66-17 , full updated, and Asterisk 13.
There are lots of other things I have tried before posting here, but ill take any advice, hopefully someone else has an idea - thanks!