|Summary:||ASTERISK-06265: CDR variables doesn't have the real values i.e CDR(duration), CDR(billsec) and CDR(end)|
|Date Opened:||2006-02-07 04:32:13.000-0600||Date Closed:||2011-06-07 14:10:41|
|Description:||The CDR(duration) and CDR(billsec) always get the value 0 even when the call as been anwsered and CDR(end) always get the value of CDR(answer). Dunno why|
It was working before 1.2.x. Since i change to 1.2.x (using 1.2.4 right now) this CDR values have been wrong...
I tried to get it from the AGI, from the context and the result is always the same .
Doesn't matter where i get them from the result is always 0.
|Comments:||By: Tilghman Lesher (tilghman) 2006-02-07 16:59:32.000-0600|
Actually, there was a prior bug that caused these variables to return the start time. It's likely that the values that you're seeing are simply due to this old bug being corrected (which means the values are as of yet unset).
By: Russell Bryant (russell) 2006-02-09 08:22:11.000-0600
The billsec, duration, and end CDR variables can not be set until the call is over. Currently, there is no way to retrieve these values from the dialplan. However, ending the CDR *before* the 'h' extension as opposed to afterwards should give you the behavior you want.
Test the patch in ASTERISK-6036 and see if it gives you what you want.
By: nsilva (nsilva) 2006-02-09 08:27:15.000-0600
Yah, I know that the call has to ended... and it does..well the dial command ends. It should be possible afterwards get that info and it isn't.
That patch i alread test it... still the same...
The CDR variables should be available right after the DIAL command was executed... on this case.
By: Russell Bryant (russell) 2006-02-09 09:46:17.000-0600
Did you try getting these values inside of the 'h' extension with the patch from 6193?
By: Olle Johansson (oej) 2006-03-05 02:50:12.000-0600
No answer from nsilva.