[Asterisk-Users] want to set a var in sip.conf
Florian Overkamp
florian at obsimref.com
Tue May 18 23:07:22 MST 2004
Hi,
> -----Original Message-----
> i have extensions in locations across a number of telco area codes.
> when someone in seattle picks up and dials 91234567, it would
> be nice to transform it to 92061234567. i would prefer not
> to have an extension context per area code. it would be cool
> to be able to set a variable in the sip.conf bit for each
> phone with it's geographic default area code.
>
> or other folk may have a better hack. please clue me. the
> wiki did not help. thanks.
I am currently dropping each user into his own context, which rewrites
numbers to a standard format and then includes a couple of globalized
contexts to do the routing.
The individual contexts are generated from a database, but if the number of
accounts is limited, you could do it by hand.
Florian
More information about the asterisk-users
mailing list