Solved

Call fail from Lync to Asterisk on VPN

Posted on 2015-02-15
3
408 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Every year the snow affects people and businesses. According to the Federation of Small Businesses (FSB), in 2009, UK businesses lost an estimated £1.2bn (http://news.bbc.co.uk/1/hi/business/7864804.stm) because of bad weather. This article was c…
As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
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…

815 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

12 Experts available now in Live!

Get 1:1 Help Now