Hi,
I have two questions.
a. Is there an installation manual for CentOS?
b. The command $agi = new AGI(); does not go forward.
I am using Centos 6, Certified Asterisk 1.8 LTS, PHP 5.3.3 and PHP-AGI 2.20. I have setup the manager.conf and phpagi.conf in /etc/asterisk
However the command timesout at $agi = new AGI();
The file phpagi and phpagi-asmanager are in the same folder as my php class. The code I have used is as follows:
!/usr/bin/php -q
<?php
set_time_limit(30);
require('phpagi.php');
$agi = new AGI();
$res=$agi->agi_exec("EXEC DIAL SIP/1234@sip.domain.com||t,r");
$agi->hangup();
?>
Can you please help?
Thanks in advance.
ARK
Last edit: ark 2015-01-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have two questions.
a. Is there an installation manual for CentOS?
b. The command $agi = new AGI(); does not go forward.
I am using Centos 6, Certified Asterisk 1.8 LTS, PHP 5.3.3 and PHP-AGI 2.20. I have setup the manager.conf and phpagi.conf in /etc/asterisk
However the command timesout at $agi = new AGI();
The file phpagi and phpagi-asmanager are in the same folder as my php class. The code I have used is as follows:
!/usr/bin/php -q
<?php
set_time_limit(30);
require('phpagi.php');
$agi = new AGI();
$res=$agi->agi_exec("EXEC DIAL SIP/1234@sip.domain.com||t,r");
$agi->hangup();
?>
Can you please help?
Thanks in advance.
ARK
Last edit: ark 2015-01-16