<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 &amp; 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 &amp; CANCEL accounted in db. but in this case i have to add the setflag lines. 1 - normal acc &amp; 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>&lt;miconda@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Daniel-Constantin Mierla &lt;miconda@gmail.com&gt;<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>&gt; <br>&gt; Hello,<br>&gt; <br>&gt; 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>&gt; <br>&gt; following is the config for INVITE &amp; CANCEL;<br>&gt; <br>&gt;         if (is_method("INVITE")) {<br>&gt;                 setflag(1);<br>&gt;                 setflag(2);         # MISSED<br>&gt;                 if (allow_trusted()) {<br>&gt;                         rewritehostport("xx.xxx.xy.xyz:5060");<br>&gt;                         route(1);<br>&gt;                 } else {<br>&gt;                         sl_send_reply("401",<br>"Unauthorized");<br>&gt;           
              route(1);<br>&gt;                         exit;<br>&gt;                         }<br>&gt;         }<br>&gt; <br>&gt;         # CANCEL processing<br>&gt;         if (is_method("CANCEL")) {<br>&gt;                 setflag(1);<br>&gt;                 setflag(3);<br>&gt;                 if (t_check_trans())<br>&gt;                         t_relay();<br>&gt;                 exit;<br>&gt;         }<br>&gt;         t_check_trans();<br>&gt; <br>&gt; 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>&gt; <br>&gt; Thanks,<br>&gt; KChris.<br>&gt; <br>&gt; <br>&gt; ------------------------------------------------------------------------<br>&gt; Add more friends to your messenger and enjoy! Invite them now.<br>&lt;http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/&gt;<br><br>&gt;
 ------------------------------------------------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; Users@lists.kamailio.org<br>&gt; http://lists.kamailio.org/cgi-bin/mailman/listinfo/users<br>&gt;   <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>