[asterisk-users] Help Asterisk / API / Perl
Olivier CALVANO
o.calvano at gmail.com
Sat Mar 5 01:25:28 CST 2011
Hi
i want use the API on my asterisk 1.6, but i have a small problems :
In extension, i start it :
exten => _X.,3,AGI(My-Script.agi)
The perl agi file are started without problems
but i want get into this script a lot of variable:
Type (SIP or IAX)
src (from cdr)
but that's don't work:
use Asterisk::AGI;
use lib "/var/lib/asterisk/agi-bin";
$AGI = new Asterisk::AGI;
$typ = $AGI->get_variable('agi_type');
$typ don't have SIP or IAX, same test without succes:
$typ = $AGI->get_variable('type');
anyone know this problems ?
thanks
Olivier
More information about the asterisk-users
mailing list