PHP + AGI + Asterisk


#1

Please kindly advise, is it possible to setup PHP with AGI without using PHPAGI.
Just using raw PHP + AGI + Asterisk.
Please advise.


#2

Yes, you can use whatever you want.


#3

Ok ,this means i can actually do my own scripting and not use an AGI Scripting framework ?


#4

http://asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/AGI.html


#5

PHPAGI class make your like easier, but you are not limited to use it you can use PHP + Asterisk and no clasess needed

#!/usr/bin/php -q

<?php

echo "ANSWER";

echo "\n";

echo  "EXEC saydigits $argv[1]";

echo "\n";

echo "EXEC  read   d,demo-thanks,1";

echo "\n";

?>

#6

Thanks , i will use the class then to simply my life.