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 {
setflag(1);
if ( ! lookup("location") ) { sl_send_reply("404", "Not found"); exit; }
route(1); } --------------- /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)