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(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
--
Daniel-Constantin Mierla
http://www.asipto.com