button - online cdr generator


Generating CDR for multiple customers

The Call Detail Record Generation Tutorials

This second tutorial builds upon the first one to allow the generation of CDR for multiple customers. You'll learn in this tutorial how to define parameters in the profile in a non constant way, that is to define parameters which change value from customer to customers. We'll use this feature of profile to produce different customer identifiers.


What you must understand is that a profile has a parameter defined in the customer's section named count. This parameter is used by the generator to decide how many times the content of the profile will be instantiated.

For each instantiation of the profile the generator will evaluate and pick up the customer data defined in the section and apply on it the CDR patterns. So, if you configure the count value to 10 but the customer parameters (ISDN, IMEI, and IMS) are constant values then the generator will instantiate 10 times the patterns on the same customer.

Notice that the simulation period can't change between two instantiations. If you want to apply the same profile over multiple period of time there's another way to go as explained in tutorial #10.

So the basic principle is :

  1. Increase the count parameter to instantiate the profile multiple times
  2. Configure the customers section to produce new value at each instantiation

Customers uniqueness

Like we said before customers are identified by the parameters MS-ISDN, IMSI and IMEI that altogether formed a unique key. Well, in fact, from the point of view of the generator the values taken by the customer's identifiers doesn't have to be unique but if not, the data generated will lack realism.

The point is that CDR a dispatched over the simulation period customer per customer, ensuring that for a given round all CDR are not overlaping. If the identifiers of two customers generated by the parameter of the profile point to the same customer then you may have CDR overlaping between the CDR generated from the two rounds.

Variable parameters

To allow variable parameters you must rely on GEDIS Studio's expression syntax. Those expressions are built upon a set of more than 30 functions that generates and combine values. They can do basic arithmetics as well as string manipulations.

To ensure an GEDIS Studio expression is evaluated you must enclose it between square brackets. For example, the following configuration "[DEC(10)]" says that the MS-ISDN is defined by an expression whose value will be a number of 10 digits.

The important point is that each time the profile is being instantiated a new value will be generated by all the expression to be found between square brackets. Even if they are not in a XML tag.

Examples of configuration:


Produces numbers of 10 digits with a same prefix of "06". You can also put the prefix in the expression but this time you will have to add double quotes : [ "06" DEC(8) ]

["06" RANGE(10,20) DEC(6)]

This configuration generates MS ISDN where the prefix is the same (06) then a two digit value randomly choosen in range 10,20 (which means 10,19,20,17, etc.) and then a 6 digit number. Notice that this expression is almost similar to [ "06" RANDLIST(1,2) DEC(7) ]

The functions DEC, RANGE, RANDLIST and more generation functions are described in the data generation functions page.

Go back to the previous tutorial Go to the next tutorial