The tutorial is based on the following example.
FitPetHome is a company specialized in pet boarding. If you decide to take a journey from home, you can board your pet at FitPetHome. This company offers the usual services relating to pet boarding, such as feeding and grooming. Further, this company uses a guard system allowing you to observe and listen to your favorite pet from a remote computer or a mobile phone wherever you are.
This guard system, called PetMonitor, consists of a control device, a camera, and a microphone. The control device is installed on a server hosted by FitPetHome. Installed in the pet house, the camera and the microphone are connected to the control device.
To watch your pet, you must connect to the service PetMonitor of FitPetHome through their Internet portal by using a laptop or a mobile phone equipped with a screen.

In the previous example, CDRs are created every time that clients connect to the Internet portal of FitPetHome to watch their pet through PetMonitor.
The CDRs can be stored in a file depending on the consumption date. For example, a file can be created for every month of the year: january_2012, february_2012, march_2012, and so on. These files are stored in a specific directory periodically scanned by a connector as illustrated below. When a new file is found, the connector extracts the CDRs that are then processed and turned into chargeable item packages. The chargeable item packages are sent to the SAP CC Core Server for being rated.

|
Note: SAP CC Core Server can rate CDRs in real time or batch mode. In this tutorial, IEC rates the CDRs in batch mode. |
Here is an example of CDR file to process:
#duration,date,service,login
15,2012-10-03 11:55:26,Internet,Smith
623,2012-10-04 12:12:00,Internet,Smith
92,2012-10-05 08:05:00,Internet,Smith
500,2012-10-06 04:26:00,Internet,Smith
212,2012-10-07 14:48:00,Internet,Smith
300,2012-10-08 19:56:00,Internet,Smith
80,2012-10-09 10:11:00,Internet,Smith
Where:
duration: Time during which the client has consumed the service PetMonitor
date: Date on which the client has connected to the FitPetHome server to consume the PetMonitor service
service: Service identifier consumed by the client
login: User identifier allowing SAP CC Core Server to identify who has consumed the service
Example: The first line of the CDR file shows that the client Smith consumed the Internet service PetMonitor on Wednesday the 03 of October 2012 at 11:55:26 during 15 seconds.
The CDRs previously described can be stored in a file formatted according to the CSV format. CSV stands for Comma-Separated Value. CSV refers to an ASCII file where each individual data field is delimited by commas. It simply means that the individual items of data included in the file are separated by commas.
All the information needed to rate the CDRs are sorted and written on one line, in which a comma separates each information.
In this tutorial, you will create a scenario with CAT to process the CDR file described earlier in this topic. Because SAP CC processes only chargeable item classes, the scenario will allow you to create the chargeable item class "Make a call" with the structure defined in the chargeable item package "PetMonitor":

Through the scenario, the connector will turn every CDR into a chargeable item class as shown in the following table:
|
CDR format |
Chargeable item class |
|
duration |
Call duration |
|
date |
consumption date |
|
service |
service identifier |
|
login |
user identifier |
Because the CDRs are stored in a file, the scenario must:
Search for the CDR file in a directory
Extract lines from the CDR file
Do not process the comment lines
Extract from every line the properties "duration", "date", "service" and "login"
Create chargeable item classes from these properties
Send the chargeable item classes to rate to SAP CC Core Server
Next step: Learn how to build a scenario.