[asterisk-users] setting channel variable in DeadAGI script

thieums thieums at thieums.com
Tue Jun 3 09:33:18 CDT 2008


Hi,
  i've got a quite simple question. I'm writing an agi script (based on
phpagi). My script is working just fine, i'm just unable to pass (set) a
variable from my agi script to my dialplan. I'm setting a variable into my
script, but when it ends and return to dialplan, the variable is just empty.

Here is my dialplan

exten => _X., 1, DeadAGI(myscript.php)
exten => _X., n, Verbose(1,${MYVAR})


Here is my script

bla bla bla
$agi->set_var("MYVAR","1234");
?>

I tryed uper and lowercase
I tryed prefixing variable name with __

If you have any idea ...

Thank you

Mathieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080603/f94e5e7c/attachment.htm 


More information about the asterisk-users mailing list