<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>To my surprise I've noticed that opensips location cluster
      (full-sharing,active/backup) doesn't replicate contacts cflags.</p>
    <p>Active server:</p>
    <p><span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">{
        </span><br>
           "AOR": "xyz011101",
        <br>
           "Contacts": [
        <br>
               {
        <br>
                   "Contact": <a class="moz-txt-link-rfc2396E" href="mailto:sip:xyz011101@192.168.0.190:1026">"sip:xyz011101@192.168.0.190:1026"</a>,
        <br>
                   "ContactID": "3246532381380717115",
        <br>
                   "Expires": 53,
        <br>
                   "Q": "",
        <br>
                   "Callid": "5be2b61175573914d242ab6f79392a76",
        <br>
                   "Cseq": 88,
        <br>
                   "User-agent": "PolycomVVX-VVX_150-UA/5.9.2.3446",
        <br>
                   "Received": "sip:x.x.80.8:1026",
        <br>
                   "State": "CS_NEW",
        <br>
                   "Flags": 0,
        <br>
                   "Cflags": "NAT_BFLAG",
        <br>
                   "Socket": "udp:x.x.80.228:5060",
        <br>
                   "Methods": 8063,
        <br>
                   "Attr":
        "company_id=2;station_family_id=2;station_id=394;"
        <br>
               }
        <br>
           ]
        <br>
        }<br>
        <br>
      </span>Backup server:</p>
    <p><span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">{
        </span><br>
           "AOR": "xyz011101",
        <br>
           "Contacts": [
        <br>
               {
        <br>
                   "Contact": <a class="moz-txt-link-rfc2396E" href="mailto:sip:xyz011101@192.168.0.190:1026">"sip:xyz011101@192.168.0.190:1026"</a>,
        <br>
                   "ContactID": "3246532381380717115",
        <br>
                   "Expires": 46,
        <br>
                   "Q": "",
        <br>
                   "Callid": "5be2b61175573914d242ab6f79392a76",
        <br>
                   "Cseq": 88,
        <br>
                   "User-agent": "PolycomVVX-VVX_150-UA/5.9.2.3446",
        <br>
                   "Received": "sip:x.x.80.8:1026",
        <br>
                   "State": "CS_NEW",
        <br>
                   "Flags": 0,
        <br>
                   "Cflags": "",
        <br>
                   "Socket": "udp:x.x.80.228:5060",
        <br>
                   "Methods": 8063,
        <br>
                   "Attr":
        "company_id=2;station_family_id=2;station_id=394;"
        <br>
               }
        <br>
           ]
        <br>
        }<br>
        <br>
        Looks like everything is replicated by cflags. Am I missing
        something? Is it an oversight?</span></p>
    <p><span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">root@csptest-p1n1:~#
          /usr/local/opensips3/sbin/opensips -V
        </span><br>
        version: opensips 3.4.9 (x86_64/linux)
        <br>
        flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP,
        PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC,
        FAST_LOCK-ADAPTIVE_WA<br>
        IT
        <br>
        ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
        MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
        <br>
        poll method support: poll, epoll, sigio_rt, select.
        <br>
        git revision: cd02af8d9
        <br>
        main.c compiled on 14:36:42 Oct 31 2024 with gcc 5.5.0<br>
        <br>
        Config:</span></p>
    <p><span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">#### Clusterer
          Module
        </span><br>
        loadmodule "clusterer.so"
        <br>
        modparam("clusterer", "my_node_id", 1)
        <br>
        modparam("clusterer", "db_mode", 0)
        <br>
        modparam("clusterer", "sharing_tag", "status/1=active")
        <br>
        modparam("clusterer", "seed_fallback_interval", 10)
        <br>
        modparam("clusterer", "my_node_info", "cluster_id=1,
        url=bin:x.x.80.226:5555, flags=seed")
        <br>
        modparam("clusterer", "neighbor_node_info",
        "cluster_id=1,node_id=2,url=bin:x.x.80.227:5555")<br>
        <br>
      </span><span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">#### USeR
          LOCation module
        </span><br>
        loadmodule "usrloc.so"
        <br>
        modparam("usrloc", "nat_bflag", "NAT_BFLAG")    #NAT bflag saved
        in usrloc, used to indicate nat
        <br>
        modparam("usrloc", "desc_time_order", 1)        #location
        records are kept timestamp ordered. most recent 1st
        <br>
        modparam("usrloc", "cseq_delay", 10)
        <br>
        modparam("usrloc", "hash_size", 14)
                                                    #2^14 - 16356 hash
        entries
        <br>
        modparam("usrloc", "location_cluster", 1)
        <br>
        modparam("usrloc", "cluster_mode","full-sharing")
        <br>
        modparam("usrloc", "working_mode_preset",
        "full-sharing-cluster")<br>
        <br>
      </span><br>
      <span style="font-family:monospace">Any ideas? Thanks,<br>
      </span></p>
    <div class="moz-signature">-- <br>
      <span style="font-size:10pt"><b>Michael Ulitskiy</b><br>
        Ace Innovative Networks, Inc.<br>
        Main/SMS: 212-868-2366<br>
        Direct/SMS: 212-812-1203<br>
        <a href="https://www.aceinnovative.com"
          class="moz-txt-link-freetext">https://www.aceinnovative.com</a><br>
         </span></div>
  </body>
</html>