<div dir="ltr">Hi,<div><br></div><div style>is there any advise about my problem?</div><div style>I&#39;m using kamailio in my production environment and this issue started to reproduce a lot.</div><div style>is there any way to discard retransmitted INVITE messages from counting dialog?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/9 Bayram Karagoz <span dir="ltr">&lt;<a href="mailto:karagoz.bayram@gmail.com" target="_blank">karagoz.bayram@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>thanks for the response Daniel,</div><div><br></div>has_totag not solved my problem.<div><br></div><div>in a deep search I realized that these retransmission INVITE dialogs are waiting in dialog list as state = 1. one example is below;</div>

<div>is there any way to clear these dialog which state is waiting for state = 1 or any other solution is welcome for me?</div><div><br></div><div><div>dialog::  hash=246:499719317</div><div>        state:: 1</div>
<div>        ref_count:: 1</div><div>        timestart:: 0</div><div>        timeout:: 0</div><div>        callid:: <a href="mailto:1356619-3569384775-474862@GBSBC-1.mydomain.com" target="_blank">1356619-3569384775-474862@GBSBC-1.mydomain.com</a></div>

<div>        from_uri:: sip:<a href="tel:02165151057" value="+902165151057" target="_blank">02165151057</a>@xxx.xxx.xxx.xxx</div><div>        from_tag:: 3569384775-474868</div><div>        caller_contact:: sip:<a href="tel:02165151057" value="+902165151057" target="_blank">02165151057</a>@xxx.xxx.xxx.xxx:5060</div>
<div>        caller_cseq:: 2</div><div>        caller_route_set:: </div>
<div>        caller_bind_addr:: udp:xxx.xxx.xxx.xxx:5060</div><div>        callee_bind_addr:: </div><div>        to_uri:: sip:4115667@xxx.xxx.xxx.xxx</div><div>        to_tag:: </div><div>        callee_contact:: </div><div>

        callee_cseq:: </div><div>        callee_route_set:: </div><div><br></div></div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">2013/2/4 Daniel Tryba <span dir="ltr">&lt;<a href="mailto:daniel@pocos.nl" target="_blank">daniel@pocos.nl</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Sunday 03 February 2013 12:58:02 Bayram Karagoz wrote:<br>
&gt; I&#39;m trying to limit all subscriber&#39;s active call according to setting their<br>
&gt; simultaneous use setting defined in database.<br>
&gt; But having problem when one subscriber&#39;s INVITE message goes to<br>
&gt; retransmission. When retranmission occures INVITE messages don&#39;t complete<br>
&gt; with BYE and subscriber simultaneus use amount will hung.<br>
&gt; My example code block is below.<br>
&gt; Does anyone advice me for overcome INVITE retransmissions?<br>
<br>
</div>I haven&#39;t implemented it myself yet, but all examples I&#39;ve seen check for<br>
!has_totag() in the INVITE when doing call limit accounting. So<br>
if (is_method(&quot;INVITE&quot;) &amp;&amp; $fU == $avp(s:username) &amp;&amp; !has_totag())<br>
in your case. But that only works if the device received the initial 100<br>
Trying with a tag from Kamailio.<br>
<br>
But might it not be better to just do the count in the INVITE and<br>
adding/deleting of dialogs in the dialog event routes?<br>
<a href="http://kamailio.org/docs/modules/stable/modules_k/dialog.html#id2556156" target="_blank">http://kamailio.org/docs/modules/stable/modules_k/dialog.html#id2556156</a><br>
Problem here is that if the limit is 5 and and there are more than 5<br>
concurrent INVITES you&#39;d have to drop calls with a 200 OK response.<br>
<span><font color="#888888"><br>
--<br>
<br>
POCOS B.V. - Croy 9c - 5653 LC Eindhoven<br>
Telefoon: 040 293 8661 - Fax: 040 293 8658<br>
<a href="http://www.pocos.nl/" target="_blank">http://www.pocos.nl/</a>   - <a href="http://www.sipo.nl/" target="_blank">http://www.sipo.nl/</a><br>
K.v.K. Eindhoven 17097024<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div style="font-weight:bold"><b style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><font size="3"><font face="Calibri">Bayram KARAGÖZ</font></font></b></div>

</div><div style="font-weight:bold"><p style="color:rgb(34,34,34);font-size:13px;margin:0cm 0cm 0pt;font-family:arial,sans-serif;font-weight:normal"><b><font size="3"><font face="Calibri">NGN Engineer</font></font></b></p>

<p style="color:rgb(34,34,34);font-size:13px;margin:0cm 0cm 0pt;font-family:arial,sans-serif;font-weight:normal"><b><font size="3"><font face="Calibri">-----------------------------------------</font></font></b></p>
<p style="color:rgb(34,34,34);font-size:13px;margin:0cm 0cm 0pt;font-family:arial,sans-serif;font-weight:normal"><font face="Calibri"><b><span style="color:rgb(31,73,125);font-size:14pt">@</span></b><font size="3">   </font></font><a href="mailto:bayram@bayramkaragoz.org" style="background-color:transparent" target="_blank">bayram@bayramkaragoz.org</a></p>

<p style="color:rgb(34,34,34);font-size:13px;margin:0cm 0cm 0pt;font-family:arial,sans-serif;font-weight:normal"><b><span style="font-family:Wingdings;color:rgb(31,73,125);font-size:14pt">:</span></b><font face="Calibri"><b><span style="font-size:14pt">  </span></b></font><a href="http://www.bayramkaragoz.org/" style="font-weight:bold;background-color:transparent" target="_blank">www.bayramkaragoz.org</a></p>

<p style="color:rgb(34,34,34);font-size:13px;margin:0cm 0cm 0pt;font-family:arial,sans-serif;font-weight:normal"><b><font size="3"><font face="Calibri">-----------------------------------------</font></font></b></p>
</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div style="font-weight:bold"><b style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><font size="3"><font face="Calibri">Bayram KARAGÖZ</font></font></b></div>
</div><div style="font-weight:bold"><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-weight:normal;background-color:rgb(255,255,255);margin:0cm 0cm 0pt"><b><font size="3"><font face="Calibri">NGN Engineer</font></font></b></p>
<p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-weight:normal;background-color:rgb(255,255,255);margin:0cm 0cm 0pt"><b><font size="3"><font face="Calibri">-----------------------------------------</font></font></b></p>
<p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-weight:normal;background-color:rgb(255,255,255);margin:0cm 0cm 0pt"><font face="Calibri"><b><span style="color:rgb(31,73,125);font-size:14pt">@</span></b><font size="3">   </font></font><a href="mailto:bayram@bayramkaragoz.org" style="background-color:transparent" target="_blank">bayram@bayramkaragoz.org</a></p>
<p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-weight:normal;background-color:rgb(255,255,255);margin:0cm 0cm 0pt"><b><span style="font-family:Wingdings;color:rgb(31,73,125);font-size:14pt">:</span></b><font face="Calibri"><b><span style="font-size:14pt">  </span></b></font><a href="http://www.bayramkaragoz.org/" style="font-weight:bold;background-color:transparent" target="_blank">www.bayramkaragoz.org</a></p>
<p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-weight:normal;background-color:rgb(255,255,255);margin:0cm 0cm 0pt"><b><font size="3"><font face="Calibri">-----------------------------------------</font></font></b></p>
</div>
</div>