<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,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;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(&quot;NOTIFY&quot;)) { <br>  # There is an exception: if this is a check-sync packet <br>  # for phone configuration reload request<br>  if($hdr(Event) =~ &quot;check-sync&quot;){ <br>    lookup(&quot;locations&quot;, &quot;m&quot;); <br>    xlog(&quot;L_INFO&quot;, &quot;$ci|$rm| Send reboot request notify packet to destination $ru&quot;); <br>    t_relay(); <br>    exit(); <br>  } <br>  send_reply(&quot;481&quot;,&quot;Dialog does not exists&quot;); <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 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"> . . &#39;&quot;From: &lt;</span><a 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 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&quot;&#39;<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 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 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 &quot;check-sync&quot; 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 href="mailto:sip%3A7037@10.130.8.225" target="_blank">sip:7037@10.130.8.225</a>
          . . &#39;&quot;From: &lt;<a href="mailto:sip%3A7037@voip.etsmtl.ca" target="_blank">sip:7037@voip.etsmtl.ca</a>&gt;;tag=8755a8d01aa27e903a6f4ccaf393f04\r\nTo:
          &lt;<a href="mailto:sip%3A7037@voip.etsmtl.ca" target="_blank">sip:7037@voip.etsmtl.ca</a>&gt;\r\nEvent:
          check-sync\r\n&quot;&#39;<br>
        </div>
        <div><br>
        </div>
        <div>When I use IP address in RURI (<a 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 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 href="mailto:sip%3A7037@campus.voip.etsmtl.ca" target="_blank">sip:7037@campus.voip.etsmtl.ca</a>
          . . &#39;&quot;From: &lt;<a href="mailto:sip%3A7037@voip.etsmtl.ca" target="_blank">sip:7037@voip.etsmtl.ca</a>&gt;;tag=8755a8d01aa27e903a6f4ccaf393f04\r\nTo:
          &lt;<a href="mailto:sip%3A7037@voip.etsmtl.ca" target="_blank">sip:7037@voip.etsmtl.ca</a>&gt;\r\nEvent:
          check-sync\r\n&quot;&#39;<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 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 href="mailto:sip%3A7037@campus.voip.etsmtl.ca" target="_blank">sip:7037@campus.voip.etsmtl.ca</a>.</div>
          <div>From: &lt;<a 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 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 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 href="http://firstname.lastname" style="text-decoration:none" target="_blank">s</a>tas.kobzar</span><a 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 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 href="https://www.modulis.com/es-url-001" target="_blank"><img 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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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 href="http://firstname.lastname" style="text-decoration:none" target="_blank">s</a>tas.kobzar</span><a 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 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 href="https://www.modulis.com/es-url-001" style="font-family:&#39;Times New Roman&#39;;font-size:medium" target="_blank"><img src="https://www.modulis.com/es-img-001"></a><br></div></div></div></div></div></div>
</div>