<div dir="ltr">I figured out that I can get start_time and end_time from dlg_vars. <div><br></div><div>The only thing left is hangup cause. Any help with this?</div><div><br></div><div>Thanks!</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-20 9:46 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 have configured to use cdr with extra fields</div><div><br></div><div><div style="font-size:13px"><div>modparam("acc", "cdr_extra",</div></div><div style="font-size:13px"><div>    <b>    "sip_code=$rs;sip_reason=$rr;"</b></div><div>        "hangup_src=$dlg_var(hangup_di<wbr>sposition);"</div><div>      "prefix=$dlg_var(prefix);gos=$<wbr>dlg_var(gos);endpoint_type=$dl<wbr>g_var(endpoint_type);"</div><div>        "ip_a=$dlg_var(ip_a);ip_b=$dlg<wbr>_var(ip_b);"</div></div><div><br></div><div>Is this the right way to always save the hangup cause? Or is another better way? Because, when call is finished with a bye both fields are empty.</div></div><div><br></div><div>The other thing is that I need to save, start_time and end_time with seconds.microseconds (1490013250.601707). Is this possible?</div><div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Diego</div><div>  </div></font></span></div>
</blockquote></div><br></div>