File: sipp.rst

package info (click to toggle)
sip-tester 1%3A3.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,932 kB
  • sloc: cpp: 29,383; xml: 13,436; ansic: 2,381; python: 2,218; sh: 505; makefile: 13
file content (111 lines) | stat: -rw-r--r-- 3,216 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
Main features
=============

SIPp allows to generate one or many SIP calls to one remote system.
The tool is started from the command line. In this example, two SIPp
are started in front of each other to demonstrate SIPp capabilities.

Run sipp with embedded server (uas) scenario::

    # ./sipp -sn uas

On the same host, run sipp with embedded client (uac) scenario::

    # ./sipp -sn uac 127.0.0.1



Running SIPp in background
``````````````````````````

SIPp can be launched in background mode (-bg command line option).

By doing so, SIPp will be detached from the current terminal and run
in the background. The PID of the SIPp process is provided. If you
didn't specify a number of calls to execute with the -m option, SIPp
will run forever.

There is a mechanism implemented to stop SIPp smoothly. The command
kill -SIGUSR1 [SIPp_PID] will instruct SIPp to stop placing any new
calls and finish all ongoing calls before exiting.

When using the background mode, the main sipp instance stops and a
child process will continue the job. Therefore, the log files names
will contain another PID than the actual sipp instance PID.



Screens
```````

Several screens are available to monitor SIP traffic. You can change
the screen view by pressing 1 to 9 keys on the keyboard.


+ Key '1': Scenario screen. It displays a call flow of the scenario as
  well as some important information.

.. image:: sipp-03.jpg

+ Key '2': Statistics screen. It displays the main statistics
  counters. The "Cumulative" column gather all statistics, since SIPp
  has been launched. The "Periodic" column gives the statistic value for
  the period considered (specified by -f frequency command line
  parameter).

.. image:: sipp-04.jpg

+ Key '3': Repartition screen. It displays the distribution of
  response time and call length, as specified in the scenario.

.. image:: sipp-05.jpg

+ Key '4': Variables screen. It displays information on actions in
  scenario as well as scenario variable information.

.. image:: sipp-06.jpg




Exit codes
``````````

To ease automation of testing, upon exit (on fatal error or when the
number of asked calls (-m command line option) is reached, sipp exits
with one of the following exit codes:

====  ===========
Code  Description
====  ===========
0     All calls were successful
1     At least one call failed
97    Exit on internal command. Calls may have been processed. Also
      exit on global timeout (see -timeout_global option)
99    Normal exit without calls processed
-1    Fatal error
-2    Fatal error binding a socket
====  ===========

Depending on the system that SIPp is running on, you can echo this
exit code by using "echo ?" command.



Contributing to SIPp
````````````````````

Of course, we welcome contributions, and many of SIPp's features
(including epoll support for better Linux performance, RTP streaming,
and Cygwin support) have come from external contributions.

See `developers guide`_ for how to get started

+ Richard GAYRAUD [initial code]
+ Olivier JACQUES [code/documentation]
+ Robert Day [code/documentation]
+ Charles P. Wright [code]
+ Many contributors [code]


.. _developers guide: https://github.com/SIPp/sipp/wiki/New-Developers'-Guide