- Introduction to Cisco BAMS
- Setup and Installation
- Provisioning BAMS
- Using MML Commands
- Using BAMS Tag IDs
- Configuring BAMS for BAF Output
- Configuring BAMS for ASCII Output and Measurements
- Configuring BAMS for P01 Output
- Configuring BAMS for NICS Output
- Configuring BAMS for 1110 Binary Output
- Obtaining Measurements
- Troubleshooting Cisco BAMS
- Upgrading from BAMS Release 2.68 to BAMS Release 3.10
- Upgrading from BAMS Release 3.10 to BAMS Release 3.13
- Glossary
Configuring BAMS for ASCII Output and Measurements
Overview
This chapter describes how to configure the Cisco Billing and Measurements Server (BAMS) for ASCII output and measurements.
Note You enable ASCII and/or measurements output with the NODEPARMS tag ID. For more information, see the "NODEPARMS Tag ID" section on page 5-10.
ASCII Output
Many mediation systems depend on input data that is preformatted as ASCII. You can configure BAMS to create ASCII records. In addition to requiring ASCII records for billing purposes, the same mediation systems might require bearer-level measurements that are produced on BAMS. In order to satisfy both requirements, BAMS can produce ASCII output that mirrors what is currently produced on the Cisco MGC.
To enable ASCII record generation on BAMS, set the parameter asciioutput in the NODEPARMS tag ID to a value of 1 for ANSI output or 2 for ITU output. See Chapter 2, "Setup and Installation," for further details.
BAMS creates ASCII 1110 records when a call has terminated. Filenames are identical to the names that are currently used on the Cisco MGC and BAMS, with the suffix changed to "csv" (that is, comma-separated values). For example, if a Tag-Length Value (TLV) billing file on the Cisco MGC is named cdr_20000714195130_000777.bin on the Cisco MGC, any file that is produced as a result of processing this file is named cdr_20000714195130_000777.csv. Some files are created with zero records, when no calls terminate during the processing of a TLV file from the Cisco MGC.
Note The Cisco MGC (PGW 2200) uses local time to generate CDR file names. The Cisco BAMS uses UTC to generate both measurement and billing output file names. For example, a file generated by the Cisco MGC in the Eastern Standard Timezone named cdr_200404201300210412_123456.bin, the ASCII output file generated by the Cisco BAMS would be named cdr_200404201800210412_123456.csv.
All fields for records 1110 and 1060 are written in comma-separated format. Tag 6000 (Virtual Switch Controller [VSC] ID) is collected from the 1090 Call Detail Block (CDB). The fields are written in the exact order specified in Table 7-1. When a field was not created by the Cisco MGC, because the field did not apply to the type of call recorded, a blank field or zero field is inserted as a place holder.
A normalized set of fields, or CDEs, is written for every record type, even if that record type does not contain a particular field. In this way, the end user can quickly import the CDR ASCII file into a database with standard data-importing tools. If more fields are added at a later time, they are appended to the end of the record, so you can ignore them, or modify their database import structure by simply adding fields to the end of the layout.
The accuracy selection for time points is configurable in seconds or milliseconds. When you are using ASCII output from BAMS, either choice is possible, because a place holder for each type has been provided in the ASCII formatting layout. For each type of time point, two entries are contained in the output format, one for seconds and one for milliseconds of granularity.
A downstream mediation or billing system can parse these ASCII records easily. Each record is prefixed in the ASCII file with a record identifier field. For example, an 1110 record would begin this way: 1110,1234,5678,2222
Correlation of Billing Information
BAMS collects information about calls with the various Primary Interexchange Carrier (PIC) CDBs; therefore, at any point in time, some calls are terminating and some calls are just being set up. BAMS must collect the information from the various records, just as with a BAF output, and then output records only upon receipt of either a long-call duration record or a call termination event.
Files and Records
The ASCII file contains the following records:
090 - File Header
110 - End of Call Record
060 - Long Call Duration Event
These files and records are written as if they had been produced from the Cisco MGC. The most significant information from the 1090 records is the VSC ID, and the time stamp and other information on that record should match corresponding entries in the 1090 record from the file that triggered the current file processing.
Extendable ASCII Output
Extendable ASCII is based on ASCII output, but it includes four supplementary fields. These fields are appended to the end of a standard comma-separated value ASCII record, to create a new extendable ASCII record.
To enable extendable ASCII record generation on BAMS, use the NODEPARMS tag ID to set the extasciioutput parameter to a value of 1 for ANSI output, or 2 for ITU output. See "Configuring Node Parameters" section on page 2-12 for further details. For file-naming conventions, see the "Extendable ASCII Output" section on page A-6.
Extendable ASCII Output Format
The following table illustrates the additional fields that are appended to a standard ASCII record. Each record is prefixed in the extendable ASCII file with a record identifier field (for example, an 1110 record would begin like this: 1110,1234,5678,2222). For details about the first 48 fields in an extendable ASCII record, see the "ASCII Output" section.
Operational Measurements
Defining Bucket Size
The bucket size refers to the measurements interval that is set up during installation through use of the NODEPARMS tag ID.
To change the system settings for the measurement intervals, for example, to take measurements every 5 minutes, you can update the Node Parameters table.
Refer to the "Updating the Node Parameters Table" section on page 5-10 for further details.
Setting Up the TCA Table
Use the TCA-TBL tag ID to set up the Threshold Crossing Alarms (TCA) table. The table is used to define the types of measurements that BAMS traps and makes available to downstream processes. Refer to the "TCA-TBL Tag ID" section on page 5-23 for TCA-TBL tag ID field names, and to Chapter 11, "Obtaining Measurements," for required values and a detailed description of the measuring process.
When a measurement threshold is crossed, an alarm is generated. This alarm is automatically cleared when the measurement statistics fall below the boundary. You set up the conditions to be monitored using the TCA-TBL tag ID. The following example shows which parameters you would set to achieve a specific result:
Note Set up only those measurement conditions in the TCA table that you are interested in monitoring (that is, not all table values need to be provisioned).