Hello,

Yes, this is already included. I found something with further tests.

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.

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.

Thank you,
KC




--- On Mon, 3/11/08, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
From: Daniel-Constantin Mierla <miconda@gmail.com>
Subject: Re: [Kamailio-Users] INVITE accounting problem
To: kaemanchris@yahoo.co.in
Cc: users@lists.kamailio.org
Date: Monday, 3 November, 2008, 4:09 PM

Hello,

you have to set the flag for accounting failed transactions. See the acc
readme:

http://www.kamailio.org/docs/modules/1.4.x/acc.html#id2467962

Cheers,
Daniel


On 11/02/08 00:09, Kaeman Chris wrote:
>
> Hello,
>
> I have a problem in accounting INVITE. When the call is connected with
duration the INVITE, ACK, BYE are accounted in db. But the problem is when the
call is disconnected before it is actually attempting to connect. i am getting
only CANCEL accounted whereas INVITE is not accounted for the cancelled call. I
have the xlogs showing INVITE and CANCEL both for this call only no accounting
is performed for INVITE.
>
> following is the config for INVITE & CANCEL;
>
> if (is_method("INVITE")) {
> setflag(1);
> setflag(2); # MISSED
> if (allow_trusted()) {
> rewritehostport("xx.xxx.xy.xyz:5060");
> route(1);
> } else {
> sl_send_reply("401",
"Unauthorized");
> route(1);
> exit;
> }
> }
>
> # CANCEL processing
> if (is_method("CANCEL")) {
> setflag(1);
> setflag(3);
> if (t_check_trans())
> t_relay();
> exit;
> }
> t_check_trans();
>
> Please let me know what should be changed so that for the Call that is
cancelled before it actually connects can have INVITE also accounted along w/
CANCEL.
>
> Thanks,
> KChris.
>
>
> ------------------------------------------------------------------------
> Add more friends to your messenger and enjoy! Invite them now.
<http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/>

> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users@lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>

-- Daniel-Constantin Mierla
http://www.asipto.com



Get perfect Email ID for your Resume. Get before others grab.