[SR-Users] Kamailio behind NAT

Klaus Darilion klaus.mailinglists at pernau.at
Thu Jan 23 17:12:13 CET 2014



On 23.01.2014 10:29, John Smith wrote:
> Hello Klaus,
>
> I had already two sockets bound each to two independent physical interfaces. I have added the force_send_socket at each rtpproxy

Just for clarity:

force_send_socket is for near_end NAT traversal of the SIP signaling, 
whereas manage_rtpproxy() is for the NAT traversal (near end and far 
end) of the RTP stream.

> It is necessary to use the cwie / cwei flags in the rtpproxy_manage call?

If rtpproxy uses only a single listen-IP, then these flags are not 
needed. Only if you operate rtpproxy in bridge mode, then you need these 
flags. Bridge mode is necessary if you do not have IP routing between 
the internal network and the "virtual external" network, or if you want 
to bridge between IPv4 and IPv6.

> Currently audio does not flow back to the softphones, it gets lost at Kamailio.

Actually it should get lost at rtpproxy.

Please post a SIP trace: ngrep -Wbyline -q -t -P "" port 5060

and post the setup (external + internal IP addresses) (you can send it 
privately to me or mangle the IP addresses if they are sensitive)

regards
Klaus



More information about the sr-users mailing list