Hi Halomoan,

Mainly because the NAT detection on SIP replied is very poor - you can check only if the contact address is a private one or not. The other nat test are not applicable for replies (but only for requests).

Anthow, when you process the request, you learn that the calee is behind NAT, so you can simple remember this (in RR) than detecting it each time when receiving a reply.

regards,
bogdan

Halomoan Chow wrote:
Dear All

I don't understand why in the Openser+MediaProxy i need
record_route_preset("x.x.x.x:5060;nat=yes"); and search("^Route:.*;nat=yes") What is the purpose while I can do client_nat_test to see if the request is come from a nat-ed client.

If I remove search("^Route:.*;nat=yes") from below statement, I can do re-INVITE without any problem because it still have client_nat_test to find out the nat in between.

if (client_nat_test("3") || search("^Route:.*;nat=yes")) {
   setbflag(6);
   use_media_proxy();
};


Hope someone can give me a clue.

Thank you.

Regards,

Halomoan
------------------------------------------------------------------------

_______________________________________________
Users mailing list
Users@openser.org
http://openser.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
Users@openser.org
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to