<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Bogdan,</p>
    <p>Thankyou, SIPPING_ENABLE bflag was olny being set where
      nat_uac_test was returning true.</p>
    <p>When I set SIPPING_ENABLE bflag irrespective of nat_uac_test, I
      see the SIP OPTIONS pings.</p>
    <p>I did not realise that even with modparam("nathelper",
      "ping_nated_only", 0) set, the bflag was still required for the
      OPTIONS ping.</p>
    <p>Thank you again.<br>
    </p>
    <p><br>
    </p>
    <font face="Verdana, Helvetica, Sans-Serif" color="#000000">Kind
      regards,<br>
      <br>
      Adrian Fretwell<br>
      <br>
      Sibthorpe<br>
      Nottinghamshire<br>
      UK.<br>
    </font>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 23/06/2020 14:33, Bogdan-Andrei
      Iancu wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:321d9390-58b3-8979-3d33-d13851068527@opensips.org">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <tt>Hi Adrian,<br>
        <br>
        Do you set the </tt><tt>SIPPING_ENABLE bflag before saving the
        contact ?<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="https://www.opensips-solutions.com" moz-do-not-send="true">https://www.opensips-solutions.com</a>

</pre>
      <div class="moz-cite-prefix">On 6/23/20 1:35 PM, Adrian Fretwell
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:48eb36c7-db5a-173d-f33b-01d43e009c42@topgreen.co.uk">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <p>Hello All,</p>
        <p>Opensips v3.0.</p>
        <p>I have a simple routing script that implements a
          mid-registrar.  All of the endpoints are behind NAT so I need
          the proxy to send keep alive pings.</p>
        <p>I have the nathelper module loaded with the following
          configuration:</p>
        <p>/* --- Module NATHELPER ---------------<br>
          <br>
           NAT traversal helper module<br>
           ------------------------------------*/<br>
          loadmodule "nathelper.so"<br>
          modparam("nathelper", "natping_interval", 30)<br>
          modparam("nathelper", "ping_nated_only", 0)<br>
          modparam("nathelper", "sipping_method", "OPTIONS")<br>
          modparam("nathelper", "sipping_bflag", "SIPPING_ENABLE")<br>
          modparam("nathelper", "sipping_from", <a
            class="moz-txt-link-rfc2396E" href="sip:pinger@mrp1.xxxx.uk"
            moz-do-not-send="true">"sip:pinger@mrp1.xxxx.uk"</a>)<br>
          modparam("nathelper", "received_avp", "$avp(received_nh)")<br>
          modparam("nathelper", "ping_threshold", 5)<br>
          modparam("nathelper", "max_pings_lost", 3)<br>
          modparam("nathelper", "natping_partitions", 4)<br>
          modparam("nathelper", "remove_on_timeout_bflag",
          "SIPPING_RTO")<br>
          modparam("nathelper", "natping_tcp", 1)<br>
          <br>
        </p>
        <p>The nathelper module is sending the 4 byte UDP packets
          (verified by packet capture), but I cannot get it to send SIP
          OPTIONS pings.</p>
        <p>According to paragraph 1.2 (NAT pinging types), there are two
          types, UDP package and SIP request.  I cannot work out how to
          make it use SIP request.</p>
        <p>I assume that I do need SIP OPTIONS pings for the
          removal_on_timeout to work.<br>
        </p>
        <p>Can anyone point me in the right direction please?<br>
        </p>
        <p><br>
        </p>
        <div class="moz-signature"> <br>
        </div>
        <font face="Verdana, Helvetica, Sans-Serif" color="#000000">Kind
          regards,<br>
          <br>
          Adrian Fretwell<br>
          Sibthorpe<br>
          Nottinghamshire<br>
        </font>
        <p><font face="Verdana, Helvetica, Sans-Serif" color="#000000">UK.<br>
          </font></p>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
      </blockquote>
      <br>
    </blockquote>
  </body>
</html>