This topic has been discussed before: ivr-execute-shell-script-php-file/59726
I am wanting to pass the CALLERID and IVR option chosen as a variable to the shell script. (I plan to have the shell script execute a wget to a remote url/php file.
example:
my_script.sh
wget xxxx://server.com/newcaller.php?callerid=XXXXXXXXX&option=2
[mycommand]
exten => s,1,System(/home/asterisk/my_script.sh,$CALLERID,$IVROPTION)
exten => s,n,Return
Am I on the right track? What would be the variable names for CALLERID and IVR Options?