Eric "ManxPower" Wieling
2005-Oct-15 19:17 UTC
[Asterisk-Users] Pass variable to context (NOT macro)
Samy Antoun wrote:> Hi, > > Is there anyway to pass a variable from one context to another (NOT > macro and NOT global)That is the default. Once you set a variable it should exist for the life of the channel. Now, if you are wanting to access that variable when one channel spawns another channel (like chan_local does), then prefix the name of the variable by _ or __ . I'm sure it's documented somewhere, but I have no idea where. The underscore and double underscore prefix feature is NOT available in 1.0.x, only in CVS-HEAD and 1.2 and later. See the mailing list archives, it's been discussed before.
Hi, Is there anyway to pass a variable from one context to another (NOT macro and NOT global) Regards __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Nir Simionovich
2005-Oct-16 13:00 UTC
[Asterisk-Users] Pass variable to context (NOT macro)
Hi Samy, Well, I've ran into the same issue a while back, and ended up solving it by using an AGI script to Actually performa a manager based originate with variables. This was I actually dialed a specific extension In a specific context, with pre-loading the variables I needed for the target context. Cheers -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Samy Antoun Sent: Sunday, October 16, 2005 8:44 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Pass variable to context (NOT macro) Hi, Is there anyway to pass a variable from one context to another (NOT macro and NOT global) Regards __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users