My ASL3 install does NOT run a script when called from rpt.conf.
Yes, the script has proper permissions set. Yes, the script runs fine when called from the shell. Yes, ASL3 is decoding the proper DTMF codes. No, ASL3 is not running the script when called.
I may just fall back to ASL2. This is a game killer for my linked system
My ASL3 runs scripts and commands just fine from in rpt.conf. Sounds like you don’t have something set up properly or are otherwise misunderstanding.
You keep saying that it will not run a script. How do you know this? Have you tried running a more basic script or command like a simple echo statement or file touch? You still have not stated whether or not you have tried manually running the script or command as the asterisk user.
Every thread that I have read so far with people complaining about how ASL3 doesn’t run their script or commands has boiled down to a simple misconfiguration or a lack of understanding of Linux permissions.
sudo asterisk -x 'rpt fun <my-node> *881'
sudo asterisk -x 'rpt fun <my-node> *882'
The 1st command should create (“touch”) the /tmp/touch-was-executed file and you should note that the file owner is “asterisk”. If you exec the command again the date stamp on the file should be updated.
The 2nd command should create the /tmp/test.log file with the content showing the date the command was exec’d, the “id” of the exec’ing user (e.g. “asterisk”), and the arguments from the rpt.conf file. If you exec the command again you should see additional lines appended to the end.
Are you logged in as root and “testing” the script by running it directly as the root user? You never specified. How should we know?
Anyways, hope you get it figured out.
People are so quick to hop on here and holler “This thing I’m trying to do doesn’t work! ASL3 sucks! I’m going back to ASL2/hamvoip/whatever!” It gets kinda old.
One additional tidbit that may help folks testing out any scripts they write that will be exec’d as the “asterisk” user would be to try exec’ing their scripts with sudo -u asterisk ....
For the test script I noted above you would exec :
sudo -u asterisk /etc/asterisk/local/test.sh a b c
To see if ssh would work the following command might be informative :
We can close this thread. The issue was on the remote node 1100 in that I had not set up passwordless login to it as user asterisk (I only had done that as root). So the remote node was asking for the password but it was never sent, so the command sent failed.
The script on 1102 was running as it should. Thanks to all who offered assistance, especially Allan.