[OpenSIPS-Users] Fixing the Contact Header for NAT

Juan Backson juanbackson at gmail.com
Wed Nov 26 06:58:08 CET 2008


I am having a problem with using B2BUA -> Opensips -> xLite behind NAT.
When the B2BUA sends back a 200OK, it is received by the SIP client behind
NAT, but the SIP client does not response properly with ACK when the xLite
is not in the same local LAN as the Opensips.  If xLite is connected within
the local LAN of Opensips, then xLite can response properly with ACK.  I
think this is due to Contact header not properly configured, but I did use
fix_nated_contact() inside the onreply_route[1].

onreply_route[1] {
    xlog("L_INFO", "Reply - S=$rs D=$rr F=$fu T=$tu IP=$si ID=$ci\n");
        search_append('Contact:.*sip:[^>[:cntrl:]]*', ';nat=yes');


Any suggestion on how to resolve this problem will be greatly appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081126/35646efe/attachment.htm 

More information about the Users mailing list