<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Check with
<a class="moz-txt-link-freetext" href="https://blog.opensips.org/2020/06/03/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-ii/">https://blog.opensips.org/2020/06/03/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-ii/</a><br>
      <br>
      If setting $var(do_relay) to "false", be sure you do not hit any
      t_relay() later in your script.<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 20.02.2024 17:44, <a class="moz-txt-link-abbreviated" href="mailto:rvg@rvgeerligs.nl">rvg@rvgeerligs.nl</a>
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:6fe794ff361088506b8666f067c2b268e39df1c4@rvgeerligs.nl">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div>
        <div>
          <div>As far as I can see I do not do a relay in case 2:</div>
          <div><br>
          </div>
          <div> lookup("location", "method-filtering");</div>
        </div>
        <div> $var(rc) = $retcode;</div>
        <div> switch ($var(rc)) {</div>
        <div> case 1:</div>
        <div>     # we found at least 1 non-PN contact!</div>
        <div>     $var(do_relay) = true;</div>
        <div>     break;</div>
        <div> case 2:</div>
        <div>     # success, but all contacts are PN-enabled, so we're</div>
        <div>     # sending PNs / awaiting re-registrations from them</div>
        <div> <b>    $var(do_relay) = false;</b></div>
        <div>#     $var(do_relay) = true;</div>
        <div><br>
        </div>
        <div>     break;</div>
        <div> default:</div>
        <div>     xlog("L_INFO", "DBG: no contacts found ($var(rc))\n");</div>
        <div>     t_reply(404, "Not Found");</div>
        <div>     exit;</div>
        <div> }</div>
        <div>
          <div><br>
          </div>
          <div>Please advise again,</div>
          <div><br>
          </div>
          <div>Regards,</div>
          <div><br>
          </div>
          <div>Ronald</div>
          <p><br>
          </p>
          <div>February 19, 2024 at 6:57 AM, "Bogdan-Andrei Iancu" <<a
href="mailto:bogdan@opensips.org?to=%22Bogdan-Andrei%20Iancu%22%20%3Cbogdan%40opensips.org%3E"
              target="_blank" tabindex="-1" moz-do-not-send="true">bogdan@opensips.org</a>>
            wrote:</div>
          <blockquote>
            <div>
              <div> <span style="font-family: monospace;">Hi Ronald,<br>
                  <br>
                  Do you check in the cfg the return code of the
                  lookup() [1] function for retcode (2)? you should not
                  perform any SIP relay in this case, as it will result
                  into a loop.<br>
                  <br>
                  <br>
                  [1] <a
href="https://opensips.org/html/docs/modules/3.4.x/registrar.html#func_lookup"
                    target="_blank" tabindex="-1" moz-do-not-send="true"
                    class="moz-txt-link-freetext">https://opensips.org/html/docs/modules/3.4.x/registrar.html#func_lookup</a><br>
                  <br>
                  Regards, </span> </div>
              <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com/" target="_blank"
              tabindex="-1" moz-do-not-send="true"
              class="moz-txt-link-freetext">https://www.opensips-solutions.com</a>
  <a href="https://www.siphub.com/" target="_blank" tabindex="-1"
              moz-do-not-send="true" class="moz-txt-link-freetext">https://www.siphub.com</a></pre>
              <div> </div>
              <div>On 16.02.2024 18:44, <a
                  href="mailto:rvg@rvgeerligs.nl" target="_blank"
                  tabindex="-1" moz-do-not-send="true"
                  class="moz-txt-link-freetext">rvg@rvgeerligs.nl</a>
                wrote: </div>
              <div> </div>
              <blockquote>
                <div> </div>
                <div>here you are.</div>
                <div> </div>
                <div> </div>
                <div> </div>
                <p>February 16, 2024 at 1:37 PM, "Bogdan-Andrei Iancu"
                  <<a
href="mailto:bogdan@opensips.org?to=%22Bogdan-Andrei%20Iancu%22%20%3Cbogdan%40opensips.org%3E"
                    target="_blank" tabindex="-1" moz-do-not-send="true">bogdan@opensips.org</a>>
                  wrote:</p>
                <div> </div>
                <blockquote>
                  <div> </div>
                  <div>
                    <div> </div>
                    <div> <span style="font-family: monospace;">Hi,<br>
                        <br>
                        Could you share a pcap or trace so we can
                        understand the routing you have ?<br>
                        <br>
                        Regards, </span> </div>
                    <div> </div>
                    <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com/" target="_blank"
                    tabindex="-1" moz-do-not-send="true"
                    class="moz-txt-link-freetext">https://www.opensips-solutions.com</a>
  <a href="https://www.siphub.com/" target="_blank" tabindex="-1"
                    moz-do-not-send="true" class="moz-txt-link-freetext">https://www.siphub.com</a></pre>
                    <div> </div>
                    <div> </div>
                    <div> </div>
                    <div>On 15.02.2024 22:24, <a
                        href="mailto:rvg@rvgeerligs.nl" target="_blank"
                        tabindex="-1" moz-do-not-send="true"
                        class="moz-txt-link-freetext">rvg@rvgeerligs.nl</a>
                      wrote: </div>
                    <div> </div>
                    <div> </div>
                    <div> </div>
                    <blockquote>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Hi,</div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
                      </div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">I
                        kind of followed the article SIP Push
                        Notification with OpenSIPS 3.1 LTS [RFC 8599
                        support][Part II] as I connot find anything
                        related to opensips 3.4.x.</div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
                      </div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">When
                        I disable (commenting by #)
                        modparam("registrar", "pn_enable", true), the
                        call actually works.</div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">When
                        I enable modparam("registrar", "pn_enable",
                        true) the call does not come through.</div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
                      </div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">It
                        gets rerouted internally to external ip address
                        after the authentication, second INVITE with
                        answer to nonce, and giving it a try.</div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Opensips
                        keeps asking for Proxy Authentication required
                        which was allready accepted.</div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
                      </div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
                      </div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Anyone
                        an idea?</div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
                      </div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Regards,</div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
                      </div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
                      </div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div
style="outline: 0px; -webkit-tap-highlight-color: transparent; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Ronald
                        Geerligs</div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank" tabindex="-1"
                      moz-do-not-send="true"
                      class="moz-txt-link-freetext">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                      target="_blank" tabindex="-1"
                      moz-do-not-send="true"
                      class="moz-txt-link-freetext">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                    </blockquote>
                    <div> </div>
                    <div> </div>
                    <div> </div>
                  </div>
                  <div> </div>
                </blockquote>
                <div> </div>
              </blockquote>
              <div> </div>
            </div>
          </blockquote>
          <div><br>
          </div>
        </div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>