<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Nandini,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>The parameters and modules that you need to turn ON in your opensips.cfg file:</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>loadmodule
"nat_traversal.so"</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">The above line load the module and the given below paragraph will set to test the parameters.<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>route[nat_check] {<br> if (client_nat_test("3")) {<br> force_rport();<br>
fix_contact();<br> nat_keepalive();<br> }<br>}</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>Everytime you route a call first test the calls through the route(nat_check) which will fix all the NAT handling parameters.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>For e.g. if you are gonna route INVITE
request then you need to do it like this:</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"> if(is_method("INVITE")) {<br> route(invite_requests);<br> exit;<br> }<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>route[invite_requests] {<br>
route(nat_check);<br><br> if(!lookup("location")) {<br> sl_send_reply("404", "User Not registered");<br> exit;<br> }<br> t_on_reply("user_reply");<br> t_relay();<br> exit;<br> }<br></span></div><div><br>Its just an example that how I do it and always you can explore things and read the modules provided by OpenSIPS and upgrade yourself to use this server in all possible cases.<br> </div><div style="font-family:times new roman, new york, times, serif;font-weight:bold;color:rgb(3, 61, 33);">Regards,<br><br>Aamir Chougule<span class="tab"></span></div><div style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><span class="tab"><span
style="font-family:times new roman, new york, times, serif;font-weight:bold;text-decoration:underline;color:rgb(3, 61, 33);">Cell: 09167989111</span><br></span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Aamir <aamir_ryu@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> OpenSIPS users mailling list <users@lists.opensips.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, 7 May 2013 1:58 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [OpenSIPS-Users] one way audio problem<br> </font> </div> <div class="y_msg_container"><br>Hi Nandini,<br><br>You actually need to turn on the nat_traversal module I guess, will pass you the parameters
if I get time to do so.<br><br>--Aamir<br>--- Sent from My BlackBerry ---<br><br>-----Original Message-----<br>From: sermj 2012 <<a ymailto="mailto:sermj2012@gmail.com" href="mailto:sermj2012@gmail.com">sermj2012@gmail.com</a>><br>Sender: <a ymailto="mailto:users-bounces@lists.opensips.org" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a><br>Date: Tue, 7 May 2013 13:49:04 <br>To: <<a ymailto="mailto:users@lists.opensips.org" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>Reply-To: OpenSIPS users mailling list <<a ymailto="mailto:users@lists.opensips.org" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>Subject: [OpenSIPS-Users] one way audio problem<br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br><br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br></div> </div> </div> </div></body></html>