Displaying 1 result from an estimated 1 matches for "anyoldcontext".
Did you mean:
anyoldcontext2
2005 Jun 24
2
Set global variables without extension..
...Variable freely whenever a context gets used without having to enter an extension priority to use SetGlobalVar? This is really limiting the dialplan for me. Heres an example of what I would like to be able to do.
[globals]
AREACODE=
[local]
exten=_NXXXXXX,1,Dial(SIP/${AREACODE}${EXTEN}/blah)
[anyoldcontext1]
AREACODE=313
include=local
[anyoldcontext2]
AREACODE=810
include=local
so then sip accounts would point towards either anyoldcontext1 or anyoldcontext2 and depending on what is set in sip.conf for a context depends on what their area code the sip account would use. Anyone have any ideas? I s...