Failed to execute '/var/lib/asterisk/agi-bin/getdtmf.php': Exec format error

configuration
Tags: #<Tag:0x00007f70259fefd8>

(FAK) #1

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


(system) closed #2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.