I figured out that I can get start_time and end_time from dlg_vars. 

The only thing left is hangup cause. Any help with this?

Thanks!

2017-03-20 9:46 GMT-03:00 Diego Nadares <dnadares@gmail.com>:
Hi guys,

I have configured to use cdr with extra fields

modparam("acc", "cdr_extra",
        "sip_code=$rs;sip_reason=$rr;"
        "hangup_src=$dlg_var(hangup_disposition);"
      "prefix=$dlg_var(prefix);gos=$dlg_var(gos);endpoint_type=$dlg_var(endpoint_type);"
        "ip_a=$dlg_var(ip_a);ip_b=$dlg_var(ip_b);"

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.

The other thing is that I need to save, start_time and end_time with seconds.microseconds (1490013250.601707). Is this possible?

Thanks!

Diego