I am new in asterisk
and need help. I have a bash script that i need to run from my dial plan and get the value returned from it and put it into a variable in my dial plan.
For example my bash script is test.sh
:
#! /bin/bash
echo "61"
My dial plan:
exten => 3333,1,Set(result=${shell(/root/test.sh)})
exten => 3333,2,Verbose(result is: ${result})
The script have a 777 Permissions and when I run it manually from the shell command line it is working. I want to run it from dialplan and use the returned value in a variable, I get nothing back ( no value returned )
My asterisk version is Asterisk 1.6.2.20