Solved

Call fail from Lync to Asterisk on VPN

Posted on 2015-02-15
3
418 Views
Last Modified: 2015-02-21
I integrated Lync 2013 with AsteriskNow (Latest version) and I can make calls from Asterisk extension with Zoiper (SIP software) to Lync Client extension but no the other way around.

The Lync client is connected over VPN (No Edge)

I receivng the following error on Wireshark when trying to call from Lync to the SIP client (SIP client is connected to AsteriskNow over the local network).

SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 172.16.24.155:51790;rport=51790;received=172.16.24.155;branch=z9hG4bKfd52e98e
Call-ID: 9ef3ffad-4336-4931-be3a-8b213eb11923
From: "Mohammed Hamada" <sip:+2163314210;ext=4210@adeo.com.tr;user=phone>;tag=275fb6f31a;epid=5AC3F6406A
To: <sip:3700@172.16.24.195;user=phone>;tag=z9hG4bKfd52e98e
CSeq: 8760 INVITE
WWW-Authenticate: Digest  realm="asterisk",nonce="1424018094/b7069ae0923f70bac5190f7aaca6a788",opaque="7f8e58875873c02b",algorithm=md5,qop="auth"
Server: FPBX-12.0.2(13.0.1)
Content-Length:  0




ACK sip:3700@172.16.24.195;user=phone SIP/2.0
FROM: "Mohammed Hamada"<sip:+2163314210;ext=4210@adeo.com.tr;user=phone>;tag=275fb6f31a;epid=5AC3F6406A
TO: <sip:3700@172.16.24.195;user=phone>;tag=z9hG4bKfd52e98e
CSEQ: 8760 ACK
CALL-ID: 9ef3ffad-4336-4931-be3a-8b213eb11923
MAX-FORWARDS: 70
VIA: SIP/2.0/TCP 172.16.24.155:51790;branch=z9hG4bKfd52e98e
CONTENT-LENGTH: 0

Open in new window


This is my Lync trunk configuration (Lync is the host and 172.16.24.195 is the Asterisknow PBX IP
I would appreciate any help

host=172.16.24.155
transport=tcp,udp
port=5060
insecure=very
fromdomain=172.16.24.195
type=friend
context=from-internal
promiscredir=yes
qualify=yes
canreinvite=yes
0
Comment
Question by:Mohammed Hamada
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Expert Comment

by:Phonebuff
ID: 40612235
On Asterisk try adding the two variables to the Trunk description -- Peer & User

host=
fromdomain =
0
 
LVL 24

Accepted Solution

by:
Mohammed Hamada earned 0 total points
ID: 40613765
Hi Phonebuff,

I managed to solve it my self, by mistake i configured chan_sip on 5060 while pjsip was also on the 5060. I reconfigured it on 5061 and changed the configuration on Lync topology as well and calls started working.

I documented the steps in a detailed article here
http://www.moh10ly.com/blog/VoIP/freepbx-6-12-65-integration-with-lync-2013

Thanks for your help.
0
 
LVL 24

Author Closing Comment

by:Mohammed Hamada
ID: 40622804
Self managed
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Callkit and Android comparison 4 43
simple redial program 3 124
SIP / Streaming - real time communications testing 8 124
Single Number Reach 3 49
This is a step by step guide on creating single number reach (mobility) for Cisco Call Manager.  After configuring this when someone calls your deskphone after 3-4 rings your cell phone will start to ring.  If you do not answer the call will go to y…
I'm Dumb-phoned(ed) Last week, I noticed this message when adding events to my Google Calendar: On June 27th (2015), Google is removing SMS as a notification option for Google Calendar events.  Their assumption is that enough people have smart p…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question