[OpenSIPS-Users] NAT problem

xiaofeng wasphin at gmail.com
Tue Jun 30 18:34:40 CEST 2015


Hi,

Thanks for the reply.

Manually insert header field "Record-Route" by
insert_hf("Record-Route: <sip:106.x.x.x>\r\n");

And, change IP in SDP

if (has_body("application/sdp")) {
    replace_all("IN IP4 [0-9]\.[0-9]\.[0-9]\.[0-9]", "106.x.x.x");
}

Seems work with WIFI behind one level NAT, not test 3G/4G.



-- 
xiaofeng

--
gpg key fingerprint:
2048R/5E63005B
C84F 671F 70B7 7330 4726  5EC8 02BC CBA2 5E63 005B

Distribution: Fedora 17 (Beefy Miracle)
Fedora Project <https://fedoraproject.org/>
--
trans-zh_cn mailing list
trans-zh_cn at lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150701/f93d3384/attachment.htm>


More information about the Users mailing list