[asterisk-users] CDR Function - Asterisk-1.2.10

Matt Riddell (IT) matt.riddell at sineapps.com
Sun Aug 27 09:41:08 MST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

asterisk at 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-----



More information about the asterisk-users mailing list