Good day, all...
I'm trying to solve a fairly easy requirement - I need to write to a file the number of the most recent call. (Bonus points, have all active call "from"/ani numbers in a text file).
As a quick and dirty, I figured I'd just add an action to the inbound dialplan: action, system (or bgsystem), script.sh ${ani}
From the log, the action is executed, but the scrip doesn't write anything to the text file. Called from the shell, the script works as expected. Permissions set 777 for testing.
Relevant log entries, below. Anyone have any thoughts?
538c1b65-caa0-4935-a4c4-8e503b250498 EXECUTE sofia/external/+11234567890@fl.gg bgsystem(/fusion/script.sh +11234567890)
538c1b65-caa0-4935-a4c4-8e503b250498 2018-10-06 06:31:22.337665 [NOTICE] mod_dptools.c:2107 Executing command: /fusion/script.sh +11234567890
I'm trying to solve a fairly easy requirement - I need to write to a file the number of the most recent call. (Bonus points, have all active call "from"/ani numbers in a text file).
As a quick and dirty, I figured I'd just add an action to the inbound dialplan: action, system (or bgsystem), script.sh ${ani}
From the log, the action is executed, but the scrip doesn't write anything to the text file. Called from the shell, the script works as expected. Permissions set 777 for testing.
Relevant log entries, below. Anyone have any thoughts?
538c1b65-caa0-4935-a4c4-8e503b250498 EXECUTE sofia/external/+11234567890@fl.gg bgsystem(/fusion/script.sh +11234567890)
538c1b65-caa0-4935-a4c4-8e503b250498 2018-10-06 06:31:22.337665 [NOTICE] mod_dptools.c:2107 Executing command: /fusion/script.sh +11234567890