<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hello Kneeoh,<br>
      <br>
      Finally managed to replicate these errors on my own setup. In my
      case, the cause was insufficient shared memory for the _primary_
      OpenSIPS instance, which MAY end up with some missing data within
      the dialog module structures, and unfortunately it gets replicated
      that way.<br>
      <br>
      Recommendation:<br>
      Please make sure you always have enough shared memory ("-m" and
      "-M" command line parameters, or variables from
      /etc/default/opensips). For each 1K calls/sec with tm+dialog and
      60s duration you need roughly 640MB of shared memory. Regarding
      pkg memory (-M parameter), just use "-M16" and you should be fine.<br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 04.06.2015 22:03, Kneeoh wrote:<br>
    </div>
    <blockquote
cite="mid:2065154072.6277345.1433444581173.JavaMail.yahoo@mail.yahoo.com"
      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="yui_3_16_0_1_1433444183922_3770" dir="ltr">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>
        </div>
        <div id="yui_3_16_0_1_1433444183922_3769" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1433444183922_7530" dir="ltr">Host 2
          (passive host)<br>
        </div>
        <div id="yui_3_16_0_1_1433444183922_3768" dir="ltr">Jun  4
          18:34:50  /usr/local/sbin/opensips[27448]:
          ERROR:dialog:receive_binary_packet: Failed to process a binary
          packet! <br style="" class="">
          Jun  4 18:34:50  /usr/local/sbin/opensips[27445]:
          ERROR:dialog:dlg_replicated_update: dialog not found, building
          new <br style="" class="">
          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 style="" class="">
          Jun  4 18:34:50  /usr/local/sbin/opensips[27445]:
          ERROR:dialog:receive_binary_packet: Failed to process a binary
          packet! </div>
        <div id="yui_3_16_0_1_1433444183922_4327" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1433444183922_4730" dir="ltr">Netstat on
          Host 1</div>
        <div id="yui_3_16_0_1_1433444183922_4731" dir="ltr">netstat -nlp
          | grep opensips<br style="" class="">
          udp        0      0 192.168.30.40:5060     
          0.0.0.0:*                           7304/opensips  
          &lt;---virtual ip<br style="" class="">
          udp        0      0 192.168.30.39:5060     
          0.0.0.0:*                           7304/opensips  
          &lt;---virtual ip<br style="" class="">
          udp        0      0 10.1.0.41:5092             
          0.0.0.0:*                           7304/opensips  
          &lt;---binary replication binding (bin_listen)<br>
        </div>
        <div id="yui_3_16_0_1_1433444183922_4732" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1433444183922_4733" dir="ltr">Netstat on
          Host 2</div>
        <div id="yui_3_16_0_1_1433444183922_4734" dir="ltr">netstat -nlp
          | grep opensips<br style="" class="">
          udp        0      0 192.168.30.40:5060     
          0.0.0.0:*                           27441/opensips 
          &lt;---virtual ip<br style="" class="">
          udp        0      0 192.168.30.39:5060     
          0.0.0.0:*                           27441/opensips 
          &lt;---virtual ip<br style="" class="">
          udp     2176      0 10.1.0.42:5092          
          0.0.0.0:*                           27441/opensips 
          &lt;---binary replication binding (bin_listen)</div>
        <div id="yui_3_16_0_1_1433444183922_3771"><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 size="2" face="Arial"> On Thursday,
                  May 7, 2015 1:36 PM, Kneeoh <a class="moz-txt-link-rfc2396E" href="mailto:kneeoh@yahoo.com">&lt;kneeoh@yahoo.com&gt;</a>
                  wrote:<br>
                </font> </div>
              <br>
              <br>
              <div class="y_msg_container">
                <div id="yiv1351450500">
                  <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="yiv1351450500yui_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="yiv1351450500yui_3_16_0_1_1431020068696_4486"><span></span></div>
                      <br clear="none">
                      <div class="yiv1351450500qtdSeparateBR"><br
                          clear="none">
                        <br clear="none">
                      </div>
                      <div class="yiv1351450500yqt3319964277"
                        id="yiv1351450500yqt17514">
                        <div class="yiv1351450500yahoo_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 size="2"
                                  face="Arial"> On Thursday, May 7, 2015
                                  1:05 PM, Bogdan-Andrei Iancu
                                  <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org">&lt;bogdan@opensips.org&gt;</a> wrote:<br
                                    clear="none">
                                </font> </div>
                              <br clear="none">
                              <br clear="none">
                              <div class="yiv1351450500y_msg_container">
                                <div id="yiv1351450500">
                                  <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="yiv1351450500moz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv1351450500moz-txt-link-freetext" target="_blank" href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a></pre>
                                    <div
                                      class="yiv1351450500yqt6462927550"
                                      id="yiv1351450500yqt95338">
                                      <div
                                        class="yiv1351450500moz-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="yiv1351450500yui_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="yiv1351450500yui_3_16_0_1_1430328785670_3841"><br
                                              clear="none">
                                          </div>
                                          <div dir="ltr"
                                            id="yiv1351450500yui_3_16_0_1_1430328785670_3859">192.168.30.39</div>
                                          <div dir="ltr"
                                            id="yiv1351450500yui_3_16_0_1_1430328785670_3860">192.168.30.40</div>
                                          <div dir="ltr"
                                            id="yiv1351450500yui_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="yiv1351450500yui_3_16_0_1_1430328785670_3842"><br
                                              clear="none">
                                          </div>
                                          <div
                                            id="yiv1351450500yui_3_16_0_1_1430328785670_3843">debug:</div>
                                          <div
                                            id="yiv1351450500yui_3_16_0_1_1430328785670_3844"><br
                                              clear="none">
                                          </div>
                                          <div dir="ltr"
                                            id="yiv1351450500yui_3_16_0_1_1430328785670_3845"> DBG:dialog:dlg_replicated_create:

                                            Received replicated dialog!<br
                                              class="yiv1351450500"
                                              style="" clear="none">
                                             DBG:core:bin_pop_str:
                                            Popped:
                                            'udp:192.168.30.40:5060'
                                            [22]<br
                                              class="yiv1351450500"
                                              style="" clear="none">
                                             DBG:core:grep_sock_info:
                                            checking if host==us: 13==13
                                            &amp;&amp;  [192.168.30.40]
                                            == [192.168.30.39]<br
                                              class="yiv1351450500"
                                              style="" clear="none">
                                             DBG:core:grep_sock_info:
                                            checking if port 5060
                                            matches port 5060<br
                                              class="yiv1351450500"
                                              style="" clear="none">
                                             DBG:core:grep_sock_info:
                                            checking if host==us: 13==13
                                            &amp;&amp;  [192.168.30.40]
                                            == [192.168.30.40]<br
                                              class="yiv1351450500"
                                              style="" clear="none">
                                             DBG:core:grep_sock_info:
                                            checking if port 5060
                                            matches port 5060<br
                                              class="yiv1351450500"
                                              style="" clear="none">
                                             DBG:core:bin_pop_str:
                                            Popped: '' [0]<br
                                              class="yiv1351450500"
                                              style="" clear="none">
                                             ERROR:dialog:dlg_replicated_create:
                                            Dialog in DB doesn't match
                                            any listening sockets<br
                                              class="yiv1351450500"
                                              style="" clear="none">
                                             DBG:dialog:destroy_dlg:
                                            destroing dialog
                                            0x7f09ddd9f958<br
                                              class="yiv1351450500"
                                              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="yiv1351450500"
                                              style="" clear="none">
                                             ERROR:dialog:receive_binary_packet:
                                            Failed to process a binary
                                            packet!<br clear="none">
                                          </div>
                                          <div
                                            id="yiv1351450500yui_3_16_0_1_1430328785670_3889"><br
                                              clear="none">
                                          </div>
                                        </div>
                                        <br clear="none">
                                        <fieldset
                                          class="yiv1351450500mimeAttachmentHeader"></fieldset>
                                        <br clear="none">
                                        <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv1351450500moz-txt-link-abbreviated" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" rel="nofollow" shape="rect" class="yiv1351450500moz-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>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>