Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] setting channel variable in DeadAGI script


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
thieums at thieums.com
Guest





PostPosted: Tue Jun 03, 2008 8:41 am    Post subject: [asterisk-users] setting channel variable in DeadAGI script Reply with quote

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
Back to top
thieums at thieums.com
Guest





PostPosted: Tue Jun 03, 2008 9:33 am    Post subject: [asterisk-users] setting channel variable in DeadAGI script Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services