Hi Guys,

I'm using acc module for accounting with the following conf:

modparam("acc", "cdr_enable", 1)
modparam("acc", "cdr_expired_dlg_enable", 1)
modparam("acc", "cdr_start_on_confirmed", 1)
modparam("acc", "cdr_facility", "LOG_LOCAL1")
modparam("acc", "cdr_end_id", "end_time_dt")
modparam("acc", "cdr_extra",


It works fine. At the end of the call the cdr is generated ok.

BUT In MANAGE_FAILURE,  If the first call failed and if there are more
dests, we are generating a new call in the same dialog (Some of the dialog
vars like ip_a, ip_b can change for the new dest )

I would like to generate both cdrs, the one that failed and the new one
(with some dlg vars with new data).

if(rtjson_next_route() && t_check_status("503")) {
                $avp(current_route) = $avp(current_route)+1;

Right now just the last call cdr is saved.

I all ready made this work with db_acc (transaction oriented) but I think
in my case it will be more reliable with cdr (dialog oriented).

Thanks in advance!

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

Reply via email to