Hi Timo<br><br>I tried what you told me below, however i&#39;m still getting the same result.<br>Just to give you more details on my scenario  i have 2 kamailio servers running heartbeat for high availability on a virtual ip as well as mysql MASTER-MASTER replication setup. All traffic is sent on this virtual ip.<br>
You think that this might be the reason?<br><br><br><br><br>Regards<br>Phillip<br><br><div class="gmail_quote">On Tue, Sep 20, 2011 at 8:07 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,<br>
<div class="im"><br>
<br>
On 20.09.2011 15:23, Phillman25 Kyriacou wrote:<br>
&gt; Hey Timo<br>
&gt;<br>
&gt; Thanks for your email.<br>
&gt; I apologise i never copied the config properly. I missed a  } to close<br>
&gt; the if statement.<br>
&gt; You can see that the route(WITHINDLG); is called for all requests from<br>
&gt; this config.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;        # MANAGE ALL DIALOGS<br>
&gt;        #===================================================<br>
&gt;         if (is_method(&quot;INVITE&quot;))<br>
&gt;  {<br>
&gt;         if(is_method(&quot;INVITE&quot;) &amp;&amp; !has_totag())<br>
&gt;        {<br>
&gt;            $dlg_ctx(timeout_route) = 12;<br>
&gt;            $dlg_ctx(timeout_bye) = 1;<br>
&gt;        }<br>
&gt;<br>
&gt;           dlg_manage();<br>
&gt;<br>
&gt;  }<br>
&gt;<br>
&gt;<br>
&gt;          if(is_method(&quot;BYE|CANCEL&quot;))<br>
&gt;<br>
&gt;       {<br>
&gt;<br>
&gt;          dlg_manage();<br>
&gt;<br>
&gt;<br>
&gt;       }<br>
<br>
</div>[...]<br>
<div class="im"><br>
&gt;         # handle requests within SIP dialogs<br>
&gt;         route(WITHINDLG);<br>
<br>
</div>[...]<br>
<br>
&gt;         # authentication<br>
&gt;         route(AUTH);<br>
<br>
Ok, this looks better now. Still, I cannot explain why dialog tracking<br>
doesn&#39;t work for you. I tried to reproduce your setup, including the<br>
dialog module parameters you are using. However, things keep working for<br>
me the way they should.<br>
<br>
A few people have had issues when starting to track dialogs before the<br>
INVITE was authenticated. In that case, the caller could receive a 407<br>
which isn&#39;t properly handled by the dialog module in all cases. (There&#39;s<br>
a bug report filed on the tracker already.) Could you try moving that<br>
&quot;if(is_method(&quot;INVITE&quot;) &amp;&amp; !has_totag()) {...}&quot; part including the call<br>
to dlg_manage() past the location where &quot;route(AUTH)&quot; is called and see<br>
if it helps?<br>
<br>
<br>
Cheers,<br>
<font color="#888888"><br>
--Timo<br>
</font></blockquote></div><br>