${CONTEXT} in extensions.conf

Is it possible to do something like this in extensions.conf?

[${CONTEXT}]
switch => Realtime/${EXTEN}@extensions

${EXTEN} is accepted, but ${CONTEXT} not.

Will this be added in the future?

no, if ${CONTEXT} is a variable it will contain the name of the context a call is currently in. Thus if you make another context with it, you will have two contexts of the same name.

besides i believe context names cannot include variables, as they are only parsed/interpreted on a reload…