...
Call Processing involves using the Import File process to import a raw Calls file from a Vendor or from a switch.
After the Import runs, the Call records will be in the Call Details table. All of the mapped fields and Conditional Logic from the Import process should have filled in most of the Call Detail fields.
...
The PCR-360 Call Rating process does two things to Call records. It determines the Call Type, and it determines the cost of the call. Navigate to the Call Rates grid by clicking Admin > Billing > Call Rates.
...
Determining Call Type
Depending on the Import File Format used, there may be some Conditional Logic which can assign a Call Type based on indicators in the original raw Call record. This Conditional Logic usually determines if the Call is incoming or internal, but it may be used to assign any Call Type. This actually happens during the Import File processing before Rating. The Call Type rules all assume the Call is outgoing. If the Call is incoming, the Conditional Logic must determine this and set the Call Type to Incoming.
...
- If the dialed digits are "911", then set the Call Type to "EMERGENCY".
- If the dialed digits are "411" or "511", then set the Call Type to "LOCAL_INFO".
- If the dialed digits end with "5551212", then set the Call Type to "LD_INFO".
- If the dialed digits start with "011" and if the next two digits are equal to "52", then set the Call Type to "MEXICO",
- If dialed digits start with "011" and if next two digits are not equal to "52", then set Call Type to "INTERNATIONAL".
- If length of dialed digits are less than "7" or the dialed digits exist as a Service ID in the Services > Phones table, then set the Call Type to "INTERNAL".
- If length of dialed digits are "7", set Call Type to "LOCAL".
- If length of dialed digits are greater than or equal to "10" and first digit is not "1", or the length of dialed digits is greater than or equal to "11" and first digit is "1" then;
- If first dialed digit is equal to "1", then remove the leading "1".
- Next, extract the NPA and NXX from the dialed digits and try using them along with the Service Host to find a matching record in the Call Type table.
- If no match is found with NPA and NXX, then try with NPA and a blank NXX.
- If no match is found, then try again with a blank Service Host.
- If a match is found in the Call Type table, assign that Call Type to the Call. A match is usually found here for local Calls. This table allows the local NPA-NXX values to be defined for each Service Host. It also defines the NPAs for Canadian and Caribbean Calls.
- If no match in Call Type table, the Call is Long Distance. If the Origination State and Destination State can be found (from a VH data lookup on the Origination and Destination numbers or from assignment during Call Processing), then if the Origination State is the same as the Destination State, set Call Type to "INTRASTATE", else set the Call Type to "INTERSTATE".
- If the Origination LATA or the Destination LATA cannot be determined due to a failed VH lookup, then don't set the Call Type.
...
The Import File Format will determine the Rate Method. The Rate Method determine where the rate comes from for the Calls. The options are the PCR-360 Rate Tables, a Cost or Rate field in the Import File, or a flat Rate defined in the Import File Format record.
Determining Call Cost
...
The lookup into the Call Rate table is based on the following keys: From the Dialed Number: The NPA, NXX, Country Code (for International), Mexico Band (for Mexico). Also the Rating Group, Service Host, and Billing Group. For International calls, the country code must be extracted from the dialed digits. Unfortunately, the length of the country code can be 3, 2, or 1 digits. So we must try the lookup into the Call Rate table up to 3 times, using 3, 2, or 1 digit or until a match is found. If no match is found, then we try the lookup with a blank Country Code. This lets the User create one International default rate record for all countries that don't have an individual Rate.
...
For all other Calls, the Rate record might include the dialed NPA-NXX, just the NPA, or neither. So we try the look-up with the NPA-NXX, then the NPA, then neither. For all of the lookups, the first attempts include the Rating Group, Service Host, and the Billing Group. These are read from the Service ID of the Phone making the Call (or receiving the Call for incoming calls). If the lookup fails, then they are tried again with a blank Rating Group, then a blank Billing Group, then again with a blank Service Host. After all this, a Call Rate record should have been found. If it has not, a Rating Error is assigned to the call with a Description of "No rate defined for this call type". If there was no error, the correct rate amounts (based on time of day of the call) in the Call Rate record are multiplied by the duration to get the Call Cost. Further the call duration can be rounded to a specified duration using the CALL_USAGE_RATING_DURATION_PRECISION and CALL_USAGE_RATING_DURATION_ROUND_METHOD configuration options.
...
To add a new Rate Charge, press the button located on the Grid Toolbar above the 'Rate Charges' Grid.
In the form the User is prompted to define several fields. The 'Initial Charge Increment' and 'Initial Charge Amount' specify the duration and cost for the initial portion of a call. Likewise, the 'Additional' fields specify the duration and cost thereafter.
...