[asterisk-commits] mjordan: branch mjordan/sip-torture r4374 - in /asterisk/team/mjordan/sip-tor...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Nov 27 09:18:20 CST 2013
Author: mjordan
Date: Wed Nov 27 09:18:17 2013
New Revision: 4374
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4374
Log:
Add a bunch of torture tests.
Maybe someday I'll finish this up...
Added:
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/extensions.conf (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/sip.conf (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badaspec.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badbranch.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddate.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddn.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badinv01.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badvers.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bcast.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bext01.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bigcode.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/clerr.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam01.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam02.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/dblreq.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/esc01.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/esc02.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/escnull.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/escruri.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/insuf.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/intmeth.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/inv2543.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/invut.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/longreq.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/ltgtruri.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/lwsdisp.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/lwsruri.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/lwsstart.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/mcl01.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/mismatch01.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/mismatch02.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/mpart01.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/multi01.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/ncl.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/noreason.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/novelsc.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/quotbal.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/regaut01.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/regbadct.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/regescrt.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/scalar02.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/scalarlg.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/sdp01.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/semiuri.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/test.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/transports.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/trws.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/unkscm.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/unksm2.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/unreason.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/wsinv.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/zeromf.xml (with props)
asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/test-config.yaml (with props)
Modified:
asterisk/team/mjordan/sip-torture/tests/channels/SIP/tests.yaml
Modified: asterisk/team/mjordan/sip-torture/tests/channels/SIP/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/tests.yaml?view=diff&rev=4374&r1=4373&r2=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/tests.yaml (original)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/tests.yaml Wed Nov 27 09:18:17 2013
@@ -56,6 +56,7 @@
- test: 'subscribe'
- test: 'rfc2833_dtmf_detect'
- test: 'device_state_notification'
+ - test: 'torture_test'
- test: 'directrtpsetup'
- dir: 'session_timers'
- test: 'path'
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/extensions.conf?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/extensions.conf (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/extensions.conf Wed Nov 27 09:18:17 2013
@@ -1,0 +1,18 @@
+[general]
+
+[default]
+exten => _.,1,NoOp()
+ same => n,Answer()
+ same => n,Hangup()
+
+exten => s,1,NoOp()
+ same => n,Answer()
+ same => n,Hangup()
+
+exten => dial_user,1,NoOp()
+ same => n,Dial(SIP/user)
+ same => n,Hangup()
+
+exten => h,1,NoOp()
+ ; Have an explicit 'h' extension to avoid pattern matching on _.
+
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/sip.conf?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/sip.conf (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/sip.conf Wed Nov 27 09:18:17 2013
@@ -1,0 +1,31 @@
+[general]
+context=default ; Default context for incoming calls
+udpbindaddr=127.0.0.1:5060 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
+disallow=all
+allow=ulaw
+
+
+;
+; Scenario:
+; wsinv
+[vivekg]
+insecure=invite,port
+type=friend
+nat=yes
+host=127.0.0.1:5062
+port=5062
+
+;
+; Scenarios:
+; badaspec
+; badbranch
+; baddate
+; baddn
+; badinv01
+; badvers
+; bcast
+[user]
+insecure=invite,port
+type=friend
+nat=yes
+host=127.0.0.1:5061
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badaspec.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badaspec.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badaspec.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badaspec.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,34 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="badaspec">
+ <!--
+ This request is malformed, since the addr-spec in the To header field
+ contains spaces. Parsers receiving this request must not break. It
+ is reasonable to reject this request with a 400 Bad Request response.
+ Elements attempting to be liberal may ignore the spaces.
+ -->
+ <send retrans="500">
+ <![CDATA[
+ OPTIONS sip:user at example.org SIP/2.0
+ Via: SIP/2.0/UDP host4.example.com:5061;branch=z9hG4bKkdju43234
+ Max-Forwards: 70
+ From: "Bell, Alexander" <sip:a.g.bell at example.com>;tag=433423
+ To: "Watson, Thomas" < sip:t.watson at example.org >
+ Original-Call-ID: badaspec.sdf0234n2nds0a099u23h3hnnw009cdkne3
+ Call-ID: [call_id]
+ Accept: application/sdp
+ CSeq: 3923239 OPTIONS
+ l: 0
+
+ ]]>
+ </send>
+
+ <!--
+ Asterisk will process this request, as it primarily cares about matching
+ the peer in OPTIONS requests.
+ -->
+
+ <recv response="200" />
+
+</scenario>
+
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badaspec.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badaspec.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badaspec.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badbranch.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badbranch.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badbranch.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badbranch.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="badbranch">
+ <!--
+ This request indicates support for RFC 3261-style transaction
+ identifiers by providing the z9hG4bK prefix to the branch parameter,
+ but it provides no identifier. A parser must not break when
+ receiving this message. An element receiving this request could
+ reject the request with a 400 Response (preferably statelessly, as
+ other requests from the source are likely also to have a malformed
+ branch parameter), or it could fall back to the RFC 2543-style
+ transaction identifier.
+
+ -->
+
+ <send retrans="500">
+ <![CDATA[
+ OPTIONS sip:user at example.com SIP/2.0
+ To: sip:user at example.com
+ From: sip:caller at example.org;tag=33242
+ Max-Forwards: 3
+ Via: SIP/2.0/UDP 192.0.2.1:5061;branch=z9hG4bK
+ Accept: application/sdp
+ Original-Call-ID: badbranch.sadonfo23i420jv0as0derf3j3n
+ Call-ID: [call_id]
+ CSeq: 8 OPTIONS
+ l: 0
+
+ ]]>
+ </send>
+
+ <!--
+ Asterisk will process this request, as it primarily cares about matching
+ the peer in OPTIONS requests.
+ -->
+
+ <recv response="200" />
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badbranch.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badbranch.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badbranch.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddate.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddate.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddate.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddate.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,92 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="baddate">
+
+ <!--
+ This INVITE is invalid, as it contains a non-GMT time zone in the SIP
+ Date header field.
+
+ It is acceptable to reject this request as malformed (though an
+ element shouldn't do that unless the contents of the Date header
+ field were actually important to its processing). An element wishing
+ to be liberal in what it accepts could ignore this value altogether
+ if it wasn't going to use the Date header field anyway. Otherwise,
+ it could attempt to interpret this date and adjust it to GMT.
+
+ RFC 3261 explicitly defines the only acceptable time zone designation
+ as "GMT". "UT", while synonymous with GMT per [RFC2822], is not
+ valid. "UTC" and "UCT" are also invalid.
+ -->
+
+ <send retrans="500">
+ <![CDATA[
+ INVITE sip:user at example.com SIP/2.0
+ To: sip:user at example.com
+ From: sip:caller at example.net;tag=2234923
+ Max-Forwards: 70
+ Original-Call-ID: baddate.239423mnsadf3j23lj42--sedfnm234
+ Call-ID: [call_id]
+ CSeq: 1392934 INVITE
+ Via: SIP/2.0/UDP host.example.com:5061;branch=z9hG4bKkdjuw
+ Date: Fri, 01 Jan 2010 16:00:00 EST
+ Contact: <sip:caller at host5.example.net>
+ Content-Type: application/sdp
+ Content-Length: 150
+
+ v=0
+ o=mhandley 29739 7272939 IN IP4 192.0.2.5
+ s=-
+ c=IN IP4 192.0.2.5
+ t=0 0
+ m=audio 49217 RTP/AVP 0 12
+ m=video 3227 RTP/AVP 31
+ a=rtpmap:31 LPC
+
+ ]]>
+ </send>
+
+ <recv response="100" optional="true" />
+
+ <recv response="180" optional="true" />
+
+ <recv response="183" optional="true" />
+
+ <!--
+ Asterisk doesn't care that the date field is in an incorrect format.
+ -->
+
+ <recv response="200" />
+
+ <send>
+ <![CDATA[
+ ACK sip:user@[remote_ip]:[remote_port] SIP/2.0
+ Via: SIP/2.0/UDP host.example.com:5061;branch=z9hG4bKkdjuw
+ From: sip:caller at example.net;tag=2234923
+ To: sip:user at example.com;[peer_tag_param]
+ CSeq: 1392934 ACK
+ Call-ID: [call_id]
+ Contact: <sip:caller at host5.example.net>
+ Accept-Language: en
+ Max-Forwards: 70
+ Content-Length: 0
+ ]]>
+ </send>
+
+ <recv request="BYE"/>
+
+ <send retrans="500">
+ <![CDATA[
+ SIP/2.0 200 OK
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sip:caller at host5.example.net>
+ Content-Type: application/sdp
+ Content-Length: 0
+ ]]>
+ </send>
+
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddate.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddate.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddate.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddn.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddn.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddn.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddn.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,37 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="baddn">
+ <!--
+ This OPTIONS request is malformed, since the display names in the To
+ and From header fields contain non-token characters but are unquoted.
+
+ It is reasonable always to reject this kind of error with a 400 Bad
+ Request response.
+
+ An element may attempt to be liberal in what it receives and infer
+ the missing quotes. If this element were a proxy, it must not
+ propagate the error into the request it forwards. As a consequence,
+ if the fields are covered by a signature, there's not much point in
+ trying to be liberal - the message should simply be rejected.
+ -->
+
+ <send retrans="500">
+ <![CDATA[
+ OPTIONS sip:t.watson at example.org SIP/2.0
+ Via: SIP/2.0/UDP c.example.com:5061;branch=z9hG4bKkdjuw
+ Max-Forwards: 70
+ From: Bell, Alexander <sip:a.g.bell at example.com>;tag=43
+ To: Watson, Thomas <sip:t.watson at example.org>
+ Call-ID: [call_id]
+ Original-Call-ID: baddn.31415 at c.example.com
+ Accept: application/sdp
+ CSeq: 3923239 OPTIONS
+ l: 0
+ ]]>
+ </send>
+
+ <!-- Asterisk still doesn't care -->
+
+ <recv response="200"/>
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddn.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddn.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/baddn.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badinv01.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badinv01.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badinv01.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badinv01.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,80 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="badinv01">
+ <!--
+ The Via header field of this request contains additional semicolons
+ and commas without parameters or values. The Contact header field
+ contains additional semicolons without parameters. This message is
+ syntactically invalid.
+
+ An element receiving this request should respond with a 400 Bad
+ Request error.
+ -->
+ <send retrans="500">
+ <![CDATA[
+ INVITE sip:user at example.com SIP/2.0
+ To: sip:j.user at example.com
+ From: sip:caller at example.net;tag=134161461246
+ Max-Forwards: 7
+ Call-ID: [call_id]
+ Original-Call-ID: badinv01.0ha0isndaksdjasdf3234nas
+ CSeq: 8 INVITE
+ Via: SIP/2.0/UDP 192.0.2.15:5061;;,;,,
+ Contact: "Joe" <sip:joe at example.org>;;;;
+ Content-Length: 152
+ Content-Type: application/sdp
+
+ v=0
+ o=mhandley 29739 7272939 IN IP4 192.0.2.15
+ s=-
+ c=IN IP4 192.0.2.15
+ t=0 0
+ m=audio 49217 RTP/AVP 0 12
+ m=video 3227 RTP/AVP 31
+ a=rtpmap:31 LPC
+
+ ]]>
+ </send>
+
+ <recv response="100" optional="true" />
+ <recv response="180" optional="true" />
+ <recv response="183" optional="true" />
+
+ <recv response="200" rtd="true" />
+
+ <send>
+ <![CDATA[
+
+ ACK user:[service]@[remote_ip]:[remote_port] SIP/2.0
+ Via: SIP/2.0/[transport] [local_ip]:[local_port]
+ To: <sip:j.user at example.com>[peer_tag_param]
+ From: sip:caller at example.net;tag=134161461246
+ Call-ID: [call_id]
+ Cseq: 8 ACK
+ Contact: "Joe" <sip:joe at example.org>
+ Max-Forwards: 70
+ Subject: Performance Test
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <recv request="BYE"/>
+
+ <send>
+ <![CDATA[
+
+ SIP/2.0 200 OK
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: "Joe" <sip:joe at example.org>
+ Content-Type: application/sdp
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badinv01.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badinv01.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badinv01.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badvers.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badvers.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badvers.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badvers.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,36 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="badvers">
+ <!--
+ To an element implementing [RFC3261], this request is malformed due
+ to its high version number.
+
+ The element should respond to the request with a 505 Version Not
+ Supported error.
+ -->
+ <send retrans="500">
+ <![CDATA[
+ OPTIONS sip:t.watson at example.org SIP/7.0
+ Via: SIP/7.0/UDP c.example.com:5090;branch=z9hG4bKkdjuw
+ Max-Forwards: 70
+ From: A. Bell <sip:a.g.bell at example.com>;tag=qweoiqpe
+ To: T. Watson <sip:t.watson at example.org>
+ Call-ID: badvers.31417 at c.example.com
+ CSeq: 1 OPTIONS
+ l: 0
+
+ ]]>
+ </send>
+
+ <!-- Make sure we don't get a response -->
+ <pause milliseconds="500" />
+
+ <!--
+ This is what Asterisk *would* send if it bothered. Asterisk doesn't
+ do a 'parse' and 'validate', but rather bails rather aggressively when
+ it encounters a problem in the initial parsing. This prevent it from
+ sending back a response.
+ -->
+ <!-- <recv response="505"/>-->
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badvers.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badvers.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/badvers.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bcast.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bcast.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bcast.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bcast.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,50 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="bcast">
+
+ <recv request="INVITE" />
+
+ <send retrans="500">
+ <![CDATA[
+ SIP/2.0 200 OK
+ Via: SIP/2.0/UDP 192.0.2.198:5061;branch=z9hG4bK1324923
+ Via: SIP/2.0/UDP 255.255.255.255;branch=z9hG4bK1saber23
+ Call-ID: [call_id]
+ Original-Call-ID: bcast.0384840201234ksdfak3j2erwedfsASdf
+ CSeq: [cseq] INVITE
+ From: sip:user at example.com;tag=[call_number]
+ To: sip:user at example.edu;tag=[peer_tag_param]
+ Content-Length: 154
+ Content-Type: application/sdp
+ Contact: <sip:user at host28.example.com>
+
+ v=0
+ o=mhandley 29739 7272939 IN IP4 192.0.2.198
+ s=-
+ c=IN IP4 192.0.2.198
+ t=0 0
+ m=audio 49217 RTP/AVP 0 12
+ m=video 3227 RTP/AVP 31
+ a=rtpmap:31 LPC
+
+ ]]>
+ </send>
+
+ <recv request="ACK"/>
+
+ <send>
+ <![CDATA[
+ BYE sip:user at 1[remote_ip]:[remote_port] SIP/2.0
+ Via: SIP/2.0/UDP [local_ip]:[local_port];branch=[branch]
+ From: sip:user at example.com;tag=[call_number]
+ To: sip:user at example.edu;tag=[peer_tag_param]
+ CSeq: [cseq] BYE
+ Call-ID: [call_id]
+ Contact: <sip:user at host28.example.com>
+ Content-Length: 0
+ ]]>
+ </send>
+
+ <recv response="200"/>
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bcast.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bcast.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bcast.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bext01.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bext01.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bext01.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bext01.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="bext01">
+ <send retrans="500">
+ <![CDATA[
+ OPTIONS sip:user at example.com SIP/2.0
+ To: sip:j_user at example.com
+ From: sip:caller at example.net;tag=242etr
+ Max-Forwards: 6
+ Call-ID: bext01.0ha0isndaksdj
+ Require: nothingSupportsThis, nothingSupportsThisEither
+ Proxy-Require: noProxiesSupportThis, norDoAnyProxiesSupportThis
+ CSeq: 8 OPTIONS
+ Via: SIP/2.0/TLS fold-and-staple.example.com;branch=z9hG4bKkdjuw
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <pause milliseconds="500" />
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bext01.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bext01.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bext01.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bigcode.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bigcode.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bigcode.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bigcode.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,20 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="bigcode">
+ <send retrans="500">
+ <![CDATA[
+ SIP/2.0 4294967301 better not break the receiver
+ Via: SIP/2.0/UDP 192.0.2.105;branch=z9hG4bK2398ndaoe
+ Call-ID: bigcode.asdof3uj203asdnf3429uasdhfas3ehjasdfas9i
+ CSeq: 353494 INVITE
+ From: <sip:user at example.com>;tag=39ansfi3
+ To: <sip:user at example.edu>;tag=902jndnke3
+ Content-Length: 0
+ Contact: <sip:user at host105.example.com>
+
+ ]]>
+ </send>
+
+ <pause milliseconds="500" />
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bigcode.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bigcode.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/bigcode.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/clerr.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/clerr.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/clerr.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/clerr.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,30 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="clerr">
+ <send retrans="500">
+ <![CDATA[
+ INVITE sip:user at example.com SIP/2.0
+ Max-Forwards: 80
+ To: sip:j.user at example.com
+ From: sip:caller at example.net;tag=93942939o2
+ Contact: <sip:caller at hungry.example.net>
+ Call-ID: clerr.0ha0isndaksdjweiafasdk3
+ CSeq: 8 INVITE
+ Via: SIP/2.0/UDP host5.example.com;branch=z9hG4bK-39234-23523
+ Content-Type: application/sdp
+ Content-Length: 9999
+
+ v=0
+ o=mhandley 29739 7272939 IN IP4 192.0.2.155
+ s=-
+ c=IN IP4 192.0.2.155
+ t=0 0
+ m=audio 49217 RTP/AVP 0 12
+ m=video 3227 RTP/AVP 31
+ a=rtpmap:31 LPC
+ ]]>
+ </send>
+
+ <pause milliseconds="500" />
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/clerr.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/clerr.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/clerr.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam01.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam01.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam01.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam01.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,21 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="cparam01">
+ <send retrans="500">
+ <![CDATA[
+ REGISTER sip:example.com SIP/2.0
+ Via: SIP/2.0/UDP saturn.example.com:5060;branch=z9hG4bKkdjuw
+ Max-Forwards: 70
+ From: sip:watson at example.com;tag=DkfVgjkrtMwaerKKpe
+ To: sip:watson at example.com
+ Call-ID: cparam01.70710 at saturn.example.com
+ CSeq: 2 REGISTER
+ Contact: sip:+19725552222 at gw1.example.net;unknownparam
+ l: 0
+
+ ]]>
+ </send>
+
+ <pause milliseconds="500" />
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam01.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam01.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam01.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam02.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam02.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam02.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam02.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,21 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="badaspec">
+ <send retrans="500">
+ <![CDATA[
+ REGISTER sip:example.com SIP/2.0
+ Via: SIP/2.0/UDP saturn.example.com:5060;branch=z9hG4bKkdjuw
+ Max-Forwards: 70
+ From: sip:watson at example.com;tag=838293
+ To: sip:watson at example.com
+ Call-ID: cparam02.70710 at saturn.example.com
+ CSeq: 3 REGISTER
+ Contact: <sip:+19725552222 at gw1.example.net;unknownparam>
+ l: 0
+
+ ]]>
+ </send>
+
+ <pause milliseconds="500" />
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam02.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam02.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/cparam02.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/dblreq.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/dblreq.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/dblreq.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/dblreq.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,41 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="badaspec">
+ <send retrans="500">
+ <![CDATA[
+ REGISTER sip:example.com SIP/2.0
+ To: sip:j.user at example.com
+ From: sip:j.user at example.com;tag=43251j3j324
+ Max-Forwards: 8
+ I: dblreq.0ha0isndaksdj99sdfafnl3lk233412
+ Contact: sip:j.user at host.example.com
+ CSeq: 8 REGISTER
+ Via: SIP/2.0/UDP 192.0.2.125;branch=z9hG4bKkdjuw23492
+ Content-Length: 0
+
+
+ INVITE sip:joe at example.com SIP/2.0
+ t: sip:joe at example.com
+ From: sip:caller at example.net;tag=141334
+ Max-Forwards: 8
+ Call-ID: dblreq.0ha0isnda977644900765 at 192.0.2.15
+ CSeq: 8 INVITE
+ Via: SIP/2.0/UDP 192.0.2.15;branch=z9hG4bKkdjuw380234
+ Content-Type: application/sdp
+ Content-Length: 150
+
+ v=0
+ o=mhandley 29739 7272939 IN IP4 192.0.2.15
+ s=-
+ c=IN IP4 192.0.2.15
+ t=0 0
+ m=audio 49217 RTP/AVP 0 12
+ m =video 3227 RTP/AVP 31
+ a=rtpmap:31 LPC
+
+ ]]>
+ </send>
+
+ <pause milliseconds="500" />
+
+</scenario>
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/dblreq.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/dblreq.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/dblreq.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/esc01.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/esc01.xml?view=auto&rev=4374
==============================================================================
--- asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/esc01.xml (added)
+++ asterisk/team/mjordan/sip-torture/tests/channels/SIP/torture_test/sipp/esc01.xml Wed Nov 27 09:18:17 2013
@@ -1,0 +1,32 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="badaspec">
+ <send retrans="500">
+ <![CDATA[
+ INVITE sip:sips%3Auser%40example.com at example.net SIP/2.0
+ To: sip:%75se%72 at example.com
+ From: <sip:I%20have%20spaces at example.net>;tag=938
+ Max-Forwards: 87
+ i: esc01.239409asdfakjkn23onasd0-3234
+ CSeq: 234234 INVITE
+ Via: SIP/2.0/UDP host5.example.net;branch=z9hG4bKkdjuw
+ C: application/sdp
+ Contact:
+ <sip:cal%6Cer at host5.example.net;%6C%72;n%61me=v%61lue%25%34%31>
+ Content-Length: 150
+
+ v=0
+ o=mhandley 29739 7272939 IN IP4 192.0.2.1
+ s=-
+ c=IN IP4 192.0.2.1
+ t=0 0
+ m=audio 49217 RTP/AVP 0 12
[... 1710 lines stripped ...]
More information about the asterisk-commits
mailing list