How can I get the value of the field (say billsec) in CDR after the
call is terminated? I have a dial plan below to get the billsec after
one of the party hangup the call. However, the value of billsec is
always 0.
exten => s,2,Hangup
exten => h,1,NoOp(channel=${CHANNEL})
exten => h,2,Set(billsec=${CDR(billsec)})
exten => h,3,MacroExit