<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Hello,<br><br>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.<br><br>following is the config for INVITE & CANCEL;<br><br> if (is_method("INVITE")) {<br> setflag(1);<br> setflag(2); #
MISSED<br> if (allow_trusted()) {<br> rewritehostport("xx.xxx.xy.xyz:5060");<br> route(1);<br> } else {<br> sl_send_reply("401", "Unauthorized");<br>
route(1);<br> exit;<br> }<br> }<br><br> # CANCEL processing<br> if (is_method("CANCEL")) {<br> setflag(1);<br> setflag(3);<br> if (t_check_trans())<br>
t_relay();<br> exit;<br> }<br> t_check_trans();<br><br>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.<br><br>Thanks,<br>KChris.<br><br></td></tr></table><br>
<!--6--><hr size=1></hr> Add more friends to your messenger and enjoy! <a href="http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/"> Invite them now.</a>