Hey Timo<br><br>Yes the mysql replication is basically used to update the standby server of new mysql entries in case of a switchover the secondary server will be updated in terms of dialog restoration, dialplan update, CDR&#39;s  etc...<br>
<br>I&#39;m pretty sure that all messages belonging to a specific dialog reach the same Kamailio instance.<br><br>Regards<br>Phillip<br><br><br><div class="gmail_quote">On Wed, Sep 21, 2011 at 3:02 PM, Timo Reimann <span dir="ltr">&lt;<a href="mailto:timo.reimann@1und1.de">timo.reimann@1und1.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hey Phillip,<br>
<div class="im"><br>
<br>
On <a href="tel:21.09.2011%2013" value="+12109201113">21.09.2011 13</a>:53, Phillman25 Kyriacou wrote:<br>
&gt; I tried what you told me below, however i&#39;m still getting the same result.<br>
&gt; Just to give you more details on my scenario  i have 2 kamailio servers<br>
&gt; running heartbeat for high availability on a virtual ip as well as mysql<br>
&gt; MASTER-MASTER replication setup. All traffic is sent on this virtual ip.<br>
&gt; You think that this might be the reason?<br>
<br>
</div>Not 100% sure but you need to guarantee that *all* messages belonging to<br>
a specific dialog reach the same Kamailio instance. (There is no notion<br>
of distributed dialog management; the database just helps with restoring<br>
dialogs on startup.) Is that the case for you?<br>
<br>
<br>
Cheers,<br>
<font color="#888888"><br>
--Timo<br>
</font><div class="im"><br>
<br>
<br>
&gt; On Tue, Sep 20, 2011 at 8:07 PM, Timo Reimann &lt;<a href="mailto:timo.reimann@1und1.de">timo.reimann@1und1.de</a><br>
</div><div><div></div><div class="h5">&gt; &lt;mailto:<a href="mailto:timo.reimann@1und1.de">timo.reimann@1und1.de</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hey,<br>
&gt;<br>
&gt;<br>
&gt;     On 20.09.2011 15:23, Phillman25 Kyriacou wrote:<br>
&gt;     &gt; Hey Timo<br>
&gt;     &gt;<br>
&gt;     &gt; Thanks for your email.<br>
&gt;     &gt; I apologise i never copied the config properly. I missed a  } to close<br>
&gt;     &gt; the if statement.<br>
&gt;     &gt; You can see that the route(WITHINDLG); is called for all requests from<br>
&gt;     &gt; this config.<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;        # MANAGE ALL DIALOGS<br>
&gt;     &gt;        #===================================================<br>
&gt;     &gt;         if (is_method(&quot;INVITE&quot;))<br>
&gt;     &gt;  {<br>
&gt;     &gt;         if(is_method(&quot;INVITE&quot;) &amp;&amp; !has_totag())<br>
&gt;     &gt;        {<br>
&gt;     &gt;            $dlg_ctx(timeout_route) = 12;<br>
&gt;     &gt;            $dlg_ctx(timeout_bye) = 1;<br>
&gt;     &gt;        }<br>
&gt;     &gt;<br>
&gt;     &gt;           dlg_manage();<br>
&gt;     &gt;<br>
&gt;     &gt;  }<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;          if(is_method(&quot;BYE|CANCEL&quot;))<br>
&gt;     &gt;<br>
&gt;     &gt;       {<br>
&gt;     &gt;<br>
&gt;     &gt;          dlg_manage();<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;       }<br>
&gt;<br>
&gt;     [...]<br>
&gt;<br>
&gt;     &gt;         # handle requests within SIP dialogs<br>
&gt;     &gt;         route(WITHINDLG);<br>
&gt;<br>
&gt;     [...]<br>
&gt;<br>
&gt;     &gt;         # authentication<br>
&gt;     &gt;         route(AUTH);<br>
&gt;<br>
&gt;     Ok, this looks better now. Still, I cannot explain why dialog tracking<br>
&gt;     doesn&#39;t work for you. I tried to reproduce your setup, including the<br>
&gt;     dialog module parameters you are using. However, things keep working for<br>
&gt;     me the way they should.<br>
&gt;<br>
&gt;     A few people have had issues when starting to track dialogs before the<br>
&gt;     INVITE was authenticated. In that case, the caller could receive a 407<br>
&gt;     which isn&#39;t properly handled by the dialog module in all cases. (There&#39;s<br>
&gt;     a bug report filed on the tracker already.) Could you try moving that<br>
&gt;     &quot;if(is_method(&quot;INVITE&quot;) &amp;&amp; !has_totag()) {...}&quot; part including the call<br>
&gt;     to dlg_manage() past the location where &quot;route(AUTH)&quot; is called and see<br>
&gt;     if it helps?<br>
&gt;<br>
&gt;<br>
&gt;     Cheers,<br>
&gt;<br>
&gt;     --Timo<br>
</div></div></blockquote></div><br>