<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Please keep the list CC'ed to the discussion.<br>
      <br>
      Thanks for the info, it seems to be an OpenSIPS bug - the anycast
      token is missing in the locally generated requests (like this
      OPTIONS). Could you open a bug report on the github tracker please
      ?<br>
      <br>
      Best 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">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
    <div class="moz-cite-prefix">On 06/03/2019 02:02 PM, Антон Ершов
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMp8X_vu7Fi5v1QH-mQFfxcgjpwxxUmpmuOBYXPH5jPjou15rw@mail.gmail.com">
      <div dir="ltr">Hi Bogdan,
        <div>node1 send </div>
        <div><br>
        </div>
        <div>2019/06/03 16:01:17.484626 <a href="http://10.50.0.1:5060"
            moz-do-not-send="true">10.50.0.1:5060</a> -> <a
            href="http://10.7.0.201:5070" moz-do-not-send="true">10.7.0.201:5070</a><br>
        </div>
        <div>OPTIONS sip:<a href="http://10.7.0.201:5070"
            moz-do-not-send="true">10.7.0.201:5070</a> SIP/2.0<br>
          Via: SIP/2.0/UDP 10.50.0.1:5060;branch=z9hG4bK119b.69e9c536.0<br>
          To: sip:<a href="http://10.7.0.201:5070"
            moz-do-not-send="true">10.7.0.201:5070</a><br>
          From: <<a href="mailto:sip%3Ahchecker@10.50.0.1"
            moz-do-not-send="true">sip:hchecker@10.50.0.1</a>>;tag=7f64a078bf34d12f31433ecf357bd91b-968b<br>
          CSeq: 10 OPTIONS<br>
          Call-ID: <a href="mailto:0fa7a2ed14e0d2fe-14840@10.50.0.1"
            moz-do-not-send="true">0fa7a2ed14e0d2fe-14840@10.50.0.1</a><br>
          Max-Forwards: 70<br>
          Content-Length: 0<br>
          User-Agent: OpenSIPS (3.0.0 (x86_64/linux))<br>
        </div>
        <div><br>
        </div>
        <div>and does not receive an answer as it goes to the second
          node</div>
        <div><br>
        </div>
        <div>node 2 send and receive answer</div>
        <div><br>
        </div>
        <div>2019/06/03 16:01:26.320354 <a href="http://10.50.0.1:5060"
            moz-do-not-send="true">10.50.0.1:5060</a> -> <a
            href="http://10.7.0.201:5070" moz-do-not-send="true">10.7.0.201:5070</a><br>
        </div>
        <div>OPTIONS sip:<a href="http://10.7.0.201:5070"
            moz-do-not-send="true">10.7.0.201:5070</a> SIP/2.0<br>
          Via: SIP/2.0/UDP 10.50.0.1:5060;branch=z9hG4bK894b.277e074.0<br>
          To: sip:<a href="http://10.7.0.201:5070"
            moz-do-not-send="true">10.7.0.201:5070</a><br>
          From: <<a href="mailto:sip%3Ahchecker@10.50.0.1"
            moz-do-not-send="true">sip:hchecker@10.50.0.1</a>>;tag=7f64a078bf34d12f31433ecf357bd91b-9e0e<br>
          CSeq: 10 OPTIONS<br>
          Call-ID: <a href="mailto:73aebff26b2035c7-17475@10.50.0.1"
            moz-do-not-send="true">73aebff26b2035c7-17475@10.50.0.1</a><br>
          Max-Forwards: 70<br>
          Content-Length: 0<br>
          User-Agent: OpenSIPS (3.0.0 (x86_64/linux))<br>
          <br>
          <br>
          2019/06/03 15:52:26.490325 <a href="http://10.7.0.201:5070"
            moz-do-not-send="true">10.7.0.201:5070</a> -> <a
            href="http://10.50.0.1:5060" moz-do-not-send="true">10.50.0.1:5060</a><br>
          SIP/2.0 200 OK<br>
          Via: SIP/2.0/UDP
