<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"></head><body>It should not be under main route block, just place it outside main route block.<br/><br/>For e.g.<br/><br/>route {<br/><br/>...<br/><br/>}<br/><br/>Place it here...<br/><br/>Or else paste your config file here.<br/><br/>--Aamir<div>--- Sent from My BlackBerry ---</div><hr/><div><b>From: </b> sermj 2012 &lt;sermj2012@gmail.com&gt;
</div><div><b>Date: </b>Tue, 7 May 2013 18:01:45 +0530</div><div><b>To: </b>aamir chougule&lt;aamir_ryu@yahoo.com&gt;; OpenSIPS users mailling list&lt;users@lists.opensips.org&gt;</div><div><b>Subject: </b>Re: [OpenSIPS-Users] one way audio problem</div><div><br/></div><div dir="ltr"><div><div><div><div><div>Thanku very much for your prompt response,<br><br></div>iam new to opensips, please tell me where to add these lines in opensips.cfg<br><br><span>route[nat_check] {<br>    if (client_nat_test(&quot;3&quot;)) {<br>
        force_rport();<br>       
 fix_contact();<br>        nat_keepalive();<br>    }<br>}</span><br><br></div>The above lines i have added in opensips.cfg under Routing logic,<br></div>when i start opensips server,iam getting errors,<br><br></div>please help me.<br>
<br></div>Nandini<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 7, 2013 at 2:30 PM, aamir chougule <span dir="ltr">&lt;<a href="mailto:aamir_ryu@yahoo.com" target="_blank">aamir_ryu@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><span>Hi Nandini,</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><span>The parameters and modules that you need to turn ON in your opensips.cfg file:</span></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<span>loadmodule
 &quot;nat_traversal.so&quot;</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
The above line load the module and the given below paragraph will set to test the parameters.<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><span>route[nat_check] {<br>    if (client_nat_test(&quot;3&quot;)) {<br>        force_rport();<br>
       
 fix_contact();<br>        nat_keepalive();<br>    }<br>}</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<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="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><span>For e.g. if you are gonna route INVITE
 request then you need to do it like this:</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
    if(is_method(&quot;INVITE&quot;)) {<br>        route(invite_requests);<br>        exit;<br>    }<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><span>route[invite_requests] {<br>   
 route(nat_check);<br><br>    if(!lookup(&quot;location&quot;)) {<br>        sl_send_reply(&quot;404&quot;, &quot;User Not registered&quot;);<br>        exit;<br>    }<br>        t_on_reply(&quot;user_reply&quot;);<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></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,clean,sans-serif">
<span><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"> <b><span style="font-weight:bold">From:</span></b> Aamir &lt;<a href="mailto:aamir_ryu@yahoo.com" target="_blank">aamir_ryu@yahoo.com</a>&gt;<div class="im">
<br> <b><span style="font-weight:bold">To:</span></b> OpenSIPS users mailling list &lt;<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>&gt; <br> </div><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><div class="h5"> <div><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 &lt;<a href="mailto:sermj2012@gmail.com" target="_blank">sermj2012@gmail.com</a>&gt;<br>Sender: <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a><br>
Date: Tue, 7 May 2013 13:49:04 <br>To: &lt;<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>&gt;<br>Reply-To: OpenSIPS users mailling list &lt;<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>&gt;<br>
Subject: [OpenSIPS-Users] one way audio problem<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">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 href="mailto:Users@lists.opensips.org" target="_blank">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> </div>  </div></div><br>_______________________________________________<br>
Users mailing list<br>
<a 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></blockquote></div><br></div>

</body></html>