<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi,<br>
      <br>
      The Contact must reflect the IP of the other device in the dialog
      - if you are changing it, you are braking the in-dialog routing -
      you cannot simply change headers and still expect to work.<br>
      <br>
      So, why do you want to change the in the 200 OK Contact the
      received IP with the IP of OpenSIPS ??<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 02/23/2013 08:41 PM, M. KHaled W. Chehab wrote:
    <blockquote
      cite="mid:7864e3c7-bf70-4ade-acde-bd3c83ff804a.maildroid@localhost"
      type="cite">
      <div>
        <p><br>
          Hi,<br>
          That cant  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 <a class="moz-txt-link-rfc2396E" href="mailto:shaheryarkh@gmail.com">&lt;shaheryarkh@gmail.com&gt;</a><br>
        To: OpenSIPS users mailling list
        <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org">&lt;users@lists.opensips.org&gt;</a><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
              moz-do-not-send="true" href="mailto:kchehab@icucall.com"
              target="_blank">kchehab@icucall.com</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <div bgcolor="white" link="blue" vlink="purple" lang="EN-US">
              <div>
                <pre><span style="color: rgb(31, 73, 125);">Hi,</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">I am using Resedential.conf file with permission module</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">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: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);">à</span><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">trunk,</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">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 .</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">As I can see in the capture that when opensips send the 200 OK to Voipswitch the </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><a class="moz-txt-link-rfc2396E" href="sip:3450966508993881@opensipsIPaddress">&lt;sip:3450966508993881@opensips IP address&gt;</a>;tag=9302846936345048301</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Contact: &lt;<a class="moz-txt-link-freetext" href="sip:966508993881@">sip:966508993881@</a></span><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: red;">Trunk IP address instead of opensips IP ADDRESS </span><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">:5060;user=phone;transport=udp;nat=yes&gt;</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">We try to do some work around as but it didn’t succeed as  the call ends with forbidden </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                    if(!(is_method("INVITE|ACK|CANCEL|BYE|UPDATE|OPTIONS|INFO"))) {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                         xlog("L_INFO", "&gt;&gt;&gt;&gt;&gt; Rejecting method '$rm' from '$fu' to '$ru' - User-Agent: $ua &lt;&lt;&lt;&lt;&lt;\n");</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                         sl_send_reply("405","Method Not Allowed");</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                         exit;</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                    } else {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                         if (is_method("REGISTER")) {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                                             fix_nated_register();</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                         } else {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                                             fix_nated_contact();</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                         }</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                         setflag(5);</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                         setbflag(6);</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                    }</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">route[1] {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">        if (subst_uri('/(<a class="moz-txt-link-freetext" href="sip:.*">sip:.*</a>);nat=yes/\1/')) {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                setbflag(6);</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">        }</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">        if (isflagset(5)) {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                search_append('Contact:.*sip:[^&gt;[:cntrl:]]*', ';nat=yes');</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">        }</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">onreply_route[2] {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">        search_append('Contact:.*sip:[^&gt;[:cntrl:]]*', ';nat=yes');</span></pre>
                <pre>
<span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">        if (isbflagset(6)) {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                fix_nated_contact();</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">        };</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                    if (t_check_status("200") ) {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                         if (is_method("INVITE")) {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                                             if (subst('/^Contact: &lt;<a class="moz-txt-link-freetext" href="sip:(">sip:(</a>[0-9]+)@(.*)$/Contact: <a class="moz-txt-link-rfc2396E" href="sip:\1@$Ri:$Rp">&lt;sip:\1@$Ri:$Rp&gt;</a>\r/ig')) {</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                                                                 xlog("L_INFO","-- Contact modified!");</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                                             };</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                                         }</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Please advice</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> </span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Regards</span></pre>
                <pre><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">                    </span></pre>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <a moz-do-not-send="true"
              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 moz-do-not-send="true"
          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 moz-do-not-send="true"
          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>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>