How can I get duration after call over using AGI/DeadAGI

How can I get duration after call over using AGI/DeadAGI on Asterisk 1.2.*??? duration means how long the call last.

There is a variable {ANSWEREDTIME} that will be available after the call has ended.

This variable holds the duration of the call in seconds

hi, rickead2000

Thank you very much. But I need some variables which equal billsec in CDR.

hi, I explain this I thik very well in this post:
forums.digium.com/viewtopic.php?t=13040

Is this not help you?