Hi, I need to pass the "call duration" and " Bill Sec" after a successfull call to an AGI script. Is there a way to do this ? Cheers Sathya -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040519/80cb3fec/attachment.htm
Philipp von Klitzing
2004-May-20 02:02 UTC
[Asterisk-Users] how to pass call duration to an agi script
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
Apollon Koutlides
2004-May-20 02:45 UTC
[Asterisk-Users] how to pass call duration to an agi script
Philipp von Klitzing wrote:>Not sure if also the csv version of the CDR records does include the >unique id. > >It does, although not by default: cdr_csv.c: /* #define CSV_LOGUNIQUEID 1 */ /* #define CSV_LOGUSERFIELD 1 */ Apollon Koutlides