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"); ?> If you have any idea ... Thank you Mathieu
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