<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi Michael,<br>
<br>
Strange I would say. Could you get me a pcap capturing the BIN
traffic (normally the 5555 tcp port) to see what exactly is
replicated? Of course, please send it off-list :).<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 06.11.2024 01:38, Michael Ulitskiy
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:efaf7cd3-6b8e-4e71-8ff5-90ddbbff3ae6@acedsl.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hello Bogdan,</p>
<p>Config is very similar. Mostly things specific to local machine
are different (ip address, hostname, etc). "NAT_BFLAG" is the
only branch flag used. Registrar does 'save("domain")'. <br>
</p>
<p>I worked around it by adding "nat=yes" to registrar's
"attr_avp", which seems to be replicated just fine, but sure,
it's better to have cflags replicated as they should.</p>
<p>Thanks,</p>
<p>Michael<br>
</p>
<div class="moz-signature"><span style="font-size:10pt"><br>
</span></div>
<div class="moz-cite-prefix">On 11/5/24 10:26, Bogdan-Andrei Iancu
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:bf4f4ce1-4f3d-4c16-a8e4-2353679f7aa3@opensips.org">
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<font face="monospace">Hi Michael,<br>
<br>
Do you have identical cfg's on both servers? The replication
of the contact-flags is definitely in place. But if you have
different cfg's with different flags used, their mapping
(string to idx) may differ on the 2 servers, so the set of
idx's replicated by the first machine may have 0 meaning for
the second one.<br>
<br>
Best 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" moz-do-not-send="true">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com"
moz-do-not-send="true">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 01.11.2024 00:16, Michael
Ulitskiy wrote:<br>
</div>
<blockquote type="cite"
cite="mid:d92d652c-3eea-4ce1-8d1c-ff50b42fa059@acedsl.com">
<meta http-equiv="content-type"
content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">"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": <a class="moz-txt-link-rfc2396E"
href="sip:x.x.80.8:1026" moz-do-not-send="true">"sip:x.x.80.8:1026"</a>,
<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"
moz-do-not-send="true">"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": <a class="moz-txt-link-rfc2396E"
href="sip:x.x.80.8:1026" moz-do-not-send="true">"sip:x.x.80.8:1026"</a>,
<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>
<a href="https://www.aceinnovative.com"
class="moz-txt-link-freetext" moz-do-not-send="true">https://www.aceinnovative.com</a><br>
</span></div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext"
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>
</blockquote>
<br>
</body>
</html>