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.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users