Hey Timo<br><br>How can i increase log verbosity to &quot;debug&quot; level? Do i change the below debug values?<br><br>####### Global Parameters #########<br><br>#!ifdef WITH_DEBUG<br>debug=2<br>log_stderror=yes<br>#!else<br>
debug=2<br>log_stderror=no<br>#!endif<br><br>memdbg=5<br>memlog=5<br><br><br>Can i use the module sip trace to produce a trace or would you rather prefer i use &quot;ngrep -d any -P &#39;*&#39; -W byline -T port 5060&quot; ?<br>
<br>Thanks<br>Phillip<br><br><br>
<br><br><div class="gmail_quote">On Wed, Sep 21, 2011 at 3:41 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 <a href="tel:21.09.2011%2014" value="+12109201114">21.09.2011 14</a>:16, Phillman25 Kyriacou wrote:<br>
&gt; Yes the mysql replication is basically used to update the standby server<br>
&gt; of new mysql entries in case of a switchover the secondary server will<br>
&gt; be updated in terms of dialog restoration, dialplan update, CDR&#39;s  etc...<br>
&gt;<br>
&gt; I&#39;m pretty sure that all messages belonging to a specific dialog reach<br>
&gt; the same Kamailio instance.<br>
<br>
</div>Sounds fine to me then.<br>
<br>
There&#39;s not much I can think of now apart from trying to get more data<br>
on the issue. Are you able to reproduce the problem such that you could<br>
create a trace of a call affected by the problem and provide me with<br>
that? Even better, could you increase log verbosity to &quot;debug&quot; level<br>
while you do the trace?<br>
<br>
<br>
Cheers,<br>
<br>
--Timo<br>
<div class="im"><br>
<br>
<br>
&gt; On Wed, Sep 21, 2011 at 3:02 PM, Timo Reimann &lt;<a href="mailto:timo.reimann@1und1.de">timo.reimann@1und1.de</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:timo.reimann@1und1.de">timo.reimann@1und1.de</a>&gt;&gt; wrote:<br>
&gt;<br>
</div>&gt;     Hey Phillip,<br>
<div class="im">&gt;<br>
&gt;<br>
&gt;     On <a href="tel:21.09.2011%2013" value="+12109201113">21.09.2011 13</a> &lt;tel:21.09.2011%2013&gt;:53, Phillman25 Kyriacou wrote:<br>
&gt;     &gt; I tried what you told me below, however i&#39;m still getting the same<br>
&gt;     result.<br>
&gt;     &gt; Just to give you more details on my scenario  i have 2 kamailio<br>
&gt;     servers<br>
&gt;     &gt; running heartbeat for high availability on a virtual ip as well as<br>
&gt;     mysql<br>
&gt;     &gt; MASTER-MASTER replication setup. All traffic is sent on this<br>
&gt;     virtual ip.<br>
&gt;     &gt; You think that this might be the reason?<br>
&gt;<br>
&gt;     Not 100% sure but you need to guarantee that *all* messages belonging to<br>
&gt;     a specific dialog reach the same Kamailio instance. (There is no notion<br>
&gt;     of distributed dialog management; the database just helps with restoring<br>
&gt;     dialogs on startup.) Is that the case for you?<br>
&gt;<br>
&gt;<br>
&gt;     Cheers,<br>
&gt;<br>
&gt;     --Timo<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     &gt; On Tue, Sep 20, 2011 at 8:07 PM, Timo Reimann<br>
&gt;     &lt;<a href="mailto:timo.reimann@1und1.de">timo.reimann@1und1.de</a> &lt;mailto:<a href="mailto:timo.reimann@1und1.de">timo.reimann@1und1.de</a>&gt;<br>
</div><div><div></div><div class="h5">&gt;     &gt; &lt;mailto:<a href="mailto:timo.reimann@1und1.de">timo.reimann@1und1.de</a> &lt;mailto:<a href="mailto:timo.reimann@1und1.de">timo.reimann@1und1.de</a>&gt;&gt;&gt; wrote:<br>

&gt;     &gt;<br>
&gt;     &gt;     Hey,<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;     On 20.09.2011 15:23, Phillman25 Kyriacou wrote:<br>
&gt;     &gt;     &gt; Hey Timo<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; Thanks for your email.<br>
&gt;     &gt;     &gt; I apologise i never copied the config properly. I missed a<br>
&gt;      } to close<br>
&gt;     &gt;     &gt; the if statement.<br>
&gt;     &gt;     &gt; You can see that the route(WITHINDLG); is called for all<br>
&gt;     requests from<br>
&gt;     &gt;     &gt; this config.<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;        # MANAGE ALL DIALOGS<br>
&gt;     &gt;     &gt;        #===================================================<br>
&gt;     &gt;     &gt;         if (is_method(&quot;INVITE&quot;))<br>
&gt;     &gt;     &gt;  {<br>
&gt;     &gt;     &gt;         if(is_method(&quot;INVITE&quot;) &amp;&amp; !has_totag())<br>
&gt;     &gt;     &gt;        {<br>
&gt;     &gt;     &gt;            $dlg_ctx(timeout_route) = 12;<br>
&gt;     &gt;     &gt;            $dlg_ctx(timeout_bye) = 1;<br>
&gt;     &gt;     &gt;        }<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;           dlg_manage();<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;  }<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;          if(is_method(&quot;BYE|CANCEL&quot;))<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;       {<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;          dlg_manage();<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;       }<br>
&gt;     &gt;<br>
&gt;     &gt;     [...]<br>
&gt;     &gt;<br>
&gt;     &gt;     &gt;         # handle requests within SIP dialogs<br>
&gt;     &gt;     &gt;         route(WITHINDLG);<br>
&gt;     &gt;<br>
&gt;     &gt;     [...]<br>
&gt;     &gt;<br>
&gt;     &gt;     &gt;         # authentication<br>
&gt;     &gt;     &gt;         route(AUTH);<br>
&gt;     &gt;<br>
&gt;     &gt;     Ok, this looks better now. Still, I cannot explain why dialog<br>
&gt;     tracking<br>
&gt;     &gt;     doesn&#39;t work for you. I tried to reproduce your setup,<br>
&gt;     including the<br>
&gt;     &gt;     dialog module parameters you are using. However, things keep<br>
&gt;     working for<br>
&gt;     &gt;     me the way they should.<br>
&gt;     &gt;<br>
&gt;     &gt;     A few people have had issues when starting to track dialogs<br>
&gt;     before the<br>
&gt;     &gt;     INVITE was authenticated. In that case, the caller could<br>
&gt;     receive a 407<br>
&gt;     &gt;     which isn&#39;t properly handled by the dialog module in all<br>
&gt;     cases. (There&#39;s<br>
&gt;     &gt;     a bug report filed on the tracker already.) Could you try<br>
&gt;     moving that<br>
&gt;     &gt;     &quot;if(is_method(&quot;INVITE&quot;) &amp;&amp; !has_totag()) {...}&quot; part including<br>
&gt;     the call<br>
&gt;     &gt;     to dlg_manage() past the location where &quot;route(AUTH)&quot; is<br>
&gt;     called and see<br>
&gt;     &gt;     if it helps?<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;     Cheers,<br>
&gt;     &gt;<br>
&gt;     &gt;     --Timo<br>
</div></div></blockquote></div><br>