<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Hello,<br><br>I got the problem. When i was dialing a number that was directly hitting the IVR it is not accounting the INVITE and only CANCEL is accounted. not sure for this behaviour. I am investigating for this. ethereal trap & xlgos shows both INVITE and CANCEL but only acc shows CANCEL.<br><br>But when i dialed a number that was ringing before answered or pointed to VM than i am able to see the INVITE and CANCEL both accounted in cdrs as expected. but in this case i have to add the setflag lines. 1 - normal acc & 3 - failed transactions in CANCEL method.<br><br>Can you please clarify that why there is no need to add the setflag for the CANCEL method? Not working for me that way.<br><br>Thank you,<br>KC <br><br><br><br>--- On <b>Sun, 2/11/08, Iñaki Baz Castillo <i><ibc@aliax.net></i></b> wrote:<br><blockquote style="border-left: 2px solid
rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Iñaki Baz Castillo <ibc@aliax.net><br>Subject: Re: [Kamailio-Users] INVITE accounting problem<br>To: users@lists.kamailio.org<br>Date: Sunday, 2 November, 2008, 3:49 AM<br><br><pre>El Sábado, 1 de Noviembre de 2008, Kaeman Chris escribió:<br>> if (is_method("CANCEL")) {<br>> setflag(1);<br>> setflag(3);<br>> if (t_check_trans())<br>> t_relay();<br>> exit;<br>>
}<br><br>I suposse (you didn't say it) that flag(1) is the accounting flag.<br>Well, delete the "setflag" lines above since you don't need to<br>set accounting <br>flags for CANCEL. If you already set acc flag during the INVITE then the <br>CANCEL will be automatically handled by accounting module.<br><br>-- <br>Iñaki Baz Castillo<br>_______________________________________________<br>Users mailing list<br>Users@lists.kamailio.org<br>http://lists.kamailio.org/cgi-bin/mailman/listinfo/users<br></pre></blockquote></td></tr></table><br>
<!--1--><hr size=1></hr> Connect with friends all over the world. <a href="http://in.rd.yahoo.com/tagline_messenger_1/*http://in.messenger.yahoo.com/?wm=n/"> Get Yahoo! India Messenger.</a>