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
18 nvram show | grep AST_* | sort | while read ast_nvram; do
19 # Send AGI Cmd to asterisk
20 echo "EXEC SetGlobalVar '$ast_nvram'"
23 # Now read the response back from Asterisk,
25 # echo $response >> /tmp/logfile.txt