<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Stas,<br>
      <br>
      Do you do any local_route stuff ? If yes, do you modify the
      RURI/DURI or other parts of the requests?<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>
    <div class="moz-cite-prefix">On 01.06.2015 17:42, Stas Kobzar wrote:<br>
    </div>
    <blockquote
cite="mid:CAMYcjoqALc3_ApsR44sPM931_dookMOAvGwcQFDLfA-dtc7Y0g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I am sending NOTIFY packet with event "check-sync" to
          reload phone configuration.</div>
        <div><br>
        </div>
        <div>I am doing it with opensips FIFO mi.</div>
        <div><br>
        </div>
        <div>My command looks like this:</div>
        <div>opensipsctl fifo t_uac_dlg NOTIFY <a
            moz-do-not-send="true" href="mailto:sip%3A7037@10.130.8.225">sip:7037@10.130.8.225</a>
          . . '"From: &lt;<a moz-do-not-send="true"
            href="mailto:sip%3A7037@voip.etsmtl.ca">sip:7037@voip.etsmtl.ca</a>&gt;;tag=8755a8d01aa27e903a6f4ccaf393f04\r\nTo:
          &lt;<a moz-do-not-send="true"
            href="mailto:sip%3A7037@voip.etsmtl.ca">sip:7037@voip.etsmtl.ca</a>&gt;\r\nEvent:
          check-sync\r\n"'<br>
        </div>
        <div><br>
        </div>
        <div>When I use IP address in RURI (<a moz-do-not-send="true"
            href="mailto:sip%3A7037@10.130.8.225">sip:7037@10.130.8.225</a>)
          it works as expected.<br>
        </div>
        <div><br>
        </div>
        <div>However, when I use domain name in RURI (like this: <a
            moz-do-not-send="true"
            href="mailto:sip%3A7037@campus.voip.etsmtl.ca">sip:7037@campus.voip.etsmtl.ca</a>)
          and my command looks like this:</div>
        <div>opensipsctl fifo t_uac_dlg NOTIFY <a
            moz-do-not-send="true"
            href="mailto:sip%3A7037@campus.voip.etsmtl.ca">sip:7037@campus.voip.etsmtl.ca</a>
          . . '"From: &lt;<a moz-do-not-send="true"
            href="mailto:sip%3A7037@voip.etsmtl.ca">sip:7037@voip.etsmtl.ca</a>&gt;;tag=8755a8d01aa27e903a6f4ccaf393f04\r\nTo:
          &lt;<a moz-do-not-send="true"
            href="mailto:sip%3A7037@voip.etsmtl.ca">sip:7037@voip.etsmtl.ca</a>&gt;\r\nEvent:
          check-sync\r\n"'<br>
        </div>
        <div><br>
        </div>
        <div>I have two Via headers in my resulting NOTIFY packet with
          different branche tags:</div>
        <div><br>
        </div>
        <div>
          <div>NOTIFY <a moz-do-not-send="true"
              href="mailto:sip%3A7037@10.130.8.225">sip:7037@10.130.8.225</a>
            SIP/2.0.</div>
          <div>Via: SIP/2.0/UDP
            10.130.8.20:5060;branch=z9hG4bK0872.598957f2.0.</div>
          <div>Via: SIP/2.0/UDP
            10.130.8.20:5060;branch=z9hG4bK0872.498957f2.0.</div>
          <div>To: <a moz-do-not-send="true"
              href="mailto:sip%3A7037@campus.voip.etsmtl.ca">sip:7037@campus.voip.etsmtl.ca</a>.</div>
          <div>From: &lt;<a moz-do-not-send="true"
              href="mailto:sip%3A7037@campus.voip.etsmtl.ca">sip:7037@campus.voip.etsmtl.ca</a>&gt;;tag=734c62bd59eb9f33d3e6313898450dd1.</div>
          <div>CSeq: 10 NOTIFY.</div>
          <div>Call-ID: <a moz-do-not-send="true"
              href="mailto:693206c572f70ff6-19332@10.130.8.20">693206c572f70ff6-19332@10.130.8.20</a>.</div>
          <div>Max-Forwards: 69.</div>
          <div>Content-Length: 0.</div>
          <div>Server: ETS voip router01.</div>
          <div>Event: check-sync</div>
          <div>.</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>In first case, I do not even see the packet in main route
          but I see it in local_route.</div>
        <div><br>
        </div>
        <div>In my second case I see it in main route but the packet is
          sent with double Via header.</div>
        <div><br>
        </div>
        <div>I am sure it is not my routing script, because I have just
          put a forward to some IP whenever NOTIFY is received and I
          still have this problem.</div>
        <div><br>
        </div>
        <div>Is it a known issue?</div>
        <div><br>
        </div>
        <div>Everything still works fine, but having a double Via in
          logs a bit confusing.<br clear="all">
          <div><br>
          </div>
          <div>Thank you,</div>
          -- <br>
          <div class="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr"><span>
                        <p dir="ltr"
                          style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span
style="font-size:15px;font-family:Arial;color:rgb(0,112,192);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Stas
                            Kobzar</span></p>
                        <p dir="ltr"
                          style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span
style="font-size:12px;font-family:Arial;color:rgb(166,166,166);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Developeur
                            VoIP / VoIP Developer</span></p>
                        <p dir="ltr"
                          style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span
style="font-family:Arial;color:rgb(0,0,0);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">___________________
                          </span></p>
                        <br>
                        <p dir="ltr"
                          style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span
style="font-family:Arial;color:rgb(0,112,192);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Modulis­.ca
                            Inc.</span></p>
                        <p dir="ltr"
                          style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span
style="font-size:12px;font-family:Arial;color:rgb(0,0,0);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">#
                            Bureau / Office: 514-284-2020 x 246</span></p>
                        <p dir="ltr"
                          style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span
style="font-size:11px;font-family:Arial;color:rgb(0,0,0);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Email</span><span
style="font-size:11px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">:
                          </span><span
style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a
                              moz-do-not-send="true"
                              href="http://firstname.lastname"
                              style="text-decoration:none"
                              target="_blank">s</a>tas.kobzar</span><a
                            moz-do-not-send="true"
                            style="text-decoration:none"><span
style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">@modulis.ca</span></a></p>
                        <p dir="ltr"
                          style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span
style="font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">
                          </span></p>
                        <p dir="ltr"
                          style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span
style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a
                              moz-do-not-send="true"
                              href="https://www.modulis.com/"
                              style="text-decoration:none"
                              target="_blank">https://www.modulis.com</a></span></p>
                        <div><br>
                        </div>
                      </span></div>
                    <div dir="ltr"><a moz-do-not-send="true"
                        href="https://www.modulis.com/es-url-001"
                        style="font-family:'Times New
                        Roman';font-size:medium" target="_blank"><img
                          moz-do-not-send="true"
                          src="https://www.modulis.com/es-img-001"></a><br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
    <br>
  </body>
</html>