[asterisk-commits] kmoore: testsuite/asterisk/trunk r4596 - in /asterisk/trunk/tests/channels/SI...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 22 12:34:46 CST 2014


Author: kmoore
Date: Wed Jan 22 12:34:43 2014
New Revision: 4596

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4596
Log:
Testsuite: Update SDP_offer_answer_test

This adds new subtests to check handling of image streams over
unsupported transports with and without other supported streams.

(closes issue ASTERISK-22988)
Reported by: adomjan

Added:
    asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image.xml   (with props)
    asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi.xml   (with props)
    asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi_1.8.xml   (with props)
Modified:
    asterisk/trunk/tests/channels/SIP/SDP_offer_answer/run-test

Modified: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/SDP_offer_answer/run-test?view=diff&rev=4596&r1=4595&r2=4596
==============================================================================
--- asterisk/trunk/tests/channels/SIP/SDP_offer_answer/run-test (original)
+++ asterisk/trunk/tests/channels/SIP/SDP_offer_answer/run-test Wed Jan 22 12:34:43 2014
@@ -31,6 +31,7 @@
     {'scenario' : 'decline_incompat_text.xml',},
     {'scenario' : 'single_image.xml',},
     {'scenario' : 'single_image_inverse.xml',},
+    {'scenario' : 'decline_unsupported_image.xml',},
     {'scenario' : 'avt_streams.xml',},
     {'scenario' : 'multistream.xml',},
     {'scenario' : 'fax_sim.xml',},
@@ -42,6 +43,9 @@
 def main():
     if AsteriskVersion() > AsteriskVersion("11"):
         SIPP_SCENARIOS.append({'scenario' : 'decline_multistream.xml'})
+        SIPP_SCENARIOS.append({'scenario' : 'decline_unsupported_image_multi.xml'})
+    else:
+        SIPP_SCENARIOS.append({'scenario' : 'decline_unsupported_image_multi_1.8.xml'})
     test = SIPpTest(WORKING_DIR, TEST_DIR, SIPP_SCENARIOS)
     reactor.run()
     if not test.passed:

Added: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image.xml?view=auto&rev=4596
==============================================================================
--- asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image.xml (added)
+++ asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image.xml Wed Jan 22 12:34:43 2014
@@ -1,0 +1,46 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Channel Test">
+  <send retrans="500">
+    <![CDATA[
+      INVITE sip:test@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:guest1@[local_ip]:[local_port]>;tag=[call_number]
+      To: test <sip:test@[remote_ip]:[remote_port]>
+      Call-ID: [call_id]
+      CSeq: 1 INVITE
+      Contact: sip:test@[local_ip]:[local_port]
+      Max-Forwards: 70
+      Subject: Performance Test
+      User-Agent: Channel Param Test
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=guest1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=image 6000 RTP/AVP t38
+      a=T38FaxUdpEC:t38UDPRedundancy
+
+    ]]>
+  </send>
+
+  <recv response="100" optional="true" />
+
+  <recv response="180" optional="true" />
+
+  <recv response="183" optional="true" />
+
+  <recv response="488" rtd="true" />
+
+  <!-- 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>
+

