didier.cuffaut
2009-Dec-23 15:00 UTC
[asterisk-users] How to exchange/get $variables from/to each channel on cmd Dial
I apologize for my poor English..... So, i don't really understand 'how to' realize thus.... When you use the cmd Dial and want to get $ from caller channel to callee (or callee channel from caller), which way is the right way ? Sorry, i've take a look to the wiki and asterisk code and is'nt limpid (for me) use Macro in the dial cmd.... hum it's on the caller side and i doubt.... use local channel ? nor more explicit..... something like Importvar ou shared(var) ? not really evident to use because documentation is 'abscons' (for me,sorry,the wiki is very light on theese 2 features)) at least, i need some examples (not in the voip wiki and no more on * doc, afaik) another way ? Thanks for any help or reference. Happy Christmas and 2010 for everyone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091223/1271e3a7/attachment.htm
Olle E. Johansson
2009-Dec-26 09:18 UTC
[asterisk-users] How to exchange/get $variables from/to each channel on cmd Dial
23 dec 2009 kl. 16.00 skrev didier.cuffaut:> I apologize for my poor English..... > So, i don't really understand 'how to' realize thus.... > > When you use the cmd Dial and want to get $ from caller channel to callee (or callee channel from caller), which way is the right way ? >If you prefix a variable with an underscore, it will be copied to the outbound channel without the underscore. If you prefix with two underscores, it will be copied to the outbound channel with two underscores, thus will be inherited once again if that channel opens another (which happens if you're using chan_local). Regards, /olle --- oej at edvina.net - http://edvina.net Open Unified Communication - building platforms with SIP and XMPP From PBX to large scale implementations for carriers. Contact us today!