Solved

Call fail from Lync to Asterisk on VPN

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

Technology Partners: 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

Hey there Heard about jingle, the add on for XMPP that enables point to point audio between two XMPP clients. No server config necessary. Actually quite a cool feature. However, how good is it if you can not use those voice capabilities to do a P…
Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
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…
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…

717 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