[asterisk-users] howto store local exchange prefixes ?

Anthony Messina amessina at messinet.com
Mon May 25 21:40:07 CDT 2009


 
 
----------------original message-----------------
From: "Jimmy Godbout" sip at inbox.com
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
asterisk-users at lists.digium.com
Date: Mon, 25 May 2009 18:01:11 -0800
-------------------------------------------------
 
 
> Check on www.localcallingguide.com. You'll find all npanxx that are local
to 
> your exchange.
> 
> Jimmy
>> -----Original Message-----
>> From: seandarcy2 at gmail.com
>> Sent: Mon, 25 May 2009 21:39:30 -0400
>> To: asterisk-users at lists.digium.com
>> Subject: Re: [asterisk-users] howto store local exchange prefixes ?
>> 
>> Barry L. Kline wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>> 
>>> sean darcy wrote:
>>> 
>>>> I've looked at the Berkeley DB. That works pretty well, if the
>>>> exchanges
>>>> are all stored. But it looks like the exchanges have to be entered 1 by
>>>> 1 from the CLI. And can only be reviewed, corrected, or deleted from
>>>> the
>>>> CLI. I haven't found any simple frontend for the DB.
>>> 
>>> I do this be writing a dialplan which adds those entries. The first
>>> entry checks to see if the DB has been initialized and if so, skips to
>>> the lookup. Otherwise it loads each into the database before the
>>> lookup. It's very easy to write a quick script to generate the dialplan
>>> code.
>>> 
>>> Barry
>> 
>> Maybe I've not explained this correctly. I know, or can look up, the 40+
>> local exchanges that are local. I can parse the dial EXTEN to determine
>> the exchange. I can check the exchange against a DB. I want to determine
>> which exchanges are "local". I do not want to store an exchange dialed
>> by a user.
>> 
>> How can I store a lot of 3 digit numbers which I then can check against
>> an EXTEN to determine a local number?

in addition to localcallingguide, if your pstn connection is from at&t, you
can take a look at the script i made to grab only the "local" calls
(incurring no local-toll or long distance charges) which are"band a" and
"band b."

https://messinet.com/trac/telephony-tools/wiki/LocalCallingAreaGrabber

-- 

Anthony - http://messinet.com - http://messinet.com/~amessina/gallery





More information about the asterisk-users mailing list