[Asterisk-Users] how to pass call duration to an agi script

Philipp von Klitzing klitzing at pool.informatik.rwth-aachen.de
Thu May 20 02:02:31 MST 2004


Hi!

> Ineed to pass the "call duration" and " Bill Sec" after a successfull 
> call to an AGI script. Is there a way to do this ?

- check out "asterisk-addons" from CVS
- enable the CFLAGS+=-DMYSQL_LOGUNIQUEID in the Makefile
- catch the unique ID of the call and pass it along to your AGI script
- let the AGI script look up the CDR record in mySQL/postgres and then do 
your processing as needed

Not sure if also the csv version of the CDR records does include the 
unique id.

Cheers, Philipp





More information about the asterisk-users mailing list