> Hi all.
>
> I've just updated my Asterisk-friendly dialplan for Unlimitel
> (http://www.unlimitel.ca) based on their updated route information. It
> may
> be found at http://gordon.dewis.ca/asterisk/unlimitel_dialplan.txt.
>
> Cheers!
>
> --G
>
I'm sorry, i must comment, that is the ugliest thing i've ever seen... I
do routing using the NPANXX however, i have a single dial line, the route
is looked up in a database by it's NPANXX
This is my little example...
exten => _NXXNXXXXXX,1,ODBCget(PEER=NPANXX/${EXTEN:0:6})
exten => _NXXNXXXXXX,2,Setvar(DIALNUMBER=${EXTEN})
exten => _NXXNXXXXXX,3,Eval(DIALSTRING=${PEER})
Now we use ODBC to get to a postgres database,
In astdb in the Postgres database you have 3 fields...
astfamily,astvalue,astkey
all are simple text fields
in your database youd have your routes, listed as....
|--astfamily--|--astvalue-------------------------|--astkey--|
|NPANXX |IAX2/[EMAIL PROTECTED]/${DIALNUMBER} | 705725 |
|NPANXX |IAX2/[EMAIL PROTECTED]/${DIALNUMBER} | 416628 |
|NPANXX |IAX2/[EMAIL PROTECTED]/${DIALNUMBER} | 780669 |
|-------------|-----------------------------------|----------|
etc... this allows routes and NPANXX's to be added and removed without the
need for major dialplan over hauls, just be sure to have a default route
at n+101 for any NPANXX's not found in your databases
If you found any of this information helpfull, let me know.
If you need help.. i may be able to help as well...
Hope i didn't confuse anyone :)
James W Dumais
ABSS::Networks
http://www.abss.ca/
(705)725-9124 / (866)473-2121
(780)669-1305 / (416)628-1133