<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Hello,<br><br>Yes, this is already included. I found something with further tests.<br><br>For the calls that are hitting the IVR directly it is not accounting INVITE and only CANCEL is accounted in db. I am investigating for this. ethereal trap & xlgos shows both INVITE and CANCEL but only acc in db records CANCEL.<br><br>
Whereas for the calls that are ringing and hung up before being answered or hitting the VM they have both the INVITE & CANCEL accounted in db. but in this case i have to add the setflag lines. 1 - normal acc & 3 - failed transactions in CANCEL method.<br><br>Thank you,<br>KC<br><br><br><br><br>--- On <b>Mon, 3/11/08, Daniel-Constantin Mierla <i><miconda@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Daniel-Constantin Mierla <miconda@gmail.com><br>Subject: Re: [Kamailio-Users] INVITE accounting problem<br>To: kaemanchris@yahoo.co.in<br>Cc: users@lists.kamailio.org<br>Date: Monday, 3 November, 2008, 4:09 PM<br><br><pre>Hello,<br><br>you have to set the flag for accounting failed transactions. See the acc<br>readme:<br><br>http://www.kamailio.org/docs/modules/1.4.x/acc.html#id2467962<br><br>Cheers,<br>Daniel<br><br><br>On 11/02/08 00:09, Kaeman Chris
wrote:<br>> <br>> Hello,<br>> <br>> I have a problem in accounting INVITE. When the call is connected with<br>duration the INVITE, ACK, BYE are accounted in db. But the problem is when the<br>call is disconnected before it is actually attempting to connect. i am getting<br>only CANCEL accounted whereas INVITE is not accounted for the cancelled call. I<br>have the xlogs showing INVITE and CANCEL both for this call only no accounting<br>is performed for INVITE.<br>> <br>> following is the config for INVITE & CANCEL;<br>> <br>> if (is_method("INVITE")) {<br>> setflag(1);<br>> setflag(2); # MISSED<br>> if (allow_trusted()) {<br>> rewritehostport("xx.xxx.xy.xyz:5060");<br>> route(1);<br>> } else {<br>> sl_send_reply("401",<br>"Unauthorized");<br>>
route(1);<br>> exit;<br>> }<br>> }<br>> <br>> # CANCEL processing<br>> if (is_method("CANCEL")) {<br>> setflag(1);<br>> setflag(3);<br>> if (t_check_trans())<br>> t_relay();<br>> exit;<br>> }<br>> t_check_trans();<br>> <br>> Please let me know what should be changed so that for the Call that is<br>cancelled before it actually connects can have INVITE also accounted along w/<br>CANCEL.<br>> <br>> Thanks,<br>> KChris.<br>> <br>> <br>> ------------------------------------------------------------------------<br>> Add more friends to your messenger and enjoy! Invite them now.<br><http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/><br><br>>
------------------------------------------------------------------------<br>> <br>> _______________________________________________<br>> Users mailing list<br>> Users@lists.kamailio.org<br>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users<br>> <br><br>-- Daniel-Constantin Mierla<br>http://www.asipto.com<br><br></pre></blockquote></td></tr></table><br>
<!--1--><hr size=1></hr> Get perfect Email ID for your Resume. <a href="http://in.rd.yahoo.com/tagline_dbid_1/*http://in.promos.yahoo.com/address" target="_blank">Get before others grab.</a>