[OpenSIPS-Users] about Accounting
ASHWINI NAIDU
ashwini.naidu at gmail.com
Mon May 18 09:33:16 CEST 2009
hi,
have you set the flag 2 and 3 at invite and bye.
i.e
//logging invite requests
if ( method == "INVITE") {
.......
setflag("2"); //for call
setflag("3"); //for missed call
}
//for logging bye requests
if (method == "BYE") {
...........
setflag("2");
setflag("3");
}
2009/5/18 Цэвээндорж ЖиМэйл <tseveendorj at gmail.com>
> Hello,
>
> I need to get accounting information in MySQL database.
>
> *My acc settings*
> # ----- acc params -----
> /* what sepcial events should be accounted ? */
> modparam("acc", "early_media", 1)
> modparam("acc", "report_ack", 1)
> modparam("acc", "report_cancels", 1)
> /* by default ww do not adjust the direct of the sequential requests.
> if you enable this parameter, be sure the enable "append_fromtag"
> in "rr" module */
> modparam("acc", "detect_direction", 0)
> /* account triggers (flags) */
> modparam("acc", "failed_transaction_flag", 3)
> modparam("acc", "log_flag", 1)
> modparam("acc", "log_missed_flag", 2)
> /* uncomment the following lines to enable DB accounting also */
> modparam("acc", "db_flag", 2)
> modparam("acc", "db_missed_flag", 3)
> modparam("acc", "db_url", "mysql://opensips:opensipsrw@localhost
> /opensips")
>
> What is wrong in my configuration ?
> How to do it ?
>
> Sincerely,
> Tseveen.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Thanking You,
Ashwini BR Naidu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090518/b459daac/attachment-0001.htm
More information about the Users
mailing list