I have had bash scripts running from dialplan before but this time it just wont execute.
I’m not getting any errors on the console but the script is just being run
The command I am using is as follows
same => n,System(/bin/bash /var/lib/asterisk/scripts/fax.sh “${rxfile}” “${ARG5}” “${ARG6}” “${CALLERID(num)}”))
I have set file permissions on /var/lib/asterisk/scripts/fax.sh to 777 and set the ownership to asterisk and still it doesn’t run
chmod 777 /var/lib/asterisk/scripts/
chmod 777 /var/lib/asterisk/scripts/*
chown asterisk /var/lib/asterisk/scripts/*
I have also tried running the command with sudo -uasterisk but again nothing
Any ideas here?