<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 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 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 href="http://192.168.1.111:8080">192.168.1.111:8080</a>")<br><br><br>OSP2<br>bin_listen = <a 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 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 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 7 09:45:09 localhost /usr/local/opensip/sbin/opensips[20563]: WARNING:dialog:fetch_socket_info: non-local socket <udp:<a href="http://192.168.1.110:5060">192.168.1.110:5060</a>>...ignoring<br>
Aug 7 09:45:09 localhost /usr/local/opensip/sbin/opensips[20563]: WARNING:dialog:fetch_socket_info: non-local socket <udp:<a href="http://192.168.1.110:5060">192.168.1.110:5060</a>>...ignoring<br>Aug 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 7 09:45:09 localhost /usr/local/opensip/sbin/opensips[20563]: ERROR:dialog:dlg_replicated_create: Received malformed UDP binary packet!<br>Aug 7 09:45:09 localhost /usr/local/opensip/sbin/opensips[20563]: ERROR:dialog:receive_binary_packet: Failed to process a binary packet!<br>
Aug 7 09:45:23 localhost /usr/local/opensip/sbin/opensips[20559]: INFO:core:handle_sigs: child process 20562 exited by a signal 11<br>Aug 7 09:45:23 localhost /usr/local/opensip/sbin/opensips[20559]: INFO:core:handle_sigs: core was generated<br>
Aug 7 09:45:23 localhost /usr/local/opensip/sbin/opensips[20559]: INFO:core:handle_sigs: terminating due to SIGCHLD<br>Aug 7 09:45:23 localhost /usr/local/opensip/sbin/opensips[20561]: INFO:core:sig_usr: signal 15 received<br>
Aug 7 09:45:23 localhost /usr/local/opensip/sbin/opensips[20570]: INFO:core:sig_usr: 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> <br></div></div>