[asterisk-users] CDR Function - Asterisk-1.2.10

asterisk at teladdict.com asterisk at teladdict.com
Sun Aug 27 22:37:50 MST 2006


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 at sineapps.com
Date: Sun, 27 Aug 2006 18:41:08 +0200
To: asterisk at teladdict.com, asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] CDR Function - Asterisk-1.2.10


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


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .





More information about the asterisk-users mailing list