Hi,
I am trying to use the System() application in my dialplan to run a script when an extension is called.
This works just fine with Asterisk running inside of a terminal in console mode (asterisk -cvvv).
However, when run as an init service using the provided Asterisk init scripts, the System() script does not run when the extensions is called. I have modified the init script slightly to remove the “-F” asterisk argument, which forced Asterisk into fork mode. Asterisk now auto-starts at boot as the Asterisk user in the Asterisk group, with flags “-c -v -v -v -f”. However the issue persists.
To sum, a script which is called perfectly fine (under asterisk user/group) from the terminal in console mode, does not start when Asterisk runs as a service. That said, a command like System(mkdir ~/foo) works fine in both console mode and service mode.
Can anybody offer a suggestion to resolve that?
Thank you in advance.