├── README.md
├── g711a.pcap
├── invite-accounts.csv
├── invite-auth.xml
├── invite-without-auth-expected-to-receive-busy-486.xml
├── invite-without-auth.xml
├── register-accounts.csv
├── register.xml
└── uas.xml
/README.md:
--------------------------------------------------------------------------------
1 | # sipp2freeswitch
2 | sample sipp scenarios for testing freeswitch
3 |
4 | Used following resources:
5 |
6 | https://github.com/jrzondagh/SIPp-Scenario-Files
7 |
8 | https://github.com/saghul/sipp-scenarios
9 |
10 | ./sipp -i local_ip_address -sf ./register.xml -inf ./register-accounts.csv destination_ip_address:5060 -r 1 -rp 1000 -aa -trace_err
11 |
12 | ./sipp -i local_ip_address -sf ./invite-auth.xml -inf ./invite-accounts.csv destination_ip_address:5060 -r 1 -rp 1000 -trace_err
13 |
14 | ./sipp -i local_ip_address -sf ./invite-without-auth.xml -inf ./invite-accounts.csv destination_ip_address:5060 -r 1 -rp 1000 -trace_err
15 |
16 | ./sipp -sf ./uas.xml -i local_ip_address -p 5060
17 |
--------------------------------------------------------------------------------
/g711a.pcap:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/os11k/sipp2freeswitch/9c5d1b5e4b2347ba31f93a1805966cb9e6ca2656/g711a.pcap
--------------------------------------------------------------------------------
/invite-accounts.csv:
--------------------------------------------------------------------------------
1 | SEQUENTIAL
2 | # Username: 1000-1009
3 | # Password: 1234
4 | # SIP Proxy: 10.0.0.10, Destination Number: 9196
5 | 1000;10.0.0.10;[authentication username=1000 password=1234];9196;
6 | 1001;10.0.0.10;[authentication username=1001 password=1234];9196;
7 | 1002;10.0.0.10;[authentication username=1002 password=1234];9196;
8 | 1003;10.0.0.10;[authentication username=1003 password=1234];9196;
9 | 1004;10.0.0.10;[authentication username=1004 password=1234];9196;
10 | 1005;10.0.0.10;[authentication username=1005 password=1234];9196;
11 | 1006;10.0.0.10;[authentication username=1006 password=1234];9196;
12 | 1007;10.0.0.10;[authentication username=1007 password=1234];9196;
13 | 1008;10.0.0.10;[authentication username=1008 password=1234];9196;
14 | 1009;10.0.0.10;[authentication username=1009 password=1234];9196;
15 |
--------------------------------------------------------------------------------
/invite-auth.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | ;tag=[pid]SIPpTag00[call_number]
19 | To: sut
20 | Call-ID: [call_id]
21 | CSeq: [cseq] INVITE
22 | Contact:
23 | Max-Forwards: 70
24 | Subject: Performance Test
25 | User-Agent: SIPp Tester UAC
26 | Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
27 | Content-Type: application/sdp
28 | Content-Length: [len]
29 |
30 | v=0
31 | o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
32 | s=-
33 | c=IN IP[media_ip_type] [media_ip]
34 | t=0 0
35 | m=audio [media_port] RTP/AVP 8
36 | a=rtpmap:8 PCMA/8000
37 | a=rtpmap:101 telephone-event/8000
38 | a=fmtp:101 0-11,16
39 |
40 |
41 | ]]>
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | ;tag=[pid]SIPpTag00[call_number]
56 | [last_To]
57 | [routes]
58 | Call-ID: [call_id]
59 | CSeq: [cseq] ACK
60 | Contact:
61 | Max-Forwards: 70
62 | Subject: Performance Test
63 | User-Agent: SIPp Tester UAC
64 | Content-Length: 0
65 |
66 | ]]>
67 |
68 |
69 |
70 | ;tag=[pid]SIPpTag00[call_number]
75 | To: sut
76 | [routes]
77 | Call-ID: [call_id]
78 | CSeq: [cseq] INVITE
79 | Contact:
80 | Max-Forwards: 70
81 | Subject: Performance Test
82 | User-Agent: SIPp Tester UAC
83 | Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
84 | [field2]
85 | Content-Type: application/sdp
86 | Content-Length: [len]
87 |
88 | v=0
89 | o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
90 | s=-
91 | c=IN IP[media_ip_type] [media_ip]
92 | t=0 0
93 | m=audio [media_port] RTP/AVP 8
94 | a=rtpmap:8 PCMA/8000
95 | a=rtpmap:101 telephone-event/8000
96 | a=fmtp:101 0-11,16
97 |
98 |
99 | ]]>
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 | ;tag=[pid]SIPpTag00[call_number]
126 | [last_To]
127 | [routes]
128 | Call-ID: [call_id]
129 | CSeq: [cseq] ACK
130 | Contact:
131 | Max-Forwards: 70
132 | Subject: Performance Test
133 | User-Agent: SIPp Tester UAC
134 | Content-Length: 0
135 |
136 | ]]>
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 | ;tag=[pid]SIPpTag00[call_number]
153 | [last_To]
154 | [routes]
155 | Call-ID: [call_id]
156 | CSeq: [cseq] BYE
157 | Contact:
158 | Max-Forwards: 70
159 | Subject: Performance Test
160 | User-Agent: SIPp Tester UAC
161 | [field2]
162 | Content-Length: 0
163 |
164 | ]]>
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
--------------------------------------------------------------------------------
/invite-without-auth-expected-to-receive-busy-486.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | ;tag=[pid]SIPpTag00[call_number]
19 | To: sut
20 | Call-ID: [call_id]
21 | CSeq: [cseq] INVITE
22 | Contact:
23 | Max-Forwards: 70
24 | Subject: Performance Test
25 | User-Agent: SIPp Tester UAC
26 | Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
27 | Content-Type: application/sdp
28 | Content-Length: [len]
29 |
30 | v=0
31 | o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
32 | s=-
33 | c=IN IP[media_ip_type] [media_ip]
34 | t=0 0
35 | m=audio [media_port] RTP/AVP 8
36 | a=rtpmap:8 PCMA/8000
37 | a=rtpmap:101 telephone-event/8000
38 | a=fmtp:101 0-11,16
39 |
40 |
41 | ]]>
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | ;tag=[pid]SIPpTag00[call_number]
56 | [last_To]
57 | [routes]
58 | Call-ID: [call_id]
59 | CSeq: [cseq] ACK
60 | Contact:
61 | Max-Forwards: 70
62 | Subject: Performance Test
63 | User-Agent: SIPp Tester UAC
64 | Content-Length: 0
65 |
66 | ]]>
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/invite-without-auth.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | ;tag=[pid]SIPpTag00[call_number]
19 | To: sut
20 | Call-ID: [call_id]
21 | CSeq: [cseq] INVITE
22 | Contact:
23 | Max-Forwards: 70
24 | Subject: Performance Test
25 | User-Agent: SIPp Tester UAC
26 | Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
27 | Content-Type: application/sdp
28 | Content-Length: [len]
29 |
30 | v=0
31 | o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
32 | s=-
33 | c=IN IP[media_ip_type] [media_ip]
34 | t=0 0
35 | m=audio [media_port] RTP/AVP 8
36 | a=rtpmap:8 PCMA/8000
37 | a=rtpmap:101 telephone-event/8000
38 | a=fmtp:101 0-11,16
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 | ;tag=[pid]SIPpTag00[call_number]
68 | [last_To]
69 | [routes]
70 | Call-ID: [call_id]
71 | CSeq: [cseq] ACK
72 | Contact:
73 | Max-Forwards: 70
74 | Subject: Performance Test
75 | User-Agent: SIPp Tester UAC
76 | Content-Length: 0
77 |
78 | ]]>
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | ;tag=[pid]SIPpTag00[call_number]
95 | [last_To]
96 | [routes]
97 | Call-ID: [call_id]
98 | CSeq: [cseq] BYE
99 | Contact:
100 | Max-Forwards: 70
101 | Subject: Performance Test
102 | User-Agent: SIPp Tester UAC
103 | Content-Length: 0
104 |
105 | ]]>
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
--------------------------------------------------------------------------------
/register-accounts.csv:
--------------------------------------------------------------------------------
1 | SEQUENTIAL
2 | # Username: 1000-1009
3 | # Password: 1234
4 | # SIP Proxy: 10.0.0.10
5 | 1000;10.0.0.10;[authentication username=1000 password=1234]
6 | 1001;10.0.0.10;[authentication username=1001 password=1234]
7 | 1002;10.0.0.10;[authentication username=1002 password=1234]
8 | 1003;10.0.0.10;[authentication username=1003 password=1234]
9 | 1004;10.0.0.10;[authentication username=1004 password=1234]
10 | 1005;10.0.0.10;[authentication username=1005 password=1234]
11 | 1006;10.0.0.10;[authentication username=1006 password=1234]
12 | 1007;10.0.0.10;[authentication username=1007 password=1234]
13 | 1008;10.0.0.10;[authentication username=1008 password=1234]
14 | 1009;10.0.0.10;[authentication username=1009 password=1234]
15 |
16 |
--------------------------------------------------------------------------------
/register.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | ;tag=[call_number]
12 | To: "sipp"
13 | Call-ID: reg///[call_id]
14 | CSeq: 7 REGISTER
15 | Contact:
16 | Expires: 3600
17 | Content-Length: 0
18 | User-Agent: SIPp
19 | ]]>
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | ;tag=[call_number]
34 | To: "sipp"
35 | Call-ID: reg///[call_id]
36 | CSeq: 8 REGISTER
37 | Contact:
38 | Expires: 3600
39 | Content-Length: 0
40 | User-Agent: SIPp
41 | [field2]
42 | ]]>
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/uas.xml:
--------------------------------------------------------------------------------
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 |
51 | Content-Length: 0
52 |
53 | ]]>
54 |
55 |
56 |
57 |
67 | Content-Type: application/sdp
68 | Content-Length: [len]
69 |
70 | v=0
71 | o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
72 | s=-
73 | c=IN IP[media_ip_type] [media_ip]
74 | t=0 0
75 | m=audio [media_port] RTP/AVP 0
76 | a=rtpmap:0 PCMU/8000
77 |
78 | ]]>
79 |
80 |
81 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
101 | Content-Length: 0
102 |
103 | ]]>
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
--------------------------------------------------------------------------------