[Freeswitch-users] Run Bash script in Dialplan
abelcubano at gmail.com
Fri Nov 15 22:36:18 UTC 2019
I am trying to run a bash script when dialplan is generate.
I have tested this bash script in CLI and is working as expected, but when
is called from dialplan I don't see any error and looks like the bash was
api = freeswitch.API();
rotation = api:executeString("system sh
/opt/ASTPP/freeswitch/scripts/rotation.sh"); --> this rotate between 2x
gateway name and save the name to a file, but looks like never run.
gateway = api:executeString("system sh
/opt/ASTPP/freeswitch/scripts/random2.sh"); ---> this script read the name
of the gateway from the file, and works perfect.
table.insert(xml, [[<action application="bridge"
Here is the result on console:
EXECUTE sofia/default/14254358039 at 18.104.22.168
I don't any way to troubleshoot why 1x script run perfectly and the other
one is not running.
Thank You in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users