hi - I have searched everywhere for a relevant fix or a cause for this error but can’t seem to put my finger on it
i am trying to execure a script as part of the dialplan
extensions.conf
exten => 1,n(empty),System(/usr/bin/call/mailnonumber.sh user@emailaddy.com ${CALLERID(num)} Queue1)
Error:
app_system.c:138 system_exec_helper: Unable to execute '/usr/bin/call/mailnonumber.sh user@emailaddy.com 7075551111 Queue1'
ls output
[root@localhost call]# pwd
/usr/bin/call
[root@localhost call]# ls -al
total 32
drwxr-xr-x 2 asterisk root 4096 Jul 2 15:22 .
dr-xr-xr-x. 3 root root 20480 Jul 2 13:24 ..
-rwxr-xr-x 1 asterisk root 287 Jul 2 15:22 mailnonumber.sh
-rwxr-xr-x 1 asterisk root 307 Jul 2 15:22 mailnumber.sh
Also if I execute this command as root
/usr/bin/call/mailnonumber.sh user@emailaddy.com 7075551111 Queue1
it works
if i change /etc/passwd and give asterisk user /bin/sh unsead of /sbin/nologon
and then
su - asterisk
and execure as that user it also works
so it only doesn’t work from the dial plan
Any ideas ?