[Asterisk-Users] ${CONTEXT} variable
Christopher L. Wade
clwade at sparco.com
Thu Sep 16 09:35:26 MST 2004
Christopher L. Wade wrote:
> Hi all,
>
> Is there an equivalent of the ${CONTEXT} variable that represents the
> *original* context of the call? i.e. If a call originates in the
> 'internal' context, no matter where it goes, this alternate version of
> ${CONTEXT} would never change from saying 'internal'?
>
> I realize I could set this using the dialplan but I just wonder if there
> this already exists, and if not, would there be any objection to adding
> it? It could be ${CALL_CONTEXT} or ${ORIGINAL_CONTEXT}, or similar.
>
Thinking about this, the name of the variable might be ${DEVICE_CONTEXT}
instead. This seems more in keeping with what I was intending the
variable to represent, which is the 'context=' line from the appropriate
config file.
Thanks,
Chris
More information about the asterisk-users
mailing list