<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family:arial,helvetica,clean,sans-serif;line-height:18px;white-space:pre-wrap">Hi guys!

I&#39;m facing some problems with dialog information while trying to implement a HA environment. </span><div><span class="Apple-style-span" style="font-family:arial,helvetica,clean,sans-serif;line-height:18px;white-space:pre-wrap">
We have 2 clustered SIP servers working as a <span class="Apple-style-span" style="font-family:&#39;Trebuchet MS&#39;,&#39;Lucida Grande&#39;,&#39;Lucida Sans Unicode&#39;,&#39;Lucida Sans&#39;,Arial,sans-serif;line-height:22px;white-space:normal">Active/Standby failover and the use of a Virtual IP address</span>. We want to make sure that if proxy #1 goes down during a call, proxy #2 would be able to handle the sequential requests for that call, since</span><span class="Apple-style-span" style="font-family:arial,helvetica,clean,sans-serif;line-height:18px;white-space:pre-wrap"> both proxies are using the same database for dialog module information and we have set the db_mode dialog parameter to 1 (REALTIME - any dialog information changes will be reflected into the database immediately). Instead, what happened is proxy #2 was not aware of the dialog and gave us a &quot;500 Server error occurred&quot; message after receiving the BYE. Here are the log errors:</span><div>

<span class="Apple-style-span" style="font-family:arial,helvetica,clean,sans-serif;line-height:18px;white-space:pre-wrap"><br></span></div><div><font class="Apple-style-span" face="arial, helvetica, clean, sans-serif"><span class="Apple-style-span" style="line-height:18px;white-space:pre-wrap">/usr/local/sbin/opensips[12617]: New request: BYE
/usr/local/sbin/opensips[12617]: The request has TO tag
/usr/local/sbin/opensips[12617]: cannot match request to a dialog 
/usr/local/sbin/opensips[12617]: ERROR:dialog:w_validate_dialog: null dialog
/usr/local/sbin/opensips[12617]: in-dialog bogus request 
/usr/local/sbin/opensips[12617]: validate_dialog return: -4
/usr/local/sbin/opensips[12617]: loose_route() performed, rr headers were decoded
/usr/local/sbin/opensips[12617]: ERROR:core:parse_uri: uri too short: &lt;0&gt; (1)
/usr/local/sbin/opensips[12617]: ERROR:core:parse_sip_msg_uri: bad uri &lt;0&gt;
/usr/local/sbin/opensips[12617]: ERROR:tm:new_t: uri invalid
/usr/local/sbin/opensips[12617]: ERROR:tm:t_newtran: new_t failed
/usr/local/sbin/opensips[12617]: Could not execute t_relay()</span></font></div><div><font class="Apple-style-span" face="arial, helvetica, clean, sans-serif"><span class="Apple-style-span" style="line-height:18px;white-space:pre-wrap"><br>

</span></font></div><div><font class="Apple-style-span" face="arial, helvetica, clean, sans-serif"><span class="Apple-style-span" style="line-height:18px;white-space:pre-wrap"><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-size:13px">Virtual IP address is working, a new call goes through with no problem. Apparently, the dialog module is not saving all dialogs information to the database right away. Does anyone know about any other info we should be storing in the database, using some sort of module parameter or exported function from config file? In other words, what do I need to do in order to send an initial INVITE to one server and, when that server goes down, send the BYE to another server with the same call dialog?</span></span></font></div>

<div><font class="Apple-style-span" face="arial, helvetica, clean, sans-serif"><span class="Apple-style-span" style="line-height:18px;white-space:pre-wrap"><span class="Apple-style-span" style="font-size:13px"><br></span></span></font></div>

<div><font class="Apple-style-span" face="arial, helvetica, clean, sans-serif"><span class="Apple-style-span" style="line-height:18px;white-space:pre-wrap"><span class="Apple-style-span" style="font-size:13px">Thanks in advance.</span></span></font></div>

<div><font class="Apple-style-span" face="arial, helvetica, clean, sans-serif"><span class="Apple-style-span" style="line-height:18px;white-space:pre-wrap"><span class="Apple-style-span" style="font-size:13px">Mariana.</span></span></font></div>

</div>