<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1441246235063_19025">Liviu, I think I have found the problem. I ran a capture of the replicated messages and looked at the payload. It looks to me like opensips is adding an extra 0 to the socket port See the 50600 below?<br></div><div id="yui_3_16_0_1_1441246235063_19073"><br></div><div dir="ltr" id="yui_3_16_0_1_1441246235063_19063">P4CKdialog$ec64e7b6-cd03-1233-be9b-0024e869f3d56B7Baccavm01Hsip:12125551212@55.55.233.248"sip:15194381165@192.168.30.40:5060hrdvudp:192.168.30.40:50600"sip:5194790526@55.55.233.248:5060oU<br class="" id="yui_3_16_0_1_1441246235063_19066"><br class="" id="yui_3_16_0_1_1441246235063_19068">P4CKadialog!51121598_100315427@55.55.65.170gK0c7cc374sip:+13459390626@55.55.65.170sip:+19172000727@192.168.30.40gudp:192.168.30.40:50600$sip:+13459290326@55.55.65.170:5060oU<br class="" id="yui_3_16_0_1_1441246235063_19070"><br class="" id="yui_3_16_0_1_1441246235063_19072">P4CKdialog.159eb04c526111e58ba600151712bf98@55.55.15.58)447782421-3843121490-352364171-2562658839.sip:+13128009168@55.55.15.58:5063;user=phone)sip:+12516444334@192.168.30.39;user=phone4}udp:192.168.30.39:50600.sip:+13128009168@55.55.15.58:5063;user=phoneoU<br></div><div id="yui_3_16_0_1_1441246235063_18878"><span></span></div> <br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Thursday, September 3, 2015 1:26 PM, Kneeoh <kneeoh@yahoo.com> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv5602294410"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1441246235063_17770">Liviu, I'm still getting the stream of errors on the back up host with the configuration I've posted on this thread and -m 2048 -M 512 on both hosts. I'm running around 4-500 CPS at the moment. I saw some notes that this has since been moved to TCP in opensips 2. I'm guessing the replicated dialogs are greater than 1500 bytes and are truncated when received on the backup host. That's all I can figure w/o doing a tcp dump on the replication port to confirm...I'll do that next.<br clear="none"></div><div id="yiv5602294410yui_3_16_0_1_1441246235063_16876"><span></span></div> <br clear="none"><div class="yiv5602294410qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv5602294410yqt5361944468" id="yiv5602294410yqt54165"><div class="yiv5602294410yahoo_quoted" style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Wednesday, June 10, 2015 10:04 AM, Kneeoh <kneeoh@yahoo.com> wrote:<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div class="yiv5602294410y_msg_container"><div id="yiv5602294410"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv5602294410yui_3_16_0_1_1433860873210_9674">Thanks Liviu, I'm running Opensips with the following memory allocations on both the primary and secondary hosts. Doesn't this mean I'm allocating 2G of shared mem and 512 Megabytes of Pkg mem? I think i'm not running more than 1000 calls per second per your last email which should take only 640Mb of ram. I am running dialog profiling and ratelimit enforcement so I'm not sure how that factors in to increasing the memory requirement or if it's causing the replicated dialog to truncate and miss data.</div><div><br clear="none"></div><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1433860873210_9368"><span>-m 2048 -M 512</span></div> <div class="yiv5602294410" id="yiv5602294410yui_3_16_0_1_1433860873210_9368" style=""><span class="yiv5602294410" style=""><br class="yiv5602294410" style="" clear="none"></span></div><br clear="none"><div class="yiv5602294410qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv5602294410yqt6247953516" id="yiv5602294410yqt74658"><div class="yiv5602294410yahoo_quoted" style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Thursday, June 4, 2015 3:03 PM, Kneeoh <kneeoh@yahoo.com> wrote:<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div class="yiv5602294410y_msg_container"><div id="yiv5602294410"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1433444183922_3770">I just popped up to 1.11.5 and am still getting a stream of dialog replication failure even though the non-active host IS listening on the same socket as the primary host. I'm banging my head on the desk, I can't figure out what this isn't working.<br clear="none"></div><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1433444183922_3769"><br clear="none"></div><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1433444183922_7530">Host 2 (passive host)<br clear="none"></div><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1433444183922_3768">Jun 4 18:34:50 /usr/local/sbin/opensips[27448]: ERROR:dialog:receive_binary_packet: Failed to process a binary packet! <br class="yiv5602294410" style="" clear="none">Jun 4 18:34:50 /usr/local/sbin/opensips[27445]: ERROR:dialog:dlg_replicated_update: dialog not found, building new <br class="yiv5602294410" style="" clear="none">Jun 4 18:34:50 /usr/local/sbin/opensips[27445]: ERROR:dialog:dlg_replicated_create: Dialog in DB doesn't match any listening sockets <br class="yiv5602294410" style="" clear="none">Jun 4 18:34:50 /usr/local/sbin/opensips[27445]: ERROR:dialog:receive_binary_packet: Failed to process a binary packet! </div><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1433444183922_4327"><br clear="none"></div><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1433444183922_4730">Netstat on Host 1</div><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1433444183922_4731">netstat -nlp | grep opensips<br class="yiv5602294410" style="" clear="none">udp 0 0 192.168.30.40:5060 0.0.0.0:* 7304/opensips <---virtual ip<br class="yiv5602294410" style="" clear="none">udp 0 0 192.168.30.39:5060 0.0.0.0:* 7304/opensips <---virtual ip<br class="yiv5602294410" style="" clear="none">udp 0 0 10.1.0.41:5092 0.0.0.0:* 7304/opensips <---binary replication binding (bin_listen)<br clear="none"></div><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1433444183922_4732"><br clear="none"></div><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1433444183922_4733">Netstat on Host 2</div><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1433444183922_4734">netstat -nlp | grep opensips<br class="yiv5602294410" style="" clear="none">udp 0 0 192.168.30.40:5060 0.0.0.0:* 27441/opensips <---virtual ip<br class="yiv5602294410" style="" clear="none">udp 0 0 192.168.30.39:5060 0.0.0.0:* 27441/opensips <---virtual ip<br class="yiv5602294410" style="" clear="none">udp 2176 0 10.1.0.42:5092 0.0.0.0:* 27441/opensips <---binary replication binding (bin_listen)</div><div id="yiv5602294410yui_3_16_0_1_1433444183922_3771"><span></span></div> <br clear="none"><div class="yiv5602294410qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv5602294410yqt5783809289" id="yiv5602294410yqt05081"><div class="yiv5602294410yahoo_quoted" style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Thursday, May 7, 2015 1:36 PM, Kneeoh <kneeoh@yahoo.com> wrote:<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div class="yiv5602294410y_msg_container"><div id="yiv5602294410"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div dir="ltr" id="yiv5602294410yui_3_16_0_1_1431020068696_4485">Hi Bogdan, Both Opensips hosts are set to use corosync/heartbeat to failover the two IPs in our config. Both hosts are set to non-localbind and opensips is explicitly listening on both of the VIPs. This is why I'm confused. It seems that everything is configured correctly yet I'm getting these errors on the inactive opensips instance.<br clear="none"></div><div id="yiv5602294410yui_3_16_0_1_1431020068696_4486"><span></span></div> <br clear="none"><div class="yiv5602294410qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv5602294410yqt3319964277" id="yiv5602294410yqt17514"><div class="yiv5602294410yahoo_quoted" style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Thursday, May 7, 2015 1:05 PM, Bogdan-Andrei Iancu <bogdan@opensips.org> wrote:<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div class="yiv5602294410y_msg_container"><div id="yiv5602294410"><div>
<tt>Hi Kneeoh,<br clear="none">
<br clear="none">
The dialog replication is done assuming that both opensips servers
do share the listening interface (via vrrp, heartbeat, etc). Do
you different listening IPs on the 2 opensips instances ?<br clear="none">
<br clear="none">
Regards,<br clear="none">
</tt>
<pre class="yiv5602294410moz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a rel="nofollow" shape="rect" class="yiv5602294410moz-txt-link-freetext" target="_blank" href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a></pre>
<div class="yiv5602294410yqt6462927550" id="yiv5602294410yqt95338"><div class="yiv5602294410moz-cite-prefix">On 29.04.2015 20:35, Kneeoh wrote:<br clear="none">
</div>
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div id="yiv5602294410yui_3_16_0_1_1430328785670_3840">Hello, I've got two
VIPs on two instances of opensips and am doing dialog
replication. I'm getting a steady stream of failed to
replicate dialog errors in my opensips log.</div>
<div id="yiv5602294410yui_3_16_0_1_1430328785670_3841"><br clear="none">
</div>
<div dir="ltr" id="yiv5602294410yui_3_16_0_1_1430328785670_3859">192.168.30.39</div>
<div dir="ltr" id="yiv5602294410yui_3_16_0_1_1430328785670_3860">192.168.30.40</div>
<div dir="ltr" id="yiv5602294410yui_3_16_0_1_1430328785670_3861">are the two
VIPs. Both have a listen = on both opensips configs. I'm not
sure if this line in the log is the problem but it looks like
it: " DBG:core:bin_pop_str: Popped: '' [0]" I'm not sure how
the receive IP could be an empty string.<br clear="none">
</div>
<div id="yiv5602294410yui_3_16_0_1_1430328785670_3842"><br clear="none">
</div>
<div id="yiv5602294410yui_3_16_0_1_1430328785670_3843">debug:</div>
<div id="yiv5602294410yui_3_16_0_1_1430328785670_3844"><br clear="none">
</div>
<div dir="ltr" id="yiv5602294410yui_3_16_0_1_1430328785670_3845"> DBG:dialog:dlg_replicated_create:
Received replicated dialog!<br class="yiv5602294410" style="" clear="none">
DBG:core:bin_pop_str: Popped: 'udp:192.168.30.40:5060' [22]<br class="yiv5602294410" style="" clear="none">
DBG:core:grep_sock_info: checking if host==us: 13==13
&& [192.168.30.40] == [192.168.30.39]<br class="yiv5602294410" style="" clear="none">
DBG:core:grep_sock_info: checking if port 5060 matches port
5060<br class="yiv5602294410" style="" clear="none">
DBG:core:grep_sock_info: checking if host==us: 13==13
&& [192.168.30.40] == [192.168.30.40]<br class="yiv5602294410" style="" clear="none">
DBG:core:grep_sock_info: checking if port 5060 matches port
5060<br class="yiv5602294410" style="" clear="none">
DBG:core:bin_pop_str: Popped: '' [0]<br class="yiv5602294410" style="" clear="none">
ERROR:dialog:dlg_replicated_create: Dialog in DB doesn't
match any listening sockets<br class="yiv5602294410" style="" clear="none">
DBG:dialog:destroy_dlg: destroing dialog 0x7f09ddd9f958<br class="yiv5602294410" style="" clear="none">
DBG:dialog:destroy_dlg: dlg expired or not in list - dlg
0x7f09ddd9f958 [2225:721583693] with clid
'f4f2446c-6937-1233-f798-0024e869f1eb' and tags 'NULL' 'NULL'<br class="yiv5602294410" style="" clear="none">
ERROR:dialog:receive_binary_packet: Failed to process a
binary packet!<br clear="none">
</div>
<div id="yiv5602294410yui_3_16_0_1_1430328785670_3889"><br clear="none">
</div>
</div>
<br clear="none">
<fieldset class="yiv5602294410mimeAttachmentHeader"></fieldset>
<br clear="none">
<pre>_______________________________________________
Users mailing list
<a rel="nofollow" shape="rect" class="yiv5602294410moz-txt-link-abbreviated" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a rel="nofollow" shape="rect" class="yiv5602294410moz-txt-link-freetext" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote></div>
<br clear="none">
</div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>