[Freeswitch-users] bash script with variables
thomas.peterseil at mine-project.eu
Wed Nov 27 16:54:11 UTC 2019
i would like to start from the dialplan a bash script and the
freeswitch is handing over one variable to the script. in the cli i
see the correct start of the script:
[NOTICE] mod_dptools.c:2120 Executing command: /root/scripts/test1.sh 3333
the script is very simple:
mutt -s "Call $number" thomas.peterseil at mine-project.eu <
echo "$number" > test1.txt
i get the email with the variable in the subject, that works fine, but
i can´t see the 3333 in the test1.txt file.
when i start the script from the command line with ./test1.sh 3333 all
is working fine. can somebody give me a hint why it doesn´t work from
thanks a lot and have a nice day!
More information about the FreeSWITCH-users