[Asterisk-Users] long list of prefixes

2004-12-11 Thread Randy Bush
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 long 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

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] long list of prefixes

2004-12-11 Thread Soren Rathje
Randy Bush wrote:
 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.


Take a look at http://www.voip-info.org/wiki-Asterisk+app_dbodbc

I run a home server so I have never had the need to do stuff like that but
it looks like the thing you want. I'm sure there are other alternatives out
there that will do the same only differently...

/Soren

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users