[asterisk-users] Help Asterisk / API / Perl

Steve Edwards asterisk.org at sedwards.com
Sat Mar 5 11:50:45 CST 2011


On Sat, 5 Mar 2011, Olivier CALVANO wrote:

> i want use the API on my asterisk 1.6, but i have a small problems :
>
> $typ don't have SIP or IAX, same test without succes:
> $typ = $AGI->get_variable('type');

'agi_type' is part of the AGI environment, not a channel variable.

Read the documentation for your AGI library to see how to access the AGI 
environment variables -- the cruft Asterisk writes to the STDIN of your 
AGI before any of your requests.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list