[Asterisk-Users] Interesting Dial-Plan Question

Eric "ManxPower" Wieling eric at fnords.org
Fri Apr 28 08:50:45 MST 2006


Jonathan k. Creasy wrote:
> Just appending the area code variable is not always going to be correct.
> You will need to lookup (google local calling guide) the proper NPA for
> the NXX you are dialing. For example, in Louisville, Ky if you dial
> 948-1592 you will actually reach 812-948-1592 instead of 502-948-1592
> even though your callerid number would be 502-NXX-XXXX. 
> 
> I have a script I'm working on that does this via an agi script, it
> looks up the 7 digit dialing rules for a NPA-NXX combination and caches
> the results so you don't have to do a lookup for every call. I'll post
> it on the wiki when I'm done. It works but I still need to test it and
> document it a little better. It is based on some scripts by other people
> that I combined together. 

We are lucky.  Our CLEC permits us to do 11 digit dialing for all 
numbers not in the local area code, and permits 7-digit dialing for all 
numbers in the local area code.


-- 
Now accepting new clients in Birmingham, Atlanta, Huntsville, 
Chattanooga, and Montgomery.



More information about the asterisk-users mailing list