Propchange: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi.xml?view=auto&rev=4596
==============================================================================
--- asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi.xml (added)
+++ asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi.xml Wed Jan 22 12:34:43 2014
@@ -1,0 +1,122 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Channel Test">
+  <send retrans="500">
+    <![CDATA[
+      INVITE sip:test@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:guest1@[local_ip]:[local_port]>;tag=[call_number]
+      To: test <sip:test@[remote_ip]:[remote_port]>
+      Call-ID: [call_id]
+      CSeq: 1 INVITE
+      Contact: sip:test@[local_ip]:[local_port]
+      Max-Forwards: 70
+      Subject: Performance Test
+      User-Agent: Channel Param Test
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=guest1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=image 27598 RTP/AVP t38
+      a=T38MaxBitRate:14400
+      a=T38FaxRateManagement:transferredTCF
+      a=T38FaxFillBitRemoval:0
+      a=T38FaxTranscodingMMR:0
+      a=T38FaxTranscodingJBIG:0
+      a=T38FaxVersion:0
+      a=T38FaxUdpEC:t38UDPRedundancy
+      a=sendrecv
+      m=image 34380 RTP/SAVP t38
+      a=T38MaxBitRate:14400
+      a=T38FaxRateManagement:transferredTCF
+      a=T38FaxFillBitRemoval:0
+      a=T38FaxTranscodingMMR:0
+      a=T38FaxTranscodingJBIG:0
+      a=T38FaxVersion:0
+      a=T38FaxUdpEC:t38UDPRedundancy
+      a=sendrecv
+      a=key-mgmt:mikey AQAVgPwtOloCAAAAAAAAAAAAAABZ+s2kAAAAAAUBAAVtaWtleQsA1kMaMwAAAAAKFPhiiuMYI6Rr/kmTTbCu0sR43a/HAQAA
+      ADYCAQEDBAAAAKAEBAAAAHALBAAAAFAAAQEBBAAAAIAJAQAGAQAFAQAIAQEKAQEHAQEMBAAAAAAAAAAkABAAENR6NqV530allXc23CkfQucADmG1yYfFo
+      +6Tw3+ofqCTAA==
+      a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:qa7LFKEFmfQF4exgJl2q78jJnxTGgsJGVjZqqg3u
+      m=image 34740 udptl t38
+      a=T38MaxBitRate:14400
+      a=T38FaxRateManagement:transferredTCF
+      a=T38FaxFillBitRemoval:0
+      a=T38FaxTranscodingMMR:0
+      a=T38FaxTranscodingJBIG:0
+      a=T38FaxVersion:0
+      a=T38FaxUdpEC:t38UDPRedundancy
+      a=sendrecv
+
+    ]]>
+  </send>
+
+  <recv response="100" optional="true" />
+
+  <recv response="180" optional="true" />
+
+  <recv response="183" optional="true" />
+
+  <recv response="200" rtd="true">
+    <action>
+      <ereg regexp="m=image [0-9]{1,5} udptl t38"
+            search_in="body" check_it="true" assign_to="1"/>
+      <ereg regexp="m=image 0 RTP/AVP t38"
+            search_in="body" check_it="true" assign_to="2"/>
+      <ereg regexp="m=image 0 RTP/SAVP t38"
+            search_in="body" check_it="true" assign_to="3"/>
+    </action>
+  </recv>
+  <Reference variables="1,2,3" />
+
+  <send>
+    <![CDATA[
+
+      ACK sip:test@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:guest1@[local_ip]:[local_port]>;tag=[call_number]
+      To: test <sip:test@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 1 ACK
+      Contact: sip:kartoffelsalat@[local_ip]:[local_port]
+      Max-Forwards: 70
+      Subject: Performance Test
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <send retrans="500">
+    <![CDATA[
+
+      BYE sip:test@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:guest1@[local_ip]:[local_port]>;tag=[call_number]
+      To: test <sip:test@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 2 BYE
+      Contact: sip:kartoffelsalat@[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>
+

Propchange: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi_1.8.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi_1.8.xml?view=auto&rev=4596
==============================================================================
--- asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi_1.8.xml (added)
+++ asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi_1.8.xml Wed Jan 22 12:34:43 2014
@@ -1,0 +1,118 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Channel Test">
+  <send retrans="500">
+    <![CDATA[
+      INVITE sip:test@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:guest1@[local_ip]:[local_port]>;tag=[call_number]
+      To: test <sip:test@[remote_ip]:[remote_port]>
+      Call-ID: [call_id]
+      CSeq: 1 INVITE
+      Contact: sip:test@[local_ip]:[local_port]
+      Max-Forwards: 70
+      Subject: Performance Test
+      User-Agent: Channel Param Test
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=guest1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=image 27598 RTP/AVP t38
+      a=T38MaxBitRate:14400
+      a=T38FaxRateManagement:transferredTCF
+      a=T38FaxFillBitRemoval:0
+      a=T38FaxTranscodingMMR:0
+      a=T38FaxTranscodingJBIG:0
+      a=T38FaxVersion:0
+      a=T38FaxUdpEC:t38UDPRedundancy
+      a=sendrecv
+      m=image 34380 RTP/SAVP t38
+      a=T38MaxBitRate:14400
+      a=T38FaxRateManagement:transferredTCF
+      a=T38FaxFillBitRemoval:0
+      a=T38FaxTranscodingMMR:0
+      a=T38FaxTranscodingJBIG:0
+      a=T38FaxVersion:0
+      a=T38FaxUdpEC:t38UDPRedundancy
+      a=sendrecv
+      a=key-mgmt:mikey AQAVgPwtOloCAAAAAAAAAAAAAABZ+s2kAAAAAAUBAAVtaWtleQsA1kMaMwAAAAAKFPhiiuMYI6Rr/kmTTbCu0sR43a/HAQAA
+      ADYCAQEDBAAAAKAEBAAAAHALBAAAAFAAAQEBBAAAAIAJAQAGAQAFAQAIAQEKAQEHAQEMBAAAAAAAAAAkABAAENR6NqV530allXc23CkfQucADmG1yYfFo
+      +6Tw3+ofqCTAA==
+      a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:qa7LFKEFmfQF4exgJl2q78jJnxTGgsJGVjZqqg3u
+      m=image 34740 udptl t38
+      a=T38MaxBitRate:14400
+      a=T38FaxRateManagement:transferredTCF
+      a=T38FaxFillBitRemoval:0
+      a=T38FaxTranscodingMMR:0
+      a=T38FaxTranscodingJBIG:0
+      a=T38FaxVersion:0
+      a=T38FaxUdpEC:t38UDPRedundancy
+      a=sendrecv
+
+    ]]>
+  </send>
+
+  <recv response="100" optional="true" />
+
+  <recv response="180" optional="true" />
+
+  <recv response="183" optional="true" />
+
+  <recv response="200" rtd="true">
+    <action>
+      <ereg regexp="m=image [0-9]{1,5} udptl t38"
+            search_in="body" check_it="true" assign_to="1"/>
+    </action>
+  </recv>
+  <Reference variables="1" />
+
+  <send>
+    <![CDATA[
+
+      ACK sip:test@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:guest1@[local_ip]:[local_port]>;tag=[call_number]
+      To: test <sip:test@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 1 ACK
+      Contact: sip:kartoffelsalat@[local_ip]:[local_port]
+      Max-Forwards: 70
+      Subject: Performance Test
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <send retrans="500">
+    <![CDATA[
+
+      BYE sip:test@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:guest1@[local_ip]:[local_port]>;tag=[call_number]
+      To: test <sip:test@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 2 BYE
+      Contact: sip:kartoffelsalat@[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>
+

Propchange: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi_1.8.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi_1.8.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/SDP_offer_answer/sipp/decline_unsupported_image_multi_1.8.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml




More information about the asterisk-commits mailing list