<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <tt>Hi Nick,<br>
      <br>
      if INVITE goes .11 -&gt; .5 -&gt; .10 -&gt; .20 -&gt; .122, why
      the 100 reply from .122 goes to .5 ??? replies have to be relaid
      back exactly on the same path as the request.<br>
      <br>
      So, the 100 reply from .122 must go to .20, not to .5 !!!<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 05/22/2013 08:57 PM, Nick Khamis wrote:
    <blockquote
cite="mid:CAGWRaZaHAo+B3ixO7=ZPTe7U0qDi3FhWnR13tDsgrb4=gBC-sQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello Bogdan,
        <div><br>
        </div>
        <div>Thank you so much for your response, and your time! The log
          is for the same call, only, the callid is getting changed by
          asterisk. What is happening is:</div>
        <div><br>
        </div>
        <div style="">
          <span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;">192.168.2.11
            (UAC) -&gt; 192.168.2.5 (OpenSIPSIn) INVITE</span><br>
        </div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;">Call-ID:
            <a moz-do-not-send="true"
              href="mailto:4737d441-5fb15ea7-7142c0d8@192.168.2.11">4737d441-5fb15ea7-7142c0d8@192.168.2.11</a>.</span><span
            style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;">192.168.2.5
            (OpenSIPSIn) -&gt; 192.168.2.10 (Asterisk) INVITE</span><span
            style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;">Call-ID:
            <a moz-do-not-send="true"
              href="mailto:4737d441-5fb15ea7-7142c0d8@192.168.2.11">4737d441-5fb15ea7-7142c0d8@192.168.2.11</a>.</span><span
            style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;">192.168.2.10
            (Asterisk) -&gt; 192.168.2.20 (OpenSIPSOut) INVITE</span><span
            style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;">Call-ID:
            <a moz-do-not-send="true"
              href="http://1fbe6fb90553da7c52d72b60076030f5@192.168.2.10:5060">1fbe6fb90553da7c52d72b60076030f5@192.168.2.10:5060</a>.</span><span
            style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;">192.168.2.20
            (OpenSIPSOut) -&gt;&nbsp;</span><span style="color: rgb(0, 0, 0);
            font-family: Consolas,Menlo,Monaco,'Lucida
            Console','Liberation Mono','DejaVu Sans Mono','Bitstream
            Vera Sans Mono',monospace,serif; font-size: 12px;
            line-height: 21px;">94.101.2.122</span><span style="color:
            rgb(0, 0, 0); font-family: Consolas,Menlo,Monaco,'Lucida
            Console','Liberation Mono','DejaVu Sans Mono','Bitstream
            Vera Sans Mono',monospace,serif; font-size: 12px;
            line-height: 21px;">&nbsp;(Service Provider) INVITE</span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;">Call-ID:
            <a moz-do-not-send="true"
              href="http://1fbe6fb90553da7c52d72b60076030f5@192.168.2.10:5060">1fbe6fb90553da7c52d72b60076030f5@192.168.2.10:5060</a>.</span><span
            style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><a
              moz-do-not-send="true" href="http://94.101.2.122:5060">94.101.2.122:5060</a>
            (ServicProvider) -&gt; <a moz-do-not-send="true"
              href="http://192.168.2.5:5060">192.168.2.5:5060</a>
            (OpenSIPSIn) Giving a Try</span><span style="color: rgb(0,
            0, 0); font-family: Consolas,Menlo,Monaco,'Lucida
            Console','Liberation Mono','DejaVu Sans Mono','Bitstream
            Vera Sans Mono',monospace,serif; font-size: 12px;
            line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;">Call-ID:
            <a moz-do-not-send="true"
              href="http://1fbe6fb90553da7c52d72b60076030f5@192.168.2.10:5060">1fbe6fb90553da7c52d72b60076030f5@192.168.2.10:5060</a>.</span><span
            style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;">I
            am assuming because the callid coming into OpenSIPSIn from
            the service provider has been changed by asterisk, and
            OpensipsIn is not aware traffic with that callid, the 183
            and 200s are being ignored?</span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0); font-family:
            Consolas,Menlo,Monaco,'Lucida Console','Liberation
            Mono','DejaVu Sans Mono','Bitstream Vera Sans
            Mono',monospace,serif; font-size: 12px; line-height: 21px;">I
            experienced something similar with BYEs and 404, due to
            changed callid where Vlad&nbsp;</span><span style="color: rgb(0,
            0, 0); font-family: Consolas,Menlo,Monaco,'Lucida
            Console','Liberation Mono','DejaVu Sans Mono','Bitstream
            Vera Sans Mono',monospace,serif; font-size: 12px;
            line-height: 21px;">solved the problem by&nbsp;</span><span
            style="color: rgb(0, 0, 0);">explicitly forcing dialog
            matching using&nbsp;</span><span style="color: rgb(0, 0, 0);">match_dialog.
            I am not sure if that is possible here too?</span></div>
        <div style=""><span style="color: rgb(0, 0, 0);"><br>
          </span></div>
        <div style=""><a moz-do-not-send="true"
            href="http://lists.opensips.org/pipermail/users/2013-April/025322.html">http://lists.opensips.org/pipermail/users/2013-April/025322.html</a><span
            style="color: rgb(0, 0, 0);"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0);"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0);">I also thought
            about trying to relay the 183 and 200s coming in from the
            service provider to asterisk. The reason for this is because
            asterisk has the two callid mapped, and can relay the
            traffic with the "original" callid back to the proxy.</span></div>
        <div style=""><span style="color: rgb(0, 0, 0);"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0);">However, to
            limit the traffic going back and forth, if I can use the
            "match_dialog" approach again it would be perfect!!&nbsp;</span></div>
        <div style=""><span style="color: rgb(0, 0, 0);"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0);">This is the
            last piece of the elephant!!! I hope I can put it together
            :)</span></div>
        <div style=""><span style="color: rgb(0, 0, 0);"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0);">Kind Regards,</span></div>
        <div style=""><span style="color: rgb(0, 0, 0);"><br>
          </span></div>
        <div style=""><span style="color: rgb(0, 0, 0);">Nick.&nbsp;</span></div>
      </div>
    </blockquote>
  </body>
</html>