<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML con formato previo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EstiloCorreo17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EstiloCorreo18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLconformatoprevioCar
        {mso-style-name:"HTML con formato previo Car";
        mso-style-priority:99;
        mso-style-link:"HTML con formato previo";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.EstiloCorreo21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body bgcolor="white" lang="ES-CL" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Hello.</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Thanks Daniel for your answer.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Finally we discover the problem why the calls were stalled in state::1, we do several checks before an INVITE is t_relayed(), this seems to be too much for certain clients and then they send a INVITE with the same call-id, this was generating “state::1” dialogs.  We solve this issue by sending a “100 – Trying” right after the INVITE arrives to the proxy, in this way the caller don’t send a new INVITE… it worked like a charm.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Now we’re trying to see how we can handle certain situations where “state::3” dialogs are kept in memory.  This happened with this type of calls :</span></p><p class="MsoNormal">
<span lang="EN-US" style="color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Caller                    Proxy                    Callee</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">INVITE   -----------&gt;</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">                                 --------INVITE   ---&gt;</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">&lt;-- 100 Trying ----</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">                                &lt;---- Ringing ------</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">&lt;---- Ringing ------</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">                                &lt;---- OK ----------</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">&lt;---- OK ---------</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">                                &lt;---- OK ----------</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">&lt;---- OK ---------</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">                                &lt;---- OK ----------</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">&lt;---- OK ---------</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">                                &lt;---- OK ----------</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">&lt;---- OK ---------</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">                                &lt;---- OK ----------</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">&lt;---- OK ---------</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">And then the call is out into state::3.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Is there a way to detect this behavior and clear the dialog before it turns to state 3????</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Hope someone can help me.</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="color:#1f497d">Regards,</span></p><p class="MsoNormal"><span style="color:#1f497d">Ricardo.-</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="ES" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">De:</span></b><span lang="ES" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> Daniel-Constantin Mierla [mailto:<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>] <br>
<b>Enviado el:</b> viernes, 11 de mayo de 2012 3:35<br><b>Para:</b> SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List<br><b>CC:</b> Ricardo Martinez<br><b>Asunto:</b> Re: [SR-Users] Question about dialog module (state 1)</span></p>
</div></div><p class="MsoNormal"> </p><p class="MsoNormal">Hello,<br><br>what version are you using? Can it be that you initiate the dialog in config (e.g., via dlg_manage()) and then you reply stateless?<br><br>Cheers,<br>
Daniel<br><br>On 5/9/12 9:53 PM, Ricardo Martinez wrote: </p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Hello.</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">I’m using the dialog module to keep control of simultaneous calls.  In some cases, and I’m still trying to find why this happens, the dialog stays in “STATE:: 1”, which according to the docs is a dialog which no provisional response has been sent yet.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Is there a way to eliminate this kind of dialogs???</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">When I list the dialogs I can see : </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">dialog::  hash=2523:2040584107</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        state:: 1</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        ref_count:: 1</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        timestart:: 0</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        timeout:: 0</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        callid:: <a href="mailto:25b8e5354ca0850a4d0bd9c43eeb617a@pxext.redvoiss.net">25b8e5354ca0850a4d0bd9c43eeb617a@pxext.redvoiss.net</a></span></p><p class="MsoNormal">
<span lang="EN-US" style="color:#1f497d">        from_uri:: <a href="mailto:sip%3A557100052213@pxext.redvoiss.net">sip:557100052213@pxext.redvoiss.net</a></span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        from_tag:: as10dc7c85</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        caller_contact:: <a href="http://sip:557100052213@200.68.19.44:5060">sip:557100052213@200.68.19.44:5060</a></span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        caller_cseq:: 103</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        caller_route_set:: </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        caller_bind_addr:: udp:<a href="http://64.76.154.110:5060">64.76.154.110:5060</a></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        callee_bind_addr:: </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        to_uri:: <a href="mailto:sip%3A0981985480@pxext.redvoiss.net">sip:0981985480@pxext.redvoiss.net</a></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        to_tag:: </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        callee_contact:: </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        callee_cseq:: </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">        callee_route_set::</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">when I try to eliminate this dialog : </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">kamctl fifo dlg_terminate_dlg <a href="mailto:25b8e5354ca0850a4d0bd9c43eeb617a@pxext.redvoiss.net">25b8e5354ca0850a4d0bd9c43eeb617a@pxext.redvoiss.net</a></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">500 command &#39;dlg_terminate_dlg&#39; failed</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Thanks in advance,</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Regards,</span></p><p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">Ricardo Martinez.-</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><br><br><br></span></p><pre>_______________________________________________</pre>
<pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list</pre><pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></pre><pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></pre>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><br><br></span></p><pre>-- </pre><pre>Daniel-Constantin Mierla - <a href="http://www.asipto.com">http://www.asipto.com</a></pre>
<pre><a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre></div></body></html>