<div dir="ltr">Hi Guys,<div><br></div><div>I'm using acc module for accounting with the following conf:</div><div><br></div><div>....</div><div><div>modparam("acc", "cdr_enable", 1)</div><div>modparam("acc", "cdr_expired_dlg_enable", 1)</div><div>modparam("acc", "cdr_start_on_confirmed", 1)</div><div>modparam("acc", "cdr_facility", "LOG_LOCAL1")</div><div>modparam("acc", "cdr_end_id", "end_time_dt")</div><div>modparam("acc", "cdr_extra",</div></div><div><div>        "sip_code=$rs;sip_reason=$rr;"</div><div>        "hangup_src=$dlg_var(hangup_disposition);"</div><div>      "prefix=$dlg_var(prefix);gos=$dlg_var(gos);endpoint_type=$dlg_var(endpoint_type);"</div><div>        "ip_a=$dlg_var(ip_a);ip_b=$dlg_var(ip_b);"</div></div><div>....</div><div><br></div><div>It works fine. At the end of the call the cdr is generated ok.</div><div><br></div><div>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 )</div><div><br></div><div>I would like to generate both cdrs, the one that failed and the new one (with some dlg vars with new data).</div><div><br></div><div><div>if(rtjson_next_route() && t_check_status("503")) {</div><div>                $avp(current_route) = $avp(current_route)+1;</div><div>                t_on_branch("MANAGE_BRANCH");</div><div>                t_on_failure("MANAGE_FAILURE");</div><div>                route(RELAY);</div><div>                exit;</div><div>        }</div></div><div><br></div><div><br></div><div>Right now just the last call cdr is saved.</div><div><br></div><div>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).</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Diego.</div><div><br></div><div><br></div></div>