I asked this question before. I figured I’d ask again and pose it a different way.
Is there a way to set a variable in a context, when that context is entered? Asterisk only allows you to set variables with VAR=VAL in the global context.
MuppetMaster suggested I use the s extension, like this:
exten => s,1,SetVar(…)
I don’t think that will work because the s extension only gets called when there are NO OTHER valid extensions. This will not be the case. There will be valid matching extensions in this user context. We want to be able to set the caller id variables for each user, when they dial an outside number.
What a dumb name… 'start extension. I don’t see the connection between the name ‘start’ and something that gets executed when no valid extensions exist. Huh???