[asterisk-users] PHPAGI and Asterisk 1.6

Carlos Chavez cursor at telecomabmex.com
Thu Mar 4 18:22:27 CST 2010


	I am developing a few AGI programs using PHPAGI.  This is the first
time developing for Asterisk 1.6 and I am having a lot of problems
reading variables with the $agi->get_variable construct.  While an AGI
debug shows me that I am asking for the variable and Asterisk is giving
me the correct value, most of the time the PHP variable is empty or
contains the wrong information.

	I never saw this problem with prior versions of Asterisk so I am
wondering what the problem with the phpagi class could be?  These
scripts are short and for low usage systems so I do not bother writing
them in C or other compiled language.  Is anyone having the same
problem?  So far my workaround is to do a loop of $agi->get_variable
until my php variable is not empty but that is ugly and wastes time.
Since PHPAGI has not been updated in several years is there another PHP
library for AGI development or is it better to try and build my own?

-- 
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100304/c2616fd9/attachment.pgp 


More information about the asterisk-users mailing list