From deykunov@gmail.com Tue Nov 20 15:41:03 2018 From: Andrey Deykunov To: sr-users@lists.kamailio.org Subject: [SR-Users] registrar::save() does not save 'received' field of the 'location' table Date: Tue, 20 Nov 2018 09:27:19 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0694968672==" --===============0694968672== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, We deploy kamailio in the cluster containing two nodes (Active and Passive). When Active node becomes Passive, our websocket clients continue sending REGISTER to this node. Passive node routes these requests to the Active node through the UDP, that causes the following warning message: 2018-11-14T04:43:31.070005-08:00 qapbx-ca1-1 kamailio[25597]: WARNING: [core/forward.c:231]: get_send_socket2(): protocol/port mismatch (forced udp:64.78.52.88:5060, to ws:10.9.3.116:20033) Every registered client should be stored in the 'location': $var(save_val) =3D save("location", 0, "sip:$au@$td"); if ($var(save_val) <=3D 0) { xlog("L_ERR", "[$fU,R,$ci]: Registration saving failed, contact $ct"); sl_reply_error(); } else if ($var(save_val) =3D=3D 3) { xlog("L_INFO", "[$fU,R,$ci]: Unregistration accepted. Login: $fU; ua: $ua; s-ip: $si; s-port: $sp; 3d parm: sip:$au@$td"); } else { xlog("L_INFO", "[$fU,R,$ci]: Registration accepted. Login: $fU; ua: $ua; s-ip: $si; s-port: $sp; 3d parm: sip:$au@$td"); } Log output of the Avtive node: 2018-11-14T04:43:31.063376-08:00 qapbx-ca1-2 kamailio[24722]: INFO: