<div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I don't see a problem with replicating the socket in this case, although I agree it should be enabled with a modparam to avoid breaking existing unicast deployments.</div><div><br></div><div>Feel free to submit a PR or I can try to add it over the coming week.</div><div><br></div><div>Best regards,</div><div><br></div><div>Charles</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 4 Dec 2019 at 19:51, Nuno Miguel Reis <<a href="mailto:nmreis@student.dei.uc.pt">nmreis@student.dei.uc.pt</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi guys.</div><div><br></div><div>I'm setting up an anycast scenario with several kamailios sharing an active state and I've noticed that the dmq_usrloc module is not replication the usrloc socket_info attribute when a register comes in through one of the kamailio nodes. Is there a reason behind this?</div><div><br></div><div>I'm thinking on adding the replication for that attribute in the code. Another way of address this woud be by having a modparam to replicate the socket.</div><div>What do you think?</div><div><br></div><div>This is what I'm seeing:</div><div><br></div><div><b>anycast node that actually gets the SIP REGISTER:</b></div><div><br></div><div>$ kamcmd ul.dump<br>{<br>        Domains: {<br>                Domain: {<br>                        Domain: location<br>                        Size: 32768<br>                        AoRs: {<br>                                Info: {<br>                                        AoR: 309@nmreis.test<br>                                        HashID: -35263718<br>                                        Contacts: {<br>                                                Contact: {<br>                                                        Address: sip:309@192.168.150.158:55060;transport=udp;registering_acc=nmreis_test<br>                                                        Expires: 585<br>                                                        Q: -1.000000<br>                                                        Call-ID: 6e7635ce4604e16400ee763b2ead55b2@0:0:0:0:0:0:0:0<br>                                                        CSeq: 4<br>                                                        User-Agent: Jitsi2.11.5602Linux<br>                                                        Received: sip:<a href="http://2.2.2.2:31171" target="_blank">2.2.2.2:31171</a><br>                                                        Path: [not set]<br>                                                        State: CS_SYNC<br>                                                        Flags: 1<br>                                                        CFlags: 192<br><span style="background-color:rgb(255,0,0)">                                                        Socket: udp:<a href="http://1.1.1.1:5060" target="_blank">1.1.1.1:5060</a></span><br>                                                        Methods: -1<br>                                                        Ruid: uloc-5de8056d-22ab-f<br>                                                        Instance: [not set]<br>                                                        Reg-Id: 0<br>                                                        Server-Id: 0<br>                                                        Tcpconn-Id: -1<br>                                                        Keepalive: 1<br>                                                        Last-Keepalive: 1575487540<br>                                                        Last-Modified: 1575487540<br>                                                }<br>                                        }<br>                                }<br>                        }<br>                        Stats: {<br>                                Records: 1<br>                                Max-Slots: 1<br>                        }<br>                }<br>        }<br>}</div><div><br></div><div><b>anycast node that gets the USRLOC update via KDMQ:</b></div><div><br></div><div>$ kamcmd ul.dump<br>{<br>        Domains: {<br>                Domain: {<br>                        Domain: location<br>                        Size: 32768<br>                        AoRs: {<br>                                Info: {<br>                                        AoR: 309@nmreis.test<br>                                        HashID: -35263718<br>                                        Contacts: {<br>                                                Contact: {<br>                                                        Address: sip:309@192.168.150.158:55060;transport=udp;registering_acc=nmreis_test<br>                                                        Expires: 574<br>                                                        Q: -1.000000<br>                                                        Call-ID: 6e7635ce4604e16400ee763b2ead55b2@0:0:0:0:0:0:0:0<br>                                                        CSeq: 4<br>                                                        User-Agent: Jitsi2.11.5602Linux<br>                                                        Received: sip:<a href="http://2.2.2.2:31171" target="_blank">2.2.2.2:31171</a><br>                                                        Path: [not set]<br>                                                        State: CS_SYNC<br>                                                        Flags: 1<br>                                                        CFlags: 192<br><span style="background-color:rgb(255,0,0)">                                                        Socket: [not set]</span><br>                                                        Methods: -1<br>                                                        Ruid: uloc-5de7ff7b-4617-3<br>                                                        Instance: [not set]<br>                                                        Reg-Id: 0<br>                                                        Server-Id: 0<br>                                                        Tcpconn-Id: -1<br>                                                        Keepalive: 1<br>                                                        Last-Keepalive: 1575487540<br>                                                        Last-Modified: 1575487540<br>                                                }<br>                                        }<br>                                }<br>                        }<br>                        Stats: {<br>                                Records: 1<br>                                Max-Slots: 1<br>                        }<br>                }<br>        }<br>}</div><div><br></div><div><b>the actual KDMQ message:</b></div><div><b><br></b></div><div><b><font size="-2"><font color="red"><b>KDMQ</b></font> <a href="http://sip:usrloc@10.100.100.21:5060" target="_blank">sip:usrloc@10.100.100.21:5060</a> SIP/2.0 <br>Via: SIP/2.0/UDP 10.100.100.22;branch=<font color="green"><b>z9hG4bK6034.290e4186000000000000000000000000.0</b></font> <br>To: <<a href="http://sip:usrloc@10.100.100.21:5060" target="_blank">sip:usrloc@10.100.100.21:5060</a>> <br>From: <<a href="http://sip:usrloc@10.100.100.22:5060" target="_blank">sip:usrloc@10.100.100.22:5060</a>>;tag=<font color="red"><b>3393f0703fb0ccaca74109ff37de39f5-1e4c092b</b></font> <br>CSeq: 10 <font color="red"><b>KDMQ</b></font> <br>Call-ID: <font color="blue"><b><a href="mailto:0cfde4d32a31addc-8875@127.0.0.1" target="_blank">0cfde4d32a31addc-8875@127.0.0.1</a></b></font> <br>Content-Length: 433 <br>Max-Forwards: 1 <br>Content-Type: application/json <br>
<br>{"action":1,"aor":"309@nmreis.test","ruid":"uloc-5de8056d-22ab-f","c":"sip:309@192.168.150.158:55060;transport=udp;registering_acc=nmreis_test","received":"sip:<a href="http://2.2.2.2:31171" target="_blank">2.2.2.2:31171</a>","path":"","callid":"6e7635ce4604e16400ee763b2ead55b2@0:0:0:0:0:0:0:0","user_agent":"Jitsi2.11.5602Linux","instance":"","expires":1575487600,"cseq":2,"flags":1,"cflags":192,"q":-1,"last_modified":1575487000,"methods":4294967295,"reg_id":0,"server_id":0}</font></b></div><div><div><div dir="ltr">--<br>Nuno Miguel Reis<br>Departamento de Engenharia Informática  <br>Faculdade de Ciências e Tecnologia  <br>Universidade de Coimbra<br>mobile: +351 918519145<br>--<br>get my PGP key @<a href="http://pgp.dei.uc.pt:11371/pks/lookup?op=get&search=0x750296EECEAD2B6D" target="_blank">http://pgp.dei.uc.pt:11371/pks/lookup?op=get&search=0x750296EECEAD2B6D</a></div></div></div></div>_______________________________________________<br>Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div></div>

<br>
<div><font color="gray" style="font-size:10pt;font-family:Helvetica,Arial,sans-serif">Sipcentric Ltd.
                Company registered in England & Wales no. 7365592.</font><span style="font-size:10pt;font-family:Helvetica,Arial,sans-serif"> </span><font color="gray" style="font-size:10pt;font-family:Helvetica,Arial,sans-serif">Registered
                office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.</font></div>