<div dir="ltr"><div>Hi All,</div><div><br></div><div>I have a reduntant OpenSIPS 2.2.1 setup with clusterer, binary interface replication and a floating IP. I am encountering a few niuances and am wondering if I am doing something wrong or if there is a bug.</div><div><br></div><div>1) Replicated dialog hash id is different on the standby server from the active server</div><div><br></div><div>active:</div><div><br></div><div>dialog::  hash=637:902131071</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>state:: 4</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>user_flags:: 0</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>timestart:: 1477413837</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>datestart:: 2016-10-25 18:43:57</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>timeout:: 1477435437</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>dateout:: 2016-10-26 00:43:57</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>callid:: 81140Mzk5ZjViNjY5YzI3MDI5NDMxMDUwZTdlNmQ1MDBhNzg</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>...</div><div><br></div><div>standby:</div><div><br></div><div>dialog::  hash=637:902131072</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>state:: 4</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>user_flags:: 0</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>timestart:: 1477413837</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>datestart:: 2016-10-25 18:43:57</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>timeout:: 1477435438</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>dateout:: 2016-10-26 00:43:58</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>callid:: 81140Mzk5ZjViNjY5YzI3MDI5NDMxMDUwZTdlNmQ1MDBhNzg</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>...</div><div><br></div><div>When a switch overoccurs during a dialog, and a request is received on the second server the dialog can not be matched by the DID param and has to fall back to looking for other SIP elements.</div><div><br></div><div>DBG:dialog:lookup_dlg: no dialog id=902131071 found on entry 637 </div><div>DBG:dialog:dlg_onroute: unable to find dialog for BYE with route param &#39;d72.f7d65c53&#39;</div><div><br></div><div>2) No CDR on the standby server after switch over</div><div><br></div><div>When a switch over occurs during a dialog CDR is not generated at the end of the call (I have to do it manually). I to not see any run_dlg_callbacks info in debug logs although the replicated dialog seems to have all the acc flags.</div><div><br></div><div>active:</div><div><br></div><div>dialog::  hash=637:902131071</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>...</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>values:: </div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_table:: acc</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_flags:: \x00\x00\x07\x00\x00\x00\x02\x00</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_db:: \x07\x00\r\x0031.179.202.34\f\x00+48226522655\f\x00+48226522655\x01\x001\f\x00+48501657778\f\x00+48501657778\x02\x0024</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_leg:: \x00\x00\x00\x00</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_core:: \x06\x00INVITE\b\x0004027a21\x01\x0030\x0081140Mzk5ZjViNjY5YzI3MDI5NDMxMDUwZTdlNmQ1MDBhNzg\x03\x00200\x02\x00OK\x10\x00\xcd\x8b\x0fX\x00\x00\x00\x00]\xb2\x07\x00\x00\x00\x00\x00</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>...</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_created:: \xcb\x8b\x0fX\x00\x00\x00\x00</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>...</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span></div><div>standby:</div><div><br></div><div>dialog::  hash=637:902131072</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>...</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>values:: </div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_created:: \xcb\x8b\x0fX\x00\x00\x00\x00</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>...</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_core:: \x06\x00INVITE\b\x0004027a21\x01\x0030\x0081140Mzk5ZjViNjY5YzI3MDI5NDMxMDUwZTdlNmQ1MDBhNzg\x03\x00200\x02\x00OK\x10\x00\xcd\x8b\x0fX\x00\x00\x00\x00]\xb2\x07\x00\x00\x00\x00\x00</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_leg:: \x00\x00\x00\x00</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_db:: \x07\x00\r\x0031.179.202.34\f\x00+48226522655\f\x00+48226522655\x01\x001\f\x00+48501657778\f\x00+48501657778\x02\x0024</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_flags:: \x00\x00\x07\x00\x00\x00\x02\x00</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>accX_table:: acc</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>...</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span></div><div><br></div><div>My relevant config:</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span></div><div>#### DIALOG module</div><div>loadmodule &quot;dialog.so&quot;</div><div><br></div><div>modparam(&quot;dialog&quot;, &quot;dlg_match_mode&quot;, 1)</div><div>modparam(&quot;dialog&quot;, &quot;default_timeout&quot;, 21600)  # 6 hours timeout</div><div>modparam(&quot;dialog&quot;, &quot;db_mode&quot;, 0)</div><div>modparam(&quot;dialog&quot;, &quot;accept_replicated_dialogs&quot;, 1)</div><div>modparam(&quot;dialog&quot;, &quot;replicate_dialogs_to&quot;, 1)</div><div>#modparam(&quot;dialog&quot;, &quot;accept_replicated_profiles&quot;, 1)</div><div>#modparam(&quot;dialog&quot;, &quot;replicate_profiles_to&quot;, 1)</div><div>modparam(&quot;dialog&quot;, &quot;profiles_with_value&quot;, &quot;trunkCalls&quot;)</div><div>modparam(&quot;dialog&quot;, &quot;options_ping_interval&quot;, 60)</div><div><br></div><div>#### CLUSTERER module</div><div>loadmodule &quot;clusterer.so&quot;</div><div>modparam(&quot;clusterer&quot;, &quot;db_url&quot;, &quot;text:///usr/local/etc/opensips&quot;)</div><div>modparam(&quot;clusterer&quot;, &quot;server_id&quot;, 2) #2 or 1 depending on node</div><div><br></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span># for initial requests</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>do_accounting(&quot;db&quot;, &quot;cdr|missed&quot;, &quot;acc&quot;);</div><div><br></div><div><br></div><div>Has anyone experienced similar problems ? Is there something that I am missing ?</div><div><br></div><div>Best regards,</div><div>Dawid</div><div><br></div></div>