[Users] mysql database accounting problems

Victor Gamov vit at lipetsk.ru
Wed Apr 11 17:18:40 CEST 2007

raviprakash sunkara wrote:
> Hello
> better use these function
> acc_db_request("200","acc");

Can somebody explain me some OpenSER logic?

So if I have following config (simplified):

--------------- cut here ------------------
modparam("acc", "db_flag", 1)
modparam("acc", "failed_transaction_flag", 1)

route {


   if ( ! lookup("location") ) {
     sl_send_reply("404", "Not found");

--------------- /cut here ------------------

can I expect that calls to not registered users (lookup() return FALSE) 
will be accounted?

if NOT -- so, what is it means "failed_transaction_flag" and 
"db_missed_flag" ?  What is it means "missed calls": user does not 
respond? or user busy? or user not registered?

If locally generated reply does not considered as failed transaction
(I think it's because I still haven't transaction at this moment) can I 
manually create transaction by t_newtran() and expect that it will be 
considered by ACC-module as "failed_transaction" ?

(yes I red documentation but I still don't understand some logic)

Victor Gamov

More information about the Users mailing list