10.50.0.1:5060;rport=5060;received=10.50.0.1;branch=z9hG4bK894b.277e074.0<br>
          Call-ID: <a href="mailto:73aebff26b2035c7-17475@10.50.0.1"
            moz-do-not-send="true">73aebff26b2035c7-17475@10.50.0.1</a><br>
          From: <<a href="mailto:sip%3Ahchecker@10.50.0.1"
            moz-do-not-send="true">sip:hchecker@10.50.0.1</a>>;tag=7f64a078bf34d12f31433ecf357bd91b-9e0e<br>
          To: <a class="moz-txt-link-rfc2396E" href="sip:10.7.0.201"><sip:10.7.0.201></a>;tag=z9hG4bK894b.277e074.0<br>
          CSeq: 10 OPTIONS<br>
          Accept: application/dialog-info+xml, application/xpidf+xml,
          application/cpim-pidf+xml, application/simple-message-summary,
          application/pidf+xml, application/pidf+xml,
          application/dialog-info+xml,
          application/simple-message-summary, application/sdp,
          message/sipfrag;version=2.0<br>
          Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE,
          ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER<br>
          Supported: 100rel, timer, replaces, norefersub<br>
          Accept-Encoding: text/plain<br>
          Accept-Language: en<br>
          Server: Asterisk PBX 16.1.0<br>
          Content-Length:  0<br>
        </div>
        <div><br>
        </div>
        <div>my config node 1</div>
        <div><br>
        </div>
        <div>loadmodule "load_balancer.so"<br>
          modparam("load_balancer", "db_url",  "postgres://<a
            href="http://postgres:1q2w3e4r@10.3.0.1/opensips2"
            moz-do-not-send="true">postgres:1q2w3e4r@10.3.0.1/opensips2</a>")<br>
          modparam("load_balancer", "probing_reply_codes", "501, 503,
          403, 404")<br>
          modparam("load_balancer", "cluster_id", 1)<br>
          modparam("load_balancer", "cluster_sharing_tag", "node_SKN")<br>
          modparam("load_balancer", "probing_from", "<a
            href="mailto:sip%3Ahchecker@10.50.0.1"
            moz-do-not-send="true">sip:hchecker@10.50.0.1</a>")<br>
          modparam("load_balancer", "probing_verbose", 1)<br>
        </div>
        <div><br>
        </div>
        <div>and node 2</div>
        <div><br>
        </div>
        <div>loadmodule "load_balancer.so"<br>
          modparam("load_balancer", "db_url",  "postgres://<a
            href="http://postgres:1q2w3e4r@10.3.0.1/opensips2"
            moz-do-not-send="true">postgres:1q2w3e4r@10.3.0.1/opensips2</a>")<br>
          modparam("load_balancer", "probing_reply_codes", "501, 503,
          403, 404")<br>
          modparam("load_balancer", "cluster_id", 1)<br>
          modparam("load_balancer", "cluster_sharing_tag", "node_PRM")<br>
          modparam("load_balancer", "probing_from", "<a
            href="mailto:sip%3Ahchecker@10.50.0.1"
            moz-do-not-send="true">sip:hchecker@10.50.0.1</a>")<br>
          modparam("load_balancer", "probing_verbose", 1)<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>maybe I misunderstood how it should work?<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">пн, 3 июн. 2019 г. в 10:53,
          Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org"
            moz-do-not-send="true">bogdan@opensips.org</a>>:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#FFFFFF"> <tt>Hi Anton,<br>
              <br>
              That is an interesting combination - pinging via an
              anycast interface. <br>
              <br>
              Could you paste here the OPTIONS and its reply, to check
              if it is correctly built from the anycast perspective ?<br>
              <br>
              Regards,<br>
            </tt>
            <pre class="gmail-m_7446963067155530750moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="gmail-m_7446963067155530750moz-txt-link-freetext" href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
  <a class="gmail-m_7446963067155530750moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/" target="_blank" moz-do-not-send="true">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
            <div class="gmail-m_7446963067155530750moz-cite-prefix">On
              05/27/2019 03:16 PM, Антон Ершов wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <pre class="gmail-m_7446963067155530750gmail-tw-data-text gmail-m_7446963067155530750gmail-tw-ta gmail-m_7446963067155530750gmail-tw-text-small" id="gmail-m_7446963067155530750gmail-tw-target-text" dir="ltr" style="unicode-bidi:isolate;border:none;padding:0px 0.14em 0px 0px;margin-top:0px;margin-bottom:0px;font-family:inherit;overflow:hidden;width:275px;white-space:pre-wrap;color:rgb(33,33,33);height:336px;font-size:16px;line-height:24px"><pre class="gmail-m_7446963067155530750gmail-tw-data-text gmail-m_7446963067155530750gmail-tw-ta gmail-m_7446963067155530750gmail-tw-text-small" id="gmail-m_7446963067155530750gmail-tw-target-text" dir="ltr" style="unicode-bidi:isolate;border:none;padding:0px 0.14em 0px 0px;margin-top:0px;margin-bottom:0px;font-family:inherit;overflow:hidden;width:275px;white-space:pre-wrap;height:336px;line-height:24px"><span id="gmail-m_7446963067155530750gmail-docs-internal-guid-62dfbfe9-7fff-d3cf-f8a9-db073b689815"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline">Hello friends!</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline"> I'm testing new features of opensips 3. And I discovered the following situation.</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline">Configured cluster module in Anycast Сonfiguration. Load balanser module</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline">has cluster_sharing_tag. The lb module sends "options" to the host from the common address, but the answer goes to the nearest opensips node of the cluster. From what the remote host in lb is considered inaccessible.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline">Something is not configured or I did not understand correctly how the load balanser should work in a cluster</span></p>
</span></pre></pre>
              </div>
              <br>
              <fieldset
                class="gmail-m_7446963067155530750mimeAttachmentHeader"></fieldset>
              <br>
              <pre>_______________________________________________
Users mailing list
<a class="gmail-m_7446963067155530750moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="gmail-m_7446963067155530750moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>