<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hello Jai,<br>
        <br>
        Looking at your active-active configuration, I must ask:<br>
        with your model, in case </tt><tt>OSP1 goes down, how will BYEs
        reach </tt><tt>OSP2 in order to terminate </tt><tt>OSP1's
        ongoing calls?<br>
        <br>
        Your conclusions are correct. Dialog replication is designed to
        work with a common virtual IP between two OpenSIPS machines.<br>
        <br>
        What looks worrying is the segfault 16 seconds after processing
        failed. In order to have that figured out,<br>
        could you please post the output of "/usr/sbin/opensips -V,
        along with a gdb backtrace? [1]<br>
        <br>
        [1]: <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/TroubleShooting-Crash">http://www.opensips.org/Documentation/TroubleShooting-Crash</a><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>
      On 08/07/2014 08:10 PM, Jai Rangi wrote:<br>
    </div>
    <blockquote
cite="mid:CAPfjz3hi13hHmpKW4uOVyLDdeFMCEFgmeFMupOtPpCtCoMrcEg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hello,<br>
            <br>
          </div>
          I am trying to setup two active active open-sip servers
          sharing the same database. Listening on IP 192.168.1.110
          (OSP1) and 192.168.1.111 (OSP2) <br>
          <br>
        </div>
        This is how my dialog configuration looks like. <br>
        OSP1 <br>
        bin_listen = <a moz-do-not-send="true"
          href="http://192.168.1.110:8080">192.168.1.110:8080</a><br>
        bin_children = 4<br>
        <div>loadmodule "dialog.so"<br>
          modparam("dialog", "hash_size", 1024)<br>
          modparam("dialog", "default_timeout", 130)<br>
          modparam("dialog", "db_url", "mysql://dbuser:password@@<a
            moz-do-not-send="true" href="http://192.168.1.2/opensips">192.168.1.2/opensips</a>")<br>
          modparam("dialog", "db_mode", 0)<br>
          modparam("dialog", "db_update_period", 60)<br>
          modparam("dialog", "profiles_with_value", "ib ; ob; io")<br>
          modparam("dialog", "ping_interval", 20)<br>
          modparam("dialog", "accept_replicated_dialogs", 1)<br>
          modparam("dialog", "replicate_dialogs_to", "<a
            moz-do-not-send="true" href="http://192.168.1.111:8080">192.168.1.111:8080</a>")<br>
          <br>
          <br>
          OSP2<br>
          bin_listen = <a moz-do-not-send="true"
            href="http://192.168.1.111:8080">192.168.1.111:8080</a><br>
          bin_children = 4<br>
          loadmodule "dialog.so"<br>
          modparam("dialog", "hash_size", 1024)<br>
          modparam("dialog", "default_timeout", 130)<br>
          modparam("dialog", "db_url", "mysql://dbuser:password@@<a
            moz-do-not-send="true" href="http://192.168.1.2/opensips">192.168.1.2/opensips</a>")<br>
          modparam("dialog", "db_mode", 0)<br>
          modparam("dialog", "db_update_period", 60)<br>
          modparam("dialog", "profiles_with_value", "ib ; ob; io")<br>
          modparam("dialog", "ping_interval", 20)<br>
          modparam("dialog", "accept_replicated_dialogs", 1)<br>
          modparam("dialog", "replicate_dialogs_to", "<a
            moz-do-not-send="true" href="http://192.168.1.110:8080">192.168.1.110:8080</a>")<br>
          <br>
        </div>
        <div>When OSP1 get the call, it send the dialog packet to OSP2,
          OSP2 crashes with this message in the logs. <br>
          <br>
          <br>
          Aug&nbsp; 7 09:45:09 localhost
          /usr/local/opensip/sbin/opensips[20563]:
          WARNING:dialog:fetch_socket_info: non-local socket &lt;udp:<a
            moz-do-not-send="true" href="http://192.168.1.110:5060">192.168.1.110:5060</a>&gt;...ignoring<br>
          Aug&nbsp; 7 09:45:09 localhost
          /usr/local/opensip/sbin/opensips[20563]:
          WARNING:dialog:fetch_socket_info: non-local socket &lt;udp:<a
            moz-do-not-send="true" href="http://192.168.1.110:5060">192.168.1.110:5060</a>&gt;...ignoring<br>
          Aug&nbsp; 7 09:45:09 localhost
          /usr/local/opensip/sbin/opensips[20563]:
          ERROR:dialog:dlg_replicated_create: Dialog in DB doesn't match
          any listening sockets<br>
          Aug&nbsp; 7 09:45:09 localhost
          /usr/local/opensip/sbin/opensips[20563]:
          ERROR:dialog:dlg_replicated_create: Received malformed UDP
          binary packet!<br>
          Aug&nbsp; 7 09:45:09 localhost
          /usr/local/opensip/sbin/opensips[20563]:
          ERROR:dialog:receive_binary_packet: Failed to process a binary
          packet!<br>
          Aug&nbsp; 7 09:45:23 localhost
          /usr/local/opensip/sbin/opensips[20559]:
          <a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a>: child process 20562 exited by a signal
          11<br>
          Aug&nbsp; 7 09:45:23 localhost
          /usr/local/opensip/sbin/opensips[20559]:
          <a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a>: core was generated<br>
          Aug&nbsp; 7 09:45:23 localhost
          /usr/local/opensip/sbin/opensips[20559]:
          <a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a>: terminating due to SIGCHLD<br>
          Aug&nbsp; 7 09:45:23 localhost
          /usr/local/opensip/sbin/opensips[20561]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>:
          signal 15 received<br>
          Aug&nbsp; 7 09:45:23 localhost
          /usr/local/opensip/sbin/opensips[20570]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>:
          signal 15 received<br>
          <br>
          <br>
        </div>
        <div>I found two threads with no solutions and from the threads
          it looks like dialog replication wont work in active active
          configuration. It required a shared IP and will work for
          failover only. <br>
          I will appreciate any suggestions, or if some can share
          working configuration. <br>
          <br>
        </div>
        <div>Thank you,<br>
        </div>
        <div>-Jai <br>
          &nbsp;<br>
        </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>