[Asterisk-Users] Set global variables without extension..
Kevin P. Fleming
kpfleming at digium.com
Fri Jun 24 11:37:09 MST 2005
chouck wrote:
> [anyoldcontext1]
> AREACODE=313
> include=local
>
> [anyoldcontext2]
> AREACODE=810
> include=local
[anyoldcontext]
exten => _X.,1,Set(AREACODE=313)
include => local
[anyoldcontext2]
exten => _X.,1,Set(AREACODE=810)
include => local
[local]
exten => _XXXXX,2,Dial(${AREACODE}...)
This will do exactly what you want, except if you try to send a call to
this context that should not match anything in 'local' (since it will
match the _X. pattern).
More information about the asterisk-users
mailing list