<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>don't really get it, is that received is stored only in one
server and not stored on the other one?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 20.11.18 15:27, Andrey Deykunov
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAEsJsWAv6bGdS81JrdZiVuR3EthUE=b0HDUQquxmp9sNJppNNA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hi,
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
<div>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;max-height:30em;overflow:auto;word-wrap:normal;word-break:normal;color:rgb(23,43,77);font-size:12px;background-color:rgb(244,245,247)">2018-11-14T04:43:31.070005-08:00 qapbx-ca1-1 kamailio[25597]: WARNING: <core> [core/forward.c:231]: get_send_socket2(): protocol/port mismatch (forced udp:<a href="http://64.78.52.88:5060" moz-do-not-send="true">64.78.52.88:5060</a>, to ws:<a href="http://10.9.3.116:20033" moz-do-not-send="true">10.9.3.116:20033</a>)</pre>
</div>
<div><br>
</div>
<div>Every registered client should be stored in the
'location': <br>
</div>
<div><br>
</div>
<div>
<div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:14px;line-height:19px;white-space:pre"><div> $var(save_val) = save(<span style="color:rgb(206,145,120)">"location"</span>, 0, <span style="color:rgb(206,145,120)"><a class="moz-txt-link-rfc2396E" href="sip:$au@$td">"sip:$au@$td"</a></span>)<span style="color:rgb(106,153,85)">;</span></div><div> if ($var(save_val) <= 0) {</div><div> xlog(<span style="color:rgb(206,145,120)">"L_ERR"</span>, <span style="color:rgb(206,145,120)">"[$fU,R,$ci]: Registration saving failed, contact $ct"</span>)<span style="color:rgb(106,153,85)">;</span></div><div> sl_reply_error()<span style="color:rgb(106,153,85)">;</span></div><div> } else if ($var(save_val) == 3) {</div><div> xlog(<span style="color:rgb(206,145,120)">"L_INFO"</span>, <span style="color:rgb(206,145,120)">"[$fU,R,$ci]: Unregistration accepted. Login: $fU; ua: $ua; s-ip: $si; s-port: $sp; 3d parm: <a class="moz-txt-link-freetext" href="sip:$au@$td">sip:$au@$td</a>"</span>)<span style="color:rgb(106,153,85)">;</span></div><div> } else {</div><div> xlog(<span style="color:rgb(206,145,120)">"L_INFO"</span>, <span style="color:rgb(206,145,120)">"[$fU,R,$ci]: Registration accepted. Login: $fU; ua: $ua; s-ip: $si; s-port: $sp; 3d parm: <a class="moz-txt-link-freetext" href="sip:$au@$td">sip:$au@$td</a>"</span>)<span style="color:rgb(106,153,85)">;</span></div><div> }</div></div>
</div>
<div><br>
</div>
<div>Log output of the Avtive node:</div>
<div><br>
</div>
<div>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;max-height:30em;overflow:auto;word-wrap:normal;word-break:normal;color:rgb(23,43,77);font-size:12px;background-color:rgb(244,245,247)">2018-11-14T04:43:31.063376-08:00 qapbx-ca1-2 kamailio[24722]: INFO: <script>: [54004221,R,ibca3ujmr0q81nn0l5puen]: REGISTER received with R-URI: <a class="moz-txt-link-freetext" href="sip:64.78.52.90">sip:64.78.52.90</a>, ct: <a class="moz-txt-link-rfc2396E" href="sip:vu2o757j@si7ofk7i8cs7.invalid;transport=ws"><sip:vu2o757j@si7ofk7i8cs7.invalid;transport=ws></a>;+sip.ice;
reg-id=1;+sip.instance="<urn:uuid:00ff4c8d-2a5e-4614-b80a-d7c14c0e41e3>";expires=600, cseq=1, s-ip: 64.78.52.88, s-port: 5060
2018-11-14T04:43:31.063947-08:00 qapbx-ca1-2 kamailio[24722]: INFO: <script>: Our node is active
2018-11-14T04:43:31.064323-08:00 qapbx-ca1-2 kamailio[24722]: INFO: <script>: [54004221,R,ibca3ujmr0q81nn0l5puen]: Authorization headers are empty in REGISTER command. Send 401 Unauthorized to 64.78.52.88
2018-11-14T04:43:31.285967-08:00 qapbx-ca1-2 kamailio[24716]: INFO: <script>: [54004221,R,ibca3ujmr0q81nn0l5puen]: REGISTER received with R-URI: <a class="moz-txt-link-freetext" href="sip:64.78.52.90">sip:64.78.52.90</a>, ct: <a class="moz-txt-link-rfc2396E" href="sip:vu2o757j@si7ofk7i8cs7.invalid;transport=ws"><sip:vu2o757j@si7ofk7i8cs7.invalid;transport=ws></a>;+sip.ice;
reg-id=1;+sip.instance="<urn:uuid:00ff4c8d-2a5e-4614-b80a-d7c14c0e41e3>";expires=600, cseq=2, s-ip: 64.78.52.88, s-port: 5060
2018-11-14T04:43:31.286564-08:00 qapbx-ca1-2 kamailio[24716]: INFO: <script>: Our node is active
2018-11-14T04:43:31.286943-08:00 qapbx-ca1-2 kamailio[24716]: INFO: <script>: [54004221,R,ibca3ujmr0q81nn0l5puen]: Registration accepted. Login: 54004221; ua: JsSIP 3.2.11; s-ip: 64.78.52.88; s-port: 5060; 3d parm: <a class="moz-txt-link-freetext" href="sip:54004">sip:54004</a>
<a href="mailto:221@qapbx-ca1.qaserverdata.net" moz-do-not-send="true">221@qapbx-ca1.qaserverdata.net</a></pre>
</div>
<div><br>
</div>
<div>but in this scenario the save() method stores null
value in the 'received' row. How can I fix it? </div>
<div><br>
</div>
<div>Thank you,</div>
<div>Andrey</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
</body>
</html>