Using SIPp to Stress Test Asterisk
From Etel
O'Reilly Asterisk Template:
Contents |
[edit]
Title
Using SIPp to stress test your Asterisk System
[edit]
Problem
You want to stress test your installation and configuration of Asterisk before putting it into a production environment.
[edit]
Solution
Download SIPp from SIPp SourceForge Download Page.
Compile SIPp:
shell$> tar zxvf sipp.3.1.src.tar.gz shell$> cd sipp.svn/ shell$> make
This will compile make in the working directory, check to make sure the file is there:
shell$> ls -l ./sipp -rwxr-xr-x 1 oreilly users 575812 Nov 6 03:32 ./sipp*
On the Asterisk server create your SIP and Dialplan configuration:
sip.conf:
[general] tos=none dtmfmode=info allow=alaw allow=ulaw [127.0.0.1] type=friend callerid=112 host=dynamic canreinvite=no context=from-sipp dtmfmode=rfc2833 qualify=2000
extensions.conf:
[general] static=yes writeprotect=yes autofallthrough=yes clearglobalvars=yes priorityjumping=yes [globals] ;forward calls coming from SIPp to the Zaptel trunk. [from-sipp] exten => _X.,1,Answer exten => _X.,2,Dial(Zap/g1/111) exten => _X.,3,HangUp ;this is for incoming calls coming from the other server [from-zaptel] exten => _X.,1,Answer exten => _X.,2,playback(demo-congrats) exten => _X.,3,HangUp
Launch SIPp Style #1:
shell$> ./sipp -r 1 -l 1 -d 5000 -mo 1000009 -s 8989 -p 5061 -sn uac 127.0.0.1
Launch SIPp Style #2: The second style will connect to the server as a client and generate 20 second calls with a limit of 30 simultaneous calls.
shell$> ./sipp -sn uac -d 20000 -s 2005 127.0.0.1 -l 30
Launch SIPp Style #3: If you want to test the actual calls per second, you can try the third style.
shell$> ./sipp -sn uac -d 10000 -s 2002 127.0.0.1 -l 10 -mp 5606
[edit]
Discussion
[edit]
See Also:
[edit]
Metadata
- By: Pedram Messri
