<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Ben,<br>
      <br>
      If is spirals undetected (as I think you suggest), the branch in
      via should be different.<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 04.06.2015 02:00, Newlin, Ben wrote:<br>
    </div>
    <blockquote cite="mid:EB54417F-EEF1-4462-B8E6-C5F28704C68E@inin.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div>
        <div>
          <div>It sounds like you may be sending the NOTIFY to yourself
            when you use the domain name instead of the IP. Have you
            verified the address that the domain resolves to? Is it the
            same as the OpenSIPS instance?</div>
          <div>
            <div id="MAC_OUTLOOK_SIGNATURE">
              <div><br>
              </div>
              <div>Ben Newlin</div>
            </div>
          </div>
        </div>
      </div>
      <div><br>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <div style="font-family:Calibri; font-size:12pt;
          text-align:left; color:black; BORDER-BOTTOM: medium none;
          BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
          0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
          BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
          <span style="font-weight:bold">From: </span>Stas Kobzar<br>
          <span style="font-weight:bold">Reply-To: </span>OpenSIPS
          users mailling list<br>
          <span style="font-weight:bold">Date: </span>Wednesday, June
          3, 2015 at 6:00 PM<br>
          <span style="font-weight:bold">To: </span>Bogdan-Andrei Iancu<br>
          <span style="font-weight:bold">Cc: </span>OpenSIPS users
          mailling list<br>
          <span style="font-weight:bold">Subject: </span>Re:
          [OpenSIPS-Users] Double via in MI generated NOTIFY<br>
        </div>
        <div><br>
        </div>
        <div>
          <div>
            <div dir="ltr">Hi Bogdan,
              <div><br>
              </div>
              <div>No, I do not use local_route at all. </div>
              <div><br>
              </div>
              <div>My code for these kind of notifies is in the
                beginning of the initial part  or main route after
                t_check_trans and looks like this:</div>
              <div><br>
              </div>
              <div>
                <table class=""
                  style="border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-family:Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,'Segoe
                  UI Emoji','Segoe UI
                  Symbol';font-size:13px;line-height:18.2000007629395px">
                  <tbody>
                    <tr>
                      <td id="LC492" class="" style="padding:0px
                        10px;vertical-align:top;overflow:visible;word-wrap:normal">
                        <font face="monospace,monospace">----------------------------------------------------------------------------------------<br>
                          t_check_trans(); <br>
                          <br>
                          # RFC3265: NOTIFY can not be outside SIP
                          dialog. <br>
                          # So we should drop the packet <br>
                          if(is_method("NOTIFY")) { <br>
                            # There is an exception: if this is a
                          check-sync packet <br>
                            # for phone configuration reload request<br>
                            if($hdr(Event) =~ "check-sync"){ <br>
                              lookup("locations", "m"); <br>
                              xlog("L_INFO", "$ci|$rm| Send reboot
                          request notify packet to destination $ru");
                          <br>
                              t_relay(); <br>
                              exit(); <br>
                            } <br>
                            send_reply("481","Dialog does not exists");
                          <br>
                            exit; <br>
                          }<br>
                        </font><span style="font-family: monospace,
                          monospace; line-height: 18.2000007629395px;">----------------------------------------------------------------------------------------<br>
                        </span><br>
                        I have tried different scenarios:<br>
                        - Put this code before t_check_trans<br>
                        - do not use lookup function<br>
                        - replaced t_relay with forward<br>
                        <br>
                        Nothing helped. <br>
                        <br>
                        However, when I run fifo command using IP
                        address in sip URI, like this:<br>
                        <span
style="color:rgb(34,34,34);font-size:12.8000001907349px;line-height:normal">opensipsctl
                          fifo t_uac_dlg NOTIFY </span><a
                          moz-do-not-send="true"
                          href="mailto:sip%3A7037@10.130.8.225"
                          target="_blank"
                          style="font-size:12.8000001907349px;line-height:normal">sip:7037@10.130.8.225</a><span
style="color:rgb(34,34,34);font-size:12.8000001907349px;line-height:normal"> .

                          . '"From: &lt;</span><a moz-do-not-send="true"
                          href="mailto:sip%3A7037@voip.etsmtl.ca"
                          target="_blank"
                          style="font-size:12.8000001907349px;line-height:normal">sip:7037@voip.etsmtl.ca</a><span
style="color:rgb(34,34,34);font-size:12.8000001907349px;line-height:normal">&gt;;tag=</span><span
style="color:rgb(34,34,34);font-size:12.8000001907349px;line-height:normal">8755a8d01aa27e903a6f4ccaf393f0</span><span
style="color:rgb(34,34,34);font-size:12.8000001907349px;line-height:normal">4\r\nTo:

                          &lt;</span><a moz-do-not-send="true"
                          href="mailto:sip%3A7037@voip.etsmtl.ca"
                          target="_blank"
                          style="font-size:12.8000001907349px;line-height:normal">sip:7037@voip.etsmtl.ca</a><span
style="color:rgb(34,34,34);font-size:12.8000001907349px;line-height:normal">&gt;\r\</span><span
style="color:rgb(34,34,34);font-size:12.8000001907349px;line-height:normal">nEvent:

                          check-sync\r\n"'<br>
                        </span><br>
                        then, the packet seems to send directly from
                        local_route. Because, in this case, I do not
                        even see it in the logs.<br>
                        <br>
                        Thank you!<br>
                        Stas</td>
                    </tr>
                  </tbody>
                </table>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
            </div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">On Wed, Jun 3, 2015 at 11:05 AM,
                Bogdan-Andrei Iancu <span dir="ltr">
                  &lt;<a moz-do-not-send="true"
                    href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span>
                wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div 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 cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                    <div>
                      <div class="h5">
                        <div>On 01.06.2015 17:42, Stas Kobzar wrote:<br>
                        </div>
                      </div>
                    </div>
                    <blockquote type="cite">
                      <div>
                        <div class="h5">
                          <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"
                                target="_blank">
                                sip:7037@10.130.8.225</a> . . '"From:
                              &lt;<a moz-do-not-send="true"
                                href="mailto:sip%3A7037@voip.etsmtl.ca"
                                target="_blank">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"
                                target="_blank">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"
                                target="_blank">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"
                                target="_blank">
                                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"
                                target="_blank">
                                sip:7037@campus.voip.etsmtl.ca</a> . .
                              '"From: &lt;<a moz-do-not-send="true"
                                href="mailto:sip%3A7037@voip.etsmtl.ca"
                                target="_blank">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"
                                target="_blank">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"
                                  target="_blank">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"
                                  target="_blank">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"
                                  target="_blank">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"
                                  target="_blank">
                                  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>
                                <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:
                                                <a
                                                  moz-do-not-send="true"
href="tel:514-284-2020%20x%20246" value="+15142842020" target="_blank">514-284-2020
                                                  x 246</a></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"
                                            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></fieldset>
                          <br>
                        </div>
                      </div>
                      <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><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></pre>
                    </blockquote>
                    <br>
                  </div>
                </blockquote>
              </div>
              <br>
              <br clear="all">
              <div><br>
              </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>
        </div>
      </span>
      <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>