[asterisk-users] Storing a variable at a context and using it in another context
A J Stiles
asterisk_list at earthshod.co.uk
Mon Oct 24 07:37:09 CDT 2011
On Monday 24 October 2011, bilal ghayyad wrote:
> Hi All;
>
> Is it possible to store a variable at context and using it in another
> context or in the MACRO? For example, how I can store the ${CALLERID(num)}
> in a variable and use it in another context or in a MACRO?
Variables are local to channels (to all intents and purposes, call legs),
not contexts. If you call a macro or GoTo() another context, any variables
you defined in the calling context should be preserved. They will only be
forgotten when the channel is destroyed (to all intents and purposes, when
the call is hung up).
--
AJS
Answers come *after* questions.
More information about the asterisk-users
mailing list