[asterisk-users] setting channel variable in DeadAGI script
thieums
thieums at thieums.com
Tue Jun 3 08:41:32 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");
?>
If you have any idea ...
Thank you
Mathieu
More information about the asterisk-users
mailing list