Solved

Call fail from Lync to Asterisk on VPN

Posted on 2015-02-15
3
393 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
  • 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 23

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 23

Author Closing Comment

by:Mohammed Hamada
ID: 40622804
Self managed
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Healthcare providers, insurance companies and other covered entities trust eFax Corporate to transmit their most sensitive documents. eFax Corporate can help your organization implement a HIPAA compliant cloud faxing solution.
What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now