Not necessarily FreePBX related, but

Does anyone know how it generates the local calling rules? I have been in need of a way to lookup local calling areas based on NPA-NXX.

I would really appreciate any help on this.

BTW, Thanks for all the work on FreePBX!