[asterisk-users] Asterisk not receiving call from VPN address

Paul Belanger paul.belanger at polybeacon.com
Tue Jan 21 09:55:22 CST 2014


On Tue, Jan 21, 2014 at 10:47 AM, Paul Belanger
<paul.belanger at polybeacon.com> wrote:
> On Tue, Jan 21, 2014 at 12:40 AM, David Cunningham
> <dcunningham at voisonics.com> wrote:
>> Hi Paul,
>>
>> Using ngrep/tcpdump shows the packet clearly going from the Kamailio server
>> and arriving at the Asterisk server. This is why it's a mystery that
>> Asterisk doesn't see the call coming in. We tried removing the firewall (so
>> iptables -L shows no rules at all) but that didn't help unfortunately.
>>
> You might think Kamailio is transmitting it to Asterisk, however
> without looking at the actually routing tables on Kamailio you'll
> never know if it actually made it to Asterisk.  Again, we need a pcap
> trace on both Kamailio and Asterisk, plus what your routes look like
> (route -n), for a call.  It will show us clearly what is happening.
>
> This all sounds like a routing issue, so your network admins should be
> able to help troubleshoot.
>
I finally re-read the complete thread.  When are you starting the VPN
on your Asterisk server, before or after Asterisk has started? If
after, and you are binding to 0.0.0.0, it is likely Asterisk is not
actually bound to your tun0 interface.  So, for a test, explicitly
have asterisk listen only on the tun0 interface, retry your call.

Or setup your tunnel, then stop Asterisk and start it again, that
should cause it to bind properly.


-- 
Paul Belanger | PolyBeacon, Inc.
Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter: https://twitter.com/pabelanger



More information about the asterisk-users mailing list