<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_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></div><div dir="ltr" id="yui_3_16_0_1_1433860873210_9368"><span>-m 2048 -M 512</span></div>  <div style="" class="" id="yui_3_16_0_1_1433860873210_9368"><span style="" class=""><br style="" class=""></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, June 4, 2015 3:03 PM, Kneeoh &lt;kneeoh@yahoo.com&gt; wrote:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv9557850137"><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="yiv9557850137yui_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="yiv9557850137yui_3_16_0_1_1433444183922_3769"><br clear="none"></div><div dir="ltr" id="yiv9557850137yui_3_16_0_1_1433444183922_7530">Host 2 (passive host)<br clear="none"></div><div dir="ltr" id="yiv9557850137yui_3_16_0_1_1433444183922_3768">Jun&nbsp; 4 18:34:50&nbsp; /usr/local/sbin/opensips[27448]: ERROR:dialog:receive_binary_packet: Failed to process a binary packet! <br class="yiv9557850137" style="" clear="none">Jun&nbsp; 4 18:34:50&nbsp; /usr/local/sbin/opensips[27445]: ERROR:dialog:dlg_replicated_update: dialog not found, building new <br class="yiv9557850137" style="" clear="none">Jun&nbsp; 4 18:34:50&nbsp; /usr/local/sbin/opensips[27445]: ERROR:dialog:dlg_replicated_create: Dialog in DB doesn't match any listening sockets <br class="yiv9557850137" style="" clear="none">Jun&nbsp; 4 18:34:50&nbsp; /usr/local/sbin/opensips[27445]: ERROR:dialog:receive_binary_packet: Failed to process a binary packet!&nbsp;</div><div dir="ltr" id="yiv9557850137yui_3_16_0_1_1433444183922_4327"><br clear="none"></div><div dir="ltr" id="yiv9557850137yui_3_16_0_1_1433444183922_4730">Netstat on Host 1</div><div dir="ltr" id="yiv9557850137yui_3_16_0_1_1433444183922_4731">netstat -nlp | grep opensips<br class="yiv9557850137" style="" clear="none">udp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 192.168.30.40:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7304/opensips&nbsp;&nbsp; &lt;---virtual ip<br class="yiv9557850137" style="" clear="none">udp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 192.168.30.39:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7304/opensips&nbsp;&nbsp; &lt;---virtual ip<br class="yiv9557850137" style="" clear="none">udp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 10.1.0.41:5092&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7304/opensips&nbsp;&nbsp; &lt;---binary replication binding (bin_listen)<br clear="none"></div><div dir="ltr" id="yiv9557850137yui_3_16_0_1_1433444183922_4732"><br clear="none"></div><div dir="ltr" id="yiv9557850137yui_3_16_0_1_1433444183922_4733">Netstat on Host 2</div><div dir="ltr" id="yiv9557850137yui_3_16_0_1_1433444183922_4734">netstat -nlp | grep opensips<br class="yiv9557850137" style="" clear="none">udp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 192.168.30.40:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 27441/opensips&nbsp; &lt;---virtual ip<br class="yiv9557850137" style="" clear="none">udp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 192.168.30.39:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 27441/opensips&nbsp; &lt;---virtual ip<br class="yiv9557850137" style="" clear="none">udp&nbsp;&nbsp;&nbsp;&nbsp; 2176&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 10.1.0.42:5092&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; 27441/opensips&nbsp; &lt;---binary replication binding (bin_listen)</div><div id="yiv9557850137yui_3_16_0_1_1433444183922_3771"><span></span></div>  <br clear="none"><div class="yiv9557850137qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv9557850137yqt5783809289" id="yiv9557850137yqt05081"><div class="yiv9557850137yahoo_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 &lt;kneeoh@yahoo.com&gt; wrote:<br clear="none"> </font> </div>  <br clear="none"><br clear="none"> <div class="yiv9557850137y_msg_container"><div id="yiv9557850137"><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="yiv9557850137yui_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="yiv9557850137yui_3_16_0_1_1431020068696_4486"><span></span></div>  <br clear="none"><div class="yiv9557850137qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv9557850137yqt3319964277" id="yiv9557850137yqt17514"><div class="yiv9557850137yahoo_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 &lt;bogdan@opensips.org&gt; wrote:<br clear="none"> </font> </div>  <br clear="none"><br clear="none"> <div class="yiv9557850137y_msg_container"><div id="yiv9557850137"><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="yiv9557850137moz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a rel="nofollow" shape="rect" class="yiv9557850137moz-txt-link-freetext" target="_blank" href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a></pre>
    <div class="yiv9557850137yqt6462927550" id="yiv9557850137yqt95338"><div class="yiv9557850137moz-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="yiv9557850137yui_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="yiv9557850137yui_3_16_0_1_1430328785670_3841"><br clear="none">
        </div>
        <div dir="ltr" id="yiv9557850137yui_3_16_0_1_1430328785670_3859">192.168.30.39</div>
        <div dir="ltr" id="yiv9557850137yui_3_16_0_1_1430328785670_3860">192.168.30.40</div>
        <div dir="ltr" id="yiv9557850137yui_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="yiv9557850137yui_3_16_0_1_1430328785670_3842"><br clear="none">
        </div>
        <div id="yiv9557850137yui_3_16_0_1_1430328785670_3843">debug:</div>
        <div id="yiv9557850137yui_3_16_0_1_1430328785670_3844"><br clear="none">
        </div>
        <div dir="ltr" id="yiv9557850137yui_3_16_0_1_1430328785670_3845">&nbsp;DBG:dialog:dlg_replicated_create:
          Received replicated dialog!<br class="yiv9557850137" style="" clear="none">
          &nbsp;DBG:core:bin_pop_str: Popped: 'udp:192.168.30.40:5060' [22]<br class="yiv9557850137" style="" clear="none">
          &nbsp;DBG:core:grep_sock_info: checking if host==us: 13==13
          &amp;&amp;&nbsp; [192.168.30.40] == [192.168.30.39]<br class="yiv9557850137" style="" clear="none">
          &nbsp;DBG:core:grep_sock_info: checking if port 5060 matches port
          5060<br class="yiv9557850137" style="" clear="none">
          &nbsp;DBG:core:grep_sock_info: checking if host==us: 13==13
          &amp;&amp;&nbsp; [192.168.30.40] == [192.168.30.40]<br class="yiv9557850137" style="" clear="none">
          &nbsp;DBG:core:grep_sock_info: checking if port 5060 matches port
          5060<br class="yiv9557850137" style="" clear="none">
          &nbsp;DBG:core:bin_pop_str: Popped: '' [0]<br class="yiv9557850137" style="" clear="none">
          &nbsp;ERROR:dialog:dlg_replicated_create: Dialog in DB doesn't
          match any listening sockets<br class="yiv9557850137" style="" clear="none">
          &nbsp;DBG:dialog:destroy_dlg: destroing dialog 0x7f09ddd9f958<br class="yiv9557850137" style="" clear="none">
          &nbsp;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="yiv9557850137" style="" clear="none">
          &nbsp;ERROR:dialog:receive_binary_packet: Failed to process a
          binary packet!<br clear="none">
        </div>
        <div id="yiv9557850137yui_3_16_0_1_1430328785670_3889"><br clear="none">
        </div>
      </div>
      <br clear="none">
      <fieldset class="yiv9557850137mimeAttachmentHeader"></fieldset>
      <br clear="none">
      <pre>_______________________________________________
Users mailing list
<a rel="nofollow" shape="rect" class="yiv9557850137moz-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="yiv9557850137moz-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><br></div>  </div> </div>  </div></div></body></html>