<div dir="ltr">Sorry, Im reading that acc supports Multi Call-Legs accounting. That's exactly what I need. I'll try with this first.<div><br></div><div><div>Thanks!</div><div><br></div><div>Diego.<br><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-17 16:21 GMT-03:00 Diego Nadares <span dir="ltr"><<a href="mailto:dnadares@gmail.com" target="_blank">dnadares@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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_<wbr>disposition);"</div><div>      "prefix=$dlg_var(prefix);gos=$<wbr>dlg_var(gos);endpoint_type=$<wbr>dlg_var(endpoint_type);"</div><div>        "ip_a=$dlg_var(ip_a);ip_b=$<wbr>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")<wbr>;</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><span class="HOEnZb"><font color="#888888"><div><br></div><div>Diego.</div><div><br></div><div><br></div></font></span></div>
</blockquote></div><br></div>