hi
I have started to test an agi script but it’s not executing. please check for errors and mistakes.
getdtmf.php: Failed to execute '/var/lib/asterisk/agi-bin/getdtmf.php': Exec format error
[2020-10-12 16:15:12] ERROR[8005][C-00044b04] utils.c: write() returned error: Broken pipe
my test code:
#!/usr/bin/php -q
<?php
require_once('phpagi.php');
$agi = new AGI();
$agi->verbose("AGI is Running -------------------------- Connected");
exit;
?>
This is the result of the code:
php /var/lib/asterisk/agi-bin/getdtmf.php
#!/usr/bin/php -q
VERBOSE “AGI is Running -------------------------- Connected” 1