?
Solved

Call fail from Lync to Asterisk on VPN

Posted on 2015-02-15
3
Medium Priority
?
478 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 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

Meet the Family that is Made for Collaboration

The TeamConnect Family product group as part of the Sennheiser for Business Portfolio comprising high-quality, technically well-conceived meeting solutions for business communication – designed for any meeting room and any meeting situation.

Question has a verified solution.

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

Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
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…
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…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

807 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