[asterisk-users] How exactly does asterisk know what IP to send RTP traffic to?

Kevin Long kevinlong206 at gmail.com
Mon Nov 23 15:01:17 CST 2015


I have a somewhat confusing use case.  We use a mobile voip app and our users connect to our PBX via a public IP of our firewall which port forwards to asterisk (TLS and SRTP ports). Works fine.

Sometimes however, our users are also connected to our VPN (LT2P/Ipsec) which is served by the same firewall that our PBX sits behind at the datacenter.

In this case, most often the calls go through but there is no audio.  

I believe that asterisk “thinks” in this case that the IP of the clients,  to send RTP traffic to ,t is the firewall’s IP, rather than the IP that the VPN server assigned the client device. 

Does asterisk send RTP traffic to the IP which is in the IP headers of the SIP REGISTER , or can a client “specify” it’s truly reachable IP ?

I hope this makes sense. 


Kevin Long

More information about the asterisk-users mailing list