Something changed with calling local files from extensions_custom?

[domyothercommand]
exten => s,1,System(/home/asterisk/sendanemail.sh)
exten => s,n,Return

I was hitherto using the above bit of custom script, which is a custom destination called from an IVR. It has previously worked. If I call the file directly, the email is sent (bash sendanemail.sh).

If I go through the IVR myself, I get the correct announcement and the Asterisk logs seem to show the file is accessed;

[2019-09-30 20:48:36] VERBOSE[24346][C-00000063] pbx.c: Executing [dest-3@customdests:2] Gosub("SIP/31-00000034", "domyothercommand,s,1()") in new stack
[2019-09-30 20:48:36] VERBOSE[24346][C-00000063] pbx.c: Executing [s@domyothercommand:1] System("SIP/31-00000034", "/home/asterisk/sendanemail.sh") in new stack
[2019-09-30 20:48:36] VERBOSE[24346][C-00000063] pbx.c: Executing [s@domyothercommand:2] Return("SIP/31-00000034", "") in new stack

however doing a ‘stat’ on the file, only shows it being accessed by the bash method, NOT by the IVR itself. Owner and group on the file are both asterisk.

Weird - this worked up until a few days ago! Also, unless I’m missing something, nothing weird going on in the logs!

thanks!

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