Skip to content

Commit

Permalink
test/sip - Send requests with invalid sdp
Browse files Browse the repository at this point in the history
  • Loading branch information
PhiBo committed Nov 8, 2011
1 parent 44b527b commit b9ca1df
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/sip/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,16 @@ function sipp_run() {
else
print_error "Failed"
fi

echo -n "Wrong SDP: "
CMD="cd sipp && ${TOOL_SIPP} -sf error_sdp.xml -m 1 -l 1 ${SIPP_PARAMS} -i ${LHOST} -max_retrans 0 -inf user.csv ${RHOST}"
print_debug "$CMD"
(eval $CMD &> /dev/null)
if [ $? == 0 ]; then
print_ok "OK"
else
print_error "Failed"
fi
}


Expand Down
40 changes: 40 additions & 0 deletions tests/sip/sipp/error_sdp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">


<scenario name="">
<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: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
To: sut <sip:[service]@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: 1 INVITE
Contact: sip:sipp@[local_ip]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/sdp
Content-Length: [len]
v=0
o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
s=-
c=IN IP[media_ip_type] [media_ip]
t=
m=audio [media_port] RTP/AVP 0
a=rtpmap:0 PCMU/8000
]]>
</send>

<recv response="400">
</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>

0 comments on commit b9ca1df

Please sign in to comment.