[SR-Users] Kamailio behind NAT

Andrew Pogrebennyk apogrebennyk at sipwise.com
Fri Jan 24 15:51:25 CET 2014


On 01/23/2014 05:12 PM, Klaus Darilion wrote:
>> 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.

John,
This function can be used to check the direction of every message:
http://kamailio.org/docs/modules/4.0.x/modules/rr.html#idp223296
You might also need to append the record-route parameters to remember
the flags you have passed to the manage_rtpproxy() initially.
Based on the direction of the request and initial flags you can
determine what flags to use when calling manage_rtpproxy() for a given
in-dialog requests and reply.

Hope this helps.
Andrew



More information about the sr-users mailing list