Since CDR(billsec) is a live variable until the Hangup command is issued
(actually until the CDR is written), the only way to get the value (IMO)
would be after the call was completed.  You could do a DeadAGI or System
call using CDR(uniqueid) to report the value from the CDR back to another
call or web page.

 

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Anahi Ludueña
Sent: Wednesday, October 28, 2009 6:35 AM
To: [email protected]
Subject: [asterisk-users] CDR(billsec)

 

Hi people, when I try to get the billsec in the dialplan, it is 0... but if
after that I check the database, it is right (not 0).
I'm trying to get it in the h extension, like:

exten => h,1,Noop(End)
exten => h,n,Noop(Time is ${CDR(billsec)})
....

Is it updated after the extension h is executed? In that case, how can I get
the call duration in the h extension?
Thanks,






  _____  

Anahi Ludueña

 





  _____  

Todo el espacio y cuidado que merecen tus fotos digitales lo tienes en
Windows Live Fotos. ¡Pruébalo!  <http://www.vivelive.com/compartirfotos/> 

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to