I'm using Asterisk 1.8 with PHP for AGI scripting.
EDIT:
I'm struggling with setting and obtaining the values of global variables from within an AGI PHP script. I can set channel variables but not global variables. Using PHPAGI lib.
Tried:
Set({$varname}={$value},g)
Set({$varname}=\"{$value}\",g)
Set(GLOBAL({$varname})={$value})
That does not seem to work at all, when getting the value from within the dial plan, it is empty.
Does anyone have a working example of setting and getting global variables in an AGI script?