login | register
Fri 08 of Aug, 2008 [21:18 UTC]

voip-info.org

History

Sipp

Created by: flavour,Last modification on Thu 16 of Aug, 2007 [23:11 UTC] by fujin

Sipp - SIP Performance Tester

Sipp is a performance tester for the SIP protocol. It comes with a few basic SipStone user-agents scenarios (UAC & UAS), establishing and releasing multiple calls with the INVITE and BYE methods.

  • Asterisk configuration for SIP (non-rtp listening) test
Create a context like so:

context testing {
       1 => {
               Answer();
               //modify for your setup.. make it play something, join a queue, whatever. I found that joining a queue works best, queue_helpdesk is my helpdesk macro :)
               //Background(6604);
               //Wait(2);
               //&queue_helpdesk(0);
               Hangup();
       };
};

Configure a sip "friend" to the IP address of your testing box, obviously substituting ulaw with alaw or another codec (I run two asterisk boxes, so used my second one)

[asterisk02]
type=friend
context=testing
host=192.168.108.3
user=sipp
canreinvite=no
disallow=all
allow=ulaw


and then run from 192.168.108.3 the following command

sipp -sn uac 192.168.108.2 -s 1 -d 100000 -l 256


This pretty much boils down to:
dial through 192.168.108.2 to sip:1@192.168.108.2 (in the context testing), with a pause of 100000ms before hanging up, and a total concurrent call limit of 256.
I still have to work out how to do RTP testing. Will update with more details :)


It can also read XML scenario files describing any performance testing configuration for SIP.

SIPP can run as UAS also so I setup a UAC and UAS to receive the calls,
the problem I saw was that when the SIPP UAC sends a BYE to * it hangups
the channel but doesn�t send the corresponding BYE to the SIPP UAS so
the UASS think that the call wasn�t teared down.
So I noted if I used nat=yes (in Asterisk config sip.conf) for SIPP UAS and UAC everything went fine
I think maybe this is related to the sockets used for each SIPP thread
since by default it uses the same socket for each call.

See also





Comments

Comments Filter
222

333SIPp with Asterisk-RealTime

by rodriguez_chapa, Friday 14 of July, 2006 [22:19:56 UTC]
Does any one know if SIPp can be used to test a RealTime implementation of Asterisk?
I have tried but I don't see the SIPp INVITEs comming into the Asterisk console.

Any suggestions?

/Marco

222

333Re: How to register to SIP proxy with SIPP?

by savaticus, Tuesday 11 of July, 2006 [19:11:27 UTC]
http://sipp.sourceforge.net/doc1.1/reference.html#SIP+authentication

May I suggest reading it again? ^^ Hope this helps.
222

333How to register to SIP proxy with SIPP?

by rowitech, Saturday 08 of October, 2005 [08:24:57 UTC]
Hi,

just wanted to test my SIP server but I had no chance to register with the UAC to my sip server. Using the -s switch is obviously just for the destination, son't know how to set the username and password for the UAC. The documentation says that you have to install SSL for Proxy Authetication but this really looks like SIPS and not just Proxy Auth, where you don't need SSL. Maybe here's somebody who can give me the complete command line for testing server sip.example.com with user alice and password secret.

Oh, I really did RTFM...

Rolf