CDR Classification - NANP

BillMax optionally implements classifying calls according to the North America Numbering Plan (NANP) . Data for classification are stored in the BillMax npanxx table. This table contains the source and destination NPANXX values and various other data used to classify data in a specific CDR.

Data for the npanxx table may inserted from various sources. Out of the box, BillMax is integrated with Local Calling Guide https://localcallingguide.com. BillMax consults with the Local Calling Guide as needed with an automatic refresh every 30 days. However, other sources may be integrated. An example library /usr/local/billmax/src/lib/bxtnpanxx is supplied as an example.

Using the Number Plan Area (NPA) data and the Central Office exchange code (NXX) , data from a CDR may be classified in the following manner:
  1. Local
    1. Optionally Interstate
    2. Optionally International
  2. Long Distance
    1. Optionally Interstate
    2. Optionally International

If a rate deck is used and the rate for a Long Distance is 0.00, then the Long Distance CDR will be treated as a Plan CDR for billing purposes.