asterisk@teladdict.com
2006-Aug-27 08:33 UTC
[asterisk-users] CDR Function - Asterisk-1.2.10
Hi, I'm having problems with calling the ${CDR(billsec)} & ${CDR(duration)} variables in an AGI. Note that I'm using Asterisk-1.2.10 and Realtime extensions + Realtime sip users/peers. John -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
Can you give us some more info? Like agi debug output? On 8/27/06, asterisk@teladdict.com <asterisk@teladdict.com> wrote:> Hi, > > I'm having problems with calling the ${CDR(billsec)} & ${CDR(duration)} > variables in an AGI. > > Note that I'm using Asterisk-1.2.10 and Realtime extensions + Realtime sip > users/peers. > > John > > -------------------------------------------------------------------- > mail2web - Check your email from the web at > http://mail2web.com/ . > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
asterisk@teladdict.com
2006-Aug-27 09:05 UTC
[asterisk-users] CDR Function - Asterisk-1.2.10
AGI == $res = $AGI->exec("Hangup"); $foo = ${CDR(billsec)}; myVerbose($foo); #print on CLI $foo = ${CDR(duration)}; myVerbose($foo); $foo = ${CDR(answer)}; myVerbose($foo); $foo = ${CDR(start)}; myVerbose($foo); when exected with perl =======================Undefined subroutine &main::CDR Im passing ${EXTEN} ${CALLERIDNUM} variables through extension table. agi accepts them fine. Original Message: ----------------- From: Justin Tunney jtunney@gmail.com Date: Sun, 27 Aug 2006 11:41:02 -0400 To: asterisk@teladdict.com, asterisk-users@lists.digium.com Subject: Re: [asterisk-users] CDR Function - Asterisk-1.2.10 Can you give us some more info? Like agi debug output? On 8/27/06, asterisk@teladdict.com <asterisk@teladdict.com> wrote:> Hi, > > I'm having problems with calling the ${CDR(billsec)} & ${CDR(duration)} > variables in an AGI. > > Note that I'm using Asterisk-1.2.10 and Realtime extensions + Realtime sip > users/peers. > > John > > -------------------------------------------------------------------- > mail2web - Check your email from the web at > http://mail2web.com/ . > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 asterisk@teladdict.com wrote:> AGI > ==> $res = $AGI->exec("Hangup"); > > $foo = ${CDR(billsec)}; > myVerbose($foo); #print on CLI > $foo = ${CDR(duration)}; > myVerbose($foo); > $foo = ${CDR(answer)}; > myVerbose($foo); > $foo = ${CDR(start)}; > myVerbose($foo); > > > when exected with perl > =======================> Undefined subroutine &main::CDR > > > Im passing ${EXTEN} ${CALLERIDNUM} variables through extension table. agi > accepts them fine.${CDR(xxx)} is a function, not a variable. Are you using a library? - -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://freevoip.gedameurope.com (Free Asterisk Voip Community) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE8cskS6d5vy0jeVcRAkj4AJ9KPowmwU/2NkPDb6tN7Md2oQ4R4ACeKwT5 RDevNr7jS/RHV5NaO7FTbTQ=sMTX -----END PGP SIGNATURE-----
asterisk@teladdict.com
2006-Aug-27 22:37 UTC
[asterisk-users] CDR Function - Asterisk-1.2.10
Hi Matt, Thanks for the information. Correct syntax for calling the CDR function in the AGI would be a great help. I have tried $foo = $AGI->exec(${CDR(xxx)}); and $foo = $AGI->${CDR(xxx)}; none of the above works. then i tried this: $AGI->verbose(CDR(billsec)); $AGI->verbose(CDR(duration)); $AGI->verbose(CDR(end)); The result was = Can't locate object method "CDR" via package "Asterisk::AGI" And I tried this: $AGI->verbose(${CDR(billsec)}); $AGI->verbose(${CDR(duration)}); $AGI->verbose(${CDR(end)}); got this error Undefined subroutine &main::CDR called. John Original Message: ----------------- From: Matt Riddell (IT) matt.riddell@sineapps.com Date: Sun, 27 Aug 2006 18:41:08 +0200 To: asterisk@teladdict.com, asterisk-users@lists.digium.com Subject: Re: [asterisk-users] CDR Function - Asterisk-1.2.10 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 asterisk@teladdict.com wrote:> AGI > ==> $res = $AGI->exec("Hangup"); > > $foo = ${CDR(billsec)}; > myVerbose($foo); #print on CLI > $foo = ${CDR(duration)}; > myVerbose($foo); > $foo = ${CDR(answer)}; > myVerbose($foo); > $foo = ${CDR(start)}; > myVerbose($foo); > > > when exected with perl > =======================> Undefined subroutine &main::CDR > > > Im passing ${EXTEN} ${CALLERIDNUM} variables through extension table. agi > accepts them fine.${CDR(xxx)} is a function, not a variable. Are you using a library? - -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://freevoip.gedameurope.com (Free Asterisk Voip Community) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE8cskS6d5vy0jeVcRAkj4AJ9KPowmwU/2NkPDb6tN7Md2oQ4R4ACeKwT5 RDevNr7jS/RHV5NaO7FTbTQ=sMTX -----END PGP SIGNATURE----- -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .