<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi all<br><br>i am successfull to check the UA behind NAT but i dont know what value of the flag will be stored in the usrloc <br><br>Could someone please let me know the value of Nated UA flag, that is stored in usrloc <br><br><br>my config :<br>modparam("nathelper", "natping_interval",180)<br>modparam("nathelper", "ping_nated_only", 1)<br>modparam("nathelper", "sipping_bflag", 7)<br>modparam("nathelper", "sipping_from", "sip:cucku@kamailio.org")<br>modparam("registrar|nathelper", "received_avp", "$avp(i:80)")<br>modparam("usrloc", "nat_bflag", 7)<br><br><br>route{<br><br>....<br>route("4");<br>if (method=="REGISTER")<br> {<br> if (isflagset(5))
{<br> setbflag(6);<br> setbflag(7);<br> }<br> if (!save("location"))<br> sl_reply_error();<br> exit;<br> }<br>}<br>route[4]{<br> force_rport();<br> if
(nat_uac_test("19")) {<br> if (method=="REGISTER") {<br> fix_nated_register();<br> } else {<br> fix_nated_contact();<br> }<br> setflag(5);<br> }<br> return;<br>}<br><br>mysql> select * from location\G<br>*************************** 1. row
***************************<br> id: 12<br> username: 1000<br> domain: NULL<br> contact: sip:1000@192.168.1.2:12280;rinstance=a4752f45bdc3ddd3<br> received: sip:210.245.35.150:12280<br> path: NULL<br> expires: 2010-01-05 17:48:56<br> q: -1.00<br> callid: YjE1NWJmYWYyYWMzZDg2ZDc5MjY0NDQyMGE5NDEwM2E.<br> cseq: 2<br>last_modified: 2010-01-05 16:48:56<br> flags: 0<br> cflags: 192<br>user_agent: eyeBeam release 1004p stamp 31962<br> socket:
udp:118.69.193.198:5060<br> methods: 5951<br><br><br>Thank you<br>Ha`<br><br><br></td></tr></table><br>