<html>
 <head></head> 
 <body> 
  <p dir="ltr"><span style="color:#505061;">Hi guys.</span></p> 
  <p dir="ltr"><span style="color:#505061;">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 replicating the usrloc socket_info attribute when a register comes in through one of the kamailio nodes. Is there a reason behind this?</span></p> 
  <p dir="ltr"><span style="color:#505061;">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.</span><br> <span style="color:#505061;">What do you think?</span></p> 
  <p dir="ltr"><span style="color:#505061;">This is what I'm seeing:</span></p> 
  <p dir="ltr"><span style="color:#505061;"><b>anycast node that actually gets the SIP REGISTER:</b></span></p> 
  <p dir="ltr"><span style="color:#505061;">$ kamcmd ul.dump</span><br> <span style="color:#505061;">{</span><br> <span style="color:#505061;">        Domains: {</span><br> <span style="color:#505061;">                Domain: {</span><br> <span style="color:#505061;">                        Domain: location</span><br> <span style="color:#505061;">                        Size: 32768</span><br> <span style="color:#505061;">                        AoRs: {</span><br> <span style="color:#505061;">                                Info: {</span><br> <span style="color:#505061;">                                        AoR: 309@nmreis.test</span><br> <span style="color:#505061;">                                        HashID: -35263718</span><br> <span style="color:#505061;">                                        Contacts: {</span><br> <span style="color:#505061;">                                                Contact: {</span><br> <span style="color:#505061;">                                                        Address: sip:309@192.168.150.158:55060;transport=udp;registering_acc=nmreis_test</span><br> <span style="color:#505061;">                                                        Expires: 585</span><br> <span style="color:#505061;">                                                        Q: -1.000000</span><br> <span style="color:#505061;">                                                        Call-ID: 6e7635ce4604e16400ee763b2ead55b2@0:0:0:0:0:0:0:0</span><br> <span style="color:#505061;">                                                        CSeq: 4</span><br> <span style="color:#505061;">                                                        User-Agent: Jitsi2.11.5602Linux</span><br> <span style="color:#505061;">                                                        Received: sip: </span><a href="http://2.2.2.2:31171/">2.2.2.2:31171</a><br>                                                         Path: [not set]<br>                                                         State: CS_SYNC<br>                                                         Flags: 1<br>                                                         CFlags: 192<br>                                                         <span style="color:#FF0000;">Socket: udp:</span><a href="http://1.1.1.1:5060/"><span style="color:#FF0000;">1.1.1.1:5060</span></a><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> }</p> 
  <p dir="ltr"><span style="color:#505061;"><b>anycast node that gets the USRLOC update via KDMQ:</b></span></p> 
  <p dir="ltr"><span style="color:#505061;">$ kamcmd ul.dump</span><br> <span style="color:#505061;">{</span><br> <span style="color:#505061;">        Domains: {</span><br> <span style="color:#505061;">                Domain: {</span><br> <span style="color:#505061;">                        Domain: location</span><br> <span style="color:#505061;">                        Size: 32768</span><br> <span style="color:#505061;">                        AoRs: {</span><br> <span style="color:#505061;">                                Info: {</span><br> <span style="color:#505061;">                                        AoR: 309@nmreis.test</span><br> <span style="color:#505061;">                                        HashID: -35263718</span><br> <span style="color:#505061;">                                        Contacts: {</span><br> <span style="color:#505061;">                                                Contact: {</span><br> <span style="color:#505061;">                                                        Address: sip:309@192.168.150.158:55060;transport=udp;registering_acc=nmreis_test</span><br> <span style="color:#505061;">                                                        Expires: 574</span><br> <span style="color:#505061;">                                                        Q: -1.000000</span><br> <span style="color:#505061;">                                                        Call-ID: 6e7635ce4604e16400ee763b2ead55b2@0:0:0:0:0:0:0:0</span><br> <span style="color:#505061;">                                                        CSeq: 4</span><br> <span style="color:#505061;">                                                        User-Agent: Jitsi2.11.5602Linux</span><br> <span style="color:#505061;">                                                        Received: sip: </span><a href="http://2.2.2.2:31171/">2.2.2.2:31171</a><br>                                                         Path: [not set]<br>                                                         State: CS_SYNC<br>                                                         Flags: 1<br>                                                         CFlags: 192<br>                                                         <span style="color:#FF0000;">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> }</p> 
  <p dir="ltr"><span style="color:#505061;"><b>the actual KDMQ message:</b></span></p> 
  <p dir="ltr"><b><span style="color:#505061;"><span style="color:#FF0000;"><b>KDMQ</b></span></span></b><b><span style="color:#505061;"> </span></b><b><a href="http://sip:usrloc@10.100.100.21:5060/">sip:usrloc@10.100.100.21:5060</a></b><b> SIP/2.0</b><br> <b>Via: SIP/2.0/UDP 10.100.100.22;branch=</b><b><span style="color:#00C800;"><b>z9hG4bK6034.290e4186000000000000000000000000.0</b></span></b><br> <b>To: <</b><b><a href="http://sip:usrloc@10.100.100.21:5060/">sip:usrloc@10.100.100.21:5060</a></b><b>></b><br> <b>From: <</b><b><a href="http://sip:usrloc@10.100.100.22:5060/">sip:usrloc@10.100.100.22:5060</a></b><b>>;tag=</b><b><span style="color:#FF0000;"><b>3393f0703fb0ccaca74109ff37de39f5-1e4c092b</b></span></b><br> <b>CSeq: 10 </b><b><span style="color:#FF0000;"><b>KDMQ</b></span></b><br> <b>Call-ID: </b><b><span style="color:#0000FF;"><b><a href="mailto:0cfde4d32a31addc-8875@127.0.0.1">0cfde4d32a31addc-8875@127.0.0.1</a></b></span></b><br> <b>Content-Length: 433</b><br> <b>Max-Forwards: 1</b><br> <b>Content-Type: application/json</b></p> 
  <p dir="ltr"><b>{"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:</b><b><a href="http://2.2.2.2:31171/">2.2.2.2:31171</a></b><b>","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}</b><br></p> 
  <p dir="ltr">Looking forward to hear from you.<br> BR,<br> <span style="color:#505061;">--</span><br> <span style="color:#505061;">Nuno Miguel Reis</span><br> <span style="color:#505061;">Departamento de Engenharia Informática </span><br> <span style="color:#505061;">Faculdade de Ciências e Tecnologia </span><br> <span style="color:#505061;">Universidade de Coimbra</span><br> </p>  
 </body>
</html>