O'Reilly logo

Practical VoIP Using VOCAL by Luan Dang, Cullen Jennings, David Kelly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. Testing Tools

Some of the VOCAL test cases call for generating 20,000 or 100,000 users. The scripts included in this appendix provide assistance to this process.

genPutUsers.pl

This script will generate a large number of users and put them in the correct directories within the provisioning data. It starts at the specified start user # and increments from there. This file’s location is /vocal-1.3.0/tools/ldgen/genPutUsers.pl.

To use this file, type:

            ./genPutUsers.pl <start user #> <number of users>

The script relies upon a C++ executable called PutMultipleFiles. In order to use this, you will need to do the following:

  1. Type:

                      ../vocal-1.3.0/provisioning/conversion/make
  2. Copy the resulting executable from the bin directory into the directory where you want to run genPutUsers.

  3. Create an XML file called tplate that will be used as the template for the generated users. It is best to generate a valid XML file via the GUI and then copy the file over.

You may want to modify genPutUsers.pl if your provisioning data is not in /usr/local/vocal/provisioning_data.

Once you have the users generated, you can begin registering them.

Tip

This creates only the user files, not their associated calling/called feature files.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required