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.
Connect with friends all over the world. Get Yahoo! India Messenger at
http://in.messenger.yahoo.com/?wm=n/