[Asterisk-Users] long list of prefixes

Randy Bush randy at psg.com
Sat Dec 11 01:34:22 MST 2004


if a phone number starts with one of 50+ prefixes,
i want to send the sip call to gateway X.  if it
is in any other prefix, i want to send it to gate
Y.

i am not excited about a looooong list of extens,
but will do it if i have to.

i suspect there is a database hack, but i lose all
database contents if i reinstall the port (this
may be a feature of the freebsd port), and i have
not figured out a script that will let me load it.

surely there is a well-known and reasonable way
out of this corner.  but i can not seem to find
the right wiki incantation.  thanks for clue.

randy




More information about the asterisk-users mailing list