-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Add Unit test script for Check RTP/SAVP transport protocol wit…
…h crypto attribute.
- Loading branch information
1 parent
8a2ad23
commit 047c3c7
Showing
2 changed files
with
252 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
148 changes: 148 additions & 0 deletions
148
src/mod/endpoints/mod_sofia/test/sipp-scenarios/uac_savp_check.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1" ?> | ||
<scenario name="UAC with media"> | ||
<!-- In client mode (sipp placing calls), the Call-ID MUST be --> | ||
<!-- generated by sipp. To do so, use [call_id] keyword. --> | ||
|
||
|
||
<send retrans="500"> | ||
<![CDATA[ | ||
INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0 | ||
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] | ||
From: s_sipp <sip:s_sipp@[local_ip]:[local_port]>;tag=[call_number] | ||
To: sut <sip:[service]@[remote_ip]:[remote_port]> | ||
Call-ID: [call_id] | ||
CSeq: 1 INVITE | ||
Contact: sip:s_sipp@[local_ip]:[local_port] | ||
Max-Forwards: 70 | ||
Subject: Performance Test | ||
Content-Type: application/sdp | ||
Content-Length: [len] | ||
v=0 | ||
o=CiscoSystemsCCM-SIP 1195507 1 IN IP[local_ip_type] [local_ip] | ||
s=SIP Call | ||
c=IN IP[local_ip_type] [local_ip] | ||
b=TIAS:64000 | ||
b=AS:80 | ||
t=0 0 | ||
m=audio [auto_media_port] RTP/SAVP 18 0 8 100 | ||
a=rtpmap:0 PCMU/8000 | ||
a=rtpmap:8 PCMA/8000 | ||
a=rtpmap:18 G729/8000 | ||
a=fmtp:18 annexb=no | ||
a=rtpmap:100 telephone-event/8000 | ||
a=fmtp:100 0-15 | ||
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:mSPPjYxzAEWkICVXidkYXFdsHr/J2NhpkqQepffH | ||
]]> | ||
</send> | ||
|
||
|
||
<recv response="100" optional="true"> | ||
</recv> | ||
|
||
<recv response="180" optional="true"> | ||
</recv> | ||
<recv response="183" optional="true"> | ||
</recv> | ||
|
||
<!-- By adding rrs="true" (Record Route Sets), the route sets --> | ||
<!-- are saved and used for following messages sent. Useful to test --> | ||
<!-- against stateful SIP proxies/B2BUAs. --> | ||
<recv response="200" rtd="true" crlf="true"> | ||
</recv> | ||
|
||
<!-- Packet lost can be simulated in any send/recv message by --> | ||
<!-- by adding the 'lost = "10"'. Value can be [1-100] percent. --> | ||
<send> | ||
<![CDATA[ | ||
ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0 | ||
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] | ||
From: s_sipp <sip:s_sipp@[local_ip]:[local_port]>;tag=[call_number] | ||
To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param] | ||
Call-ID: [call_id] | ||
CSeq: 1 ACK | ||
Contact: sip:s_sipp@[local_ip]:[local_port] | ||
Max-Forwards: 70 | ||
Subject: Performance Test | ||
Content-Length: 0 | ||
]]> | ||
</send> | ||
|
||
<pause milliseconds="1000"/> | ||
|
||
<send retrans="500"> | ||
<![CDATA[ | ||
INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0 | ||
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] | ||
From: s_sipp <sip:s_sipp@[local_ip]:[local_port]>;tag=[call_number] | ||
To: sut <sip:[service]@[remote_ip]:[remote_port]> | ||
Call-ID: [call_id] | ||
CSeq: 2 INVITE | ||
Contact: sip:s_sipp@[local_ip]:[local_port] | ||
Max-Forwards: 70 | ||
Subject: Performance Test | ||
Content-Length: [len] | ||
]]> | ||
</send> | ||
|
||
|
||
<recv response="100" optional="true"> | ||
</recv> | ||
<recv response="200" rtd="true" crlf="true"> | ||
</recv> | ||
|
||
<send> | ||
<![CDATA[ | ||
ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0 | ||
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] | ||
From: s_sipp <sip:s_sipp@[local_ip]:[local_port]>;tag=[call_number] | ||
To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param] | ||
Call-ID: [call_id] | ||
CSeq: 2 ACK | ||
Contact: sip:s_sipp@[local_ip]:[local_port] | ||
Max-Forwards: 70 | ||
Subject: Performance Test | ||
Content-Type: application/sdp | ||
Content-Length: [len] | ||
]]> | ||
</send> | ||
|
||
|
||
<send retrans="500"> | ||
<![CDATA[ | ||
BYE sip:[service]@[remote_ip]:[remote_port] SIP/2.0 | ||
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] | ||
From: s_sipp <sip:s_sipp@[local_ip]:[local_port]>;tag=[call_number] | ||
To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param] | ||
Call-ID: [call_id] | ||
CSeq: 3 BYE | ||
Contact: sip:s_sipp@[local_ip]:[local_port] | ||
Max-Forwards: 70 | ||
Subject: Performance Test | ||
Content-Length: 0 | ||
]]> | ||
</send> | ||
|
||
<recv response="200" crlf="true"> | ||
</recv> | ||
|
||
|
||
<!-- definition of the response time repartition table (unit is ms) --> | ||
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/> | ||
|
||
<!-- definition of the call length repartition table (unit is ms) --> | ||
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> | ||
|
||
</scenario> | ||
|
047c3c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/signalwire/stack/pull/470