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


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



$agi = new AGI();
$agi->verbose("AGI is Running -------------------------- Connected");



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

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