3 # Set a variable called stdin to help us
4 # get the variables from Asterisk
7 # Read in the variables from Asterisk,
8 # and write them to a log file
9 while [ "$stdin" != "" ]
12 # if [ "$stdin" != EOF ]
14 # echo $stdin >> /tmp/logfile.txt
19 # Send AGI Cmd to asterisk
20 echo "EXEC SetGlobalVar $1=${value}"
22 # Now read the response back from Asterisk,
24 # echo $response >> /tmp/logfile.txt