<div><p><br>
Hi,<br>
That cant&nbsp; be done on voipswitch as i cant ask every client to do that on its switch. Checking if i can have a complete solution.</p>
<p>Regards</p>
<p>Sent from<font color ="#888888"><p><font color ="#888888"> android device.</font></p>
</font></p>
<br/><br/>-----Original Message-----<br/>From: Muhammad Shahzad &lt;shaheryarkh@gmail.com&gt;<br/>To: OpenSIPS users mailling list &lt;users@lists.opensips.org&gt;<br/>Sent: Sat, 23 Feb 2013 6:34 PM<br/>Subject: Re: [OpenSIPS-Users] ACK/BYE delivery<br/><br/></div>Remove all workarounds and set OpenSIPS as your outbound proxy in your VOIPSwitch. This should do the trick.<div><br></div><div>Thank you.</div><div><br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 11:20 PM, M.Khaled W Chehab <span dir="ltr">&lt;<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.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 bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div><pre><span style="color:#1f497d">Hi,<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I am using Resedential.conf file with permission module<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I have a problem that when a call behind nat send  a call to voipswitch and voipswitch forward the call to opensips -</span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">à</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">trunk,<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The 100 trying ,180 ringing and the 200 Ok work fine unless the ACK reply for the 200 ok will be directly forwarded from voipswitch to trunk ,without passing by opensips .<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">As I can see in the capture that when opensips send the 200 OK to Voipswitch the <u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&lt;sip:3450966508993881@opensips IP address&gt;;tag=9302846936345048301<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Contact: &lt;sip:966508993881@</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:red">Trunk IP address instead of opensips IP ADDRESS </span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">:5060;user=phone;transport=udp;nat=yes&gt;<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">We try to do some work around as but it didn’t succeed as  the call ends with forbidden <u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                    if(!(is_method(&quot;INVITE|ACK|CANCEL|BYE|UPDATE|OPTIONS|INFO&quot;))) {<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                         xlog(&quot;L_INFO&quot;, &quot;&gt;&gt;&gt;&gt;&gt; Rejecting method &#39;$rm&#39; from &#39;$fu&#39; to &#39;$ru&#39; - User-Agent: $ua &lt;&lt;&lt;&lt;&lt;\n&quot;);<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                         sl_send_reply(&quot;405&quot;,&quot;Method Not Allowed&quot;);<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                         exit;<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                    } else {<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                         if (is_method(&quot;REGISTER&quot;)) {<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                                             fix_nated_register();<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                         } else {<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                                             fix_nated_contact();<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                         }<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                         setflag(5);<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                         setbflag(6);<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                    }<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">route[1] {<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">        if (subst_uri(&#39;/(sip:.*);nat=yes/\1/&#39;)) {<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                setbflag(6);<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">        }<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">        if (isflagset(5)) {<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                search_append(&#39;Contact:.*sip:[^&gt;[:cntrl:]]*&#39;, &#39;;nat=yes&#39;);<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">        }<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">onreply_route[2] {<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">        search_append(&#39;Contact:.*sip:[^&gt;[:cntrl:]]*&#39;, &#39;;nat=yes&#39;);<u></u><u></u></span></pre><pre>

<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">        if (isbflagset(6)) {<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                fix_nated_contact();<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">        };<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                    if (t_check_status(&quot;200&quot;) ) {<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                         if (is_method(&quot;INVITE&quot;)) {<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                                             if (subst(&#39;/^Contact: &lt;sip:([0-9]+)@(.*)$/Contact: &lt;sip:\1@$Ri:$Rp&gt;\r/ig&#39;)) {<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                                                                 xlog(&quot;L_INFO&quot;,&quot;-- Contact modified!&quot;);<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                                             };<u></u><u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                                         }<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Please advice<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></pre><pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards<u></u><u></u></span></pre>

<pre><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                    <u></u><u></u></span></pre></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><br clear="all"><div><br></div>-- <br><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Muhammad Shahzad</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">------------------------------</span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">-----</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Rich Media Communication Specialist (CRMCS)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Certified Network Associate (CCNA)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Cell: +49 176 99 83 10 85</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">MSN: </span><a href="mailto:shari_786pk@hotmail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shari_786pk@hotmail.com</a><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Email: </span><a href="mailto:shaheryarkh@googlemail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shaheryarkh@googlemail.com</a>
</div>