thanks for the response Daniel,has_totag not solved my problem.in a deep search I realized that these retransmission INVITE dialogs are waiting in dialog list as state = 1. one example is below;is there any way to clear these dialog which state is waiting for state = 1 or any other solution is welcome for me?dialog:: hash=246:499719317state:: 1ref_count:: 1timestart:: 0timeout:: 0from_uri:: sip:02165151057@xxx.xxx.xxx.xxxfrom_tag:: 3569384775-474868caller_contact:: sip:02165151057@xxx.xxx.xxx.xxx:5060caller_cseq:: 2caller_route_set::caller_bind_addr:: udp:xxx.xxx.xxx.xxx:5060callee_bind_addr::to_uri:: sip:4115667@xxx.xxx.xxx.xxxto_tag::callee_contact::callee_cseq::callee_route_set::--2013/2/4 Daniel Tryba <daniel@pocos.nl>
On Sunday 03 February 2013 12:58:02 Bayram Karagoz wrote:I haven't implemented it myself yet, but all examples I've seen check for
> I'm trying to limit all subscriber's active call according to setting their
> simultaneous use setting defined in database.
> But having problem when one subscriber's INVITE message goes to
> retransmission. When retranmission occures INVITE messages don't complete
> with BYE and subscriber simultaneus use amount will hung.
> My example code block is below.
> Does anyone advice me for overcome INVITE retransmissions?
!has_totag() in the INVITE when doing call limit accounting. So
if (is_method("INVITE") && $fU == $avp(s:username) && !has_totag())
in your case. But that only works if the device received the initial 100
Trying with a tag from Kamailio.
But might it not be better to just do the count in the INVITE and
adding/deleting of dialogs in the dialog event routes?
http://kamailio.org/docs/modules/stable/modules_k/dialog.html#id2556156
Problem here is that if the limit is 5 and and there are more than 5
concurrent INVITES you'd have to drop calls with a 200 OK response.
--
POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/ - http://www.sipo.nl/
K.v.K. Eindhoven 17097024
Bayram KARAGÖZNGN Engineer
-----------------------------------------
-----------------------------------------
NGN Engineer
-----------------------------------------
-----------------------------------------