Software QA FYI - SQAFYI

RestComm Tutorial: Load Testing – Part 2


In the second part of the RestComm Load Testing Tutorial you will learn how to use SIPp to test an Interactive Voice Response (IVR) application. You will also fine tune traffic levels and memory allocation to test your system’s true capacity.

Although the sample is based on PHP, you can use other programming language of your choice.

For this tutorial, it’s required that you:
* Understood part 1 of this tutorial.
* Setup your Apache Web Server as explained here.


The application’s entry point will be the ask-digit.xml file that asks the user to insert a digit of his choice. The application will wait up to 10 seconds for the user to insert one digit. If the user fails to provide the digit in that interval then a message will be played telling the user to try again later.

* $RESTCOMM_HOME/server/default/deploy/restcomm.war/demo/ask-digit.xml
<?xml version=”1.0? encoding=”UTF-8??>
<Gather action=”” numDigits=”1? timeout=”10?>
<Say>Please, enter one digit</Say>
<Say>Operation timeout. Please try again later.</Say>

After the user inserts a digit, the application will invoke say-digit.php using the inserted digit as parameter. The function of this file is simply to play the digit inserted by the user. Note that this file only needs Read permission.

For debugging purposes, we added a flag in the code called $active_log that defines whether the application should log the DTMF validation into a log file called say-digit-result.txt located in the $DOCUMENT_ROOT directory. Basically, if the application finds that the digit inserted by the user is the expected then it will write a pass line in the log file. Otherwise, it will write fail. Don’t forget to grant Write permission to this file.

Full article...

Other Resource

... to read more articles, visit

RestComm Tutorial: Load Testing – Part 2