[asterisk-commits] sgriepentrog: testsuite/asterisk/trunk r4779 - in /asterisk/trunk/tests/chann...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 4 15:13:30 CST 2014


Author: sgriepentrog
Date: Tue Mar  4 15:13:24 2014
New Revision: 4779

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4779
Log:
testsuite: test for allow=all sdp

This is little more than a copy of tests/channel/pjsip/basic_
calls/incoming/nominal/unauthed/ident_by_host, with allow=all
instead of allow=ulaw. In order to help identify the cause of
any test failures the IPV4/6 and TCP/UDP tests are broken out
into separate tests. Note that not including all the standard
set of codecs will cause the test to fail as all are checked.

(issue ASTERISK-23018)
Review: https://reviewboard.asterisk.org/r/3132/


Added:
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_deferred_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_initial_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_deferred_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_initial_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/configs/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/sipp/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/sipp/echo_with_deferred_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/sipp/echo_with_initial_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/sipp/playback_with_deferred_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/sipp/playback_with_initial_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/offer_ulaw_allow_all/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/offer_ulaw_allow_all/configs/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/offer_ulaw_allow_all/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/offer_ulaw_allow_all/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/offer_ulaw_allow_all/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/offer_ulaw_allow_all/sipp/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/offer_ulaw_allow_all/sipp/echo_with_deferred_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/offer_ulaw_allow_all/sipp/echo_with_initial_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/offer_ulaw_allow_all/sipp/playback_with_deferred_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/offer_ulaw_allow_all/sipp/playback_with_initial_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/offer_ulaw_allow_all/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tcp/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/offer_ulaw_allow_all/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/offer_ulaw_allow_all/configs/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/offer_ulaw_allow_all/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/offer_ulaw_allow_all/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/offer_ulaw_allow_all/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/offer_ulaw_allow_all/sipp/
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/offer_ulaw_allow_all/sipp/echo_with_deferred_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/offer_ulaw_allow_all/sipp/echo_with_initial_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/offer_ulaw_allow_all/sipp/playback_with_deferred_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/offer_ulaw_allow_all/sipp/playback_with_initial_sdp.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/offer_ulaw_allow_all/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv6/udp/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/tests.yaml   (with props)
Modified:
    asterisk/trunk/tests/channels/pjsip/tests.yaml

Added: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/extensions.conf?view=auto&rev=4779
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/extensions.conf Tue Mar  4 15:13:24 2014
@@ -1,0 +1,16 @@
+[default]
+exten => echo,1,Answer()
+same  =>      n,Echo()
+same  =>      n,Hangup()
+
+exten => playback,1,Answer()
+same  =>          n,Playback(hello-world)
+same  =>          n,Hangup()
+
+exten => early,1,Progress()
+same  =>       n,Playback(hello-world,noanswer)
+same  =>       n,Hangup(INTERWORKING)
+
+;This dialstring can be altered once endpoints can be used directly
+exten => bob,1,Dial(PJSIP/sip:bob at 127.0.0.1:5062)
+same  =>     n,Hangup()

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/pjsip.conf?view=auto&rev=4779
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/pjsip.conf Tue Mar  4 15:13:24 2014
@@ -1,0 +1,56 @@
+[local-transport-template](!)
+type=transport
+bind=127.0.0.1
+
+[local-transport6-template](!)
+type=transport
+bind=[::1]
+
+[local-transport-udp](local-transport-template)
+protocol=udp
+
+[local-transport-udp6](local-transport6-template)
+protocol=udp
+
+[local-transport-tcp](local-transport-template)
+protocol=tcp
+
+[local-transport-tcp6](local-transport6-template)
+protocol=tcp
+
+[endpoint-template-ipv4](!)
+type=endpoint
+context=default
+allow=all
+media_address=127.0.0.1
+
+[endpoint-template-ipv6](!)
+type=endpoint
+context=default
+allow=all
+media_address=[::1]
+rtp_ipv6=yes
+
+[alice-ipv4-udp](endpoint-template-ipv4)
+transport=local-transport-udp
+
+[alice-ipv4-tcp](endpoint-template-ipv4)
+transport=local-transport-tcp
+
+[alice-ipv6-udp](endpoint-template-ipv6)
+transport=local-transport-udp6
+
+[alice-ipv6-tcp](endpoint-template-ipv6)
+transport=local-transport-tcp6
+
+[identify-template](!)
+type=identify
+
+[alice-identify-ipv4](identify-template)
+endpoint=alice-ipv4-udp
+match=127.0.0.1
+
+[alice-identify-ipv6](identify-template)
+endpoint=alice-ipv6-udp
+match=[::1]
+

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_deferred_sdp.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_deferred_sdp.xml?view=auto&rev=4779
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_deferred_sdp.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_deferred_sdp.xml Tue Mar  4 15:13:24 2014
@@ -1,0 +1,108 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="INVITE to echo with SDP in ACK">
+  <send retrans="500">
+    <![CDATA[
+
+      INVITE sip:echo@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:unknown@[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];transport=[transport]>
+      Max-Forwards: 70
+      Subject: Test
+      User-Agent: Test
+      Content-Length: 0
+    ]]>
+  </send>
+
+  <recv response="100"
+        optional="true">
+  </recv>
+
+  <recv response="200" rtd="true">
+    <action>
+        <ereg regexp="rtpmap:0 PCMU/8000" search_in="msg" check_it="true" assign_to="1" />
+        <ereg regexp="rtpmap:4 G723/8000" search_in="msg" check_it="true" assign_to="2" />
+        <ereg regexp="rtpmap:3 GSM/8000" search_in="msg" check_it="true" assign_to="3" />
+        <ereg regexp="rtpmap:8 PCMA/8000" search_in="msg" check_it="true" assign_to="4" />
+        <ereg regexp="rtpmap:111 G726-32/8000" search_in="msg" check_it="true" assign_to="5" />
+        <ereg regexp="rtpmap:5 DVI4/8000" search_in="msg" check_it="true" assign_to="6" />
+        <ereg regexp="rtpmap:10 L16/8000" search_in="msg" check_it="true" assign_to="7" />
+        <ereg regexp="rtpmap:7 LPC/8000" search_in="msg" check_it="true" assign_to="8" />
+        <ereg regexp="rtpmap:18 G729/8000" search_in="msg" check_it="true" assign_to="9" />
+        <ereg regexp="rtpmap:110 speex/8000" search_in="msg" check_it="true" assign_to="10" />
+        <ereg regexp="rtpmap:117 speex/16000" search_in="msg" check_it="true" assign_to="11" />
+        <ereg regexp="rtpmap:97 iLBC/8000" search_in="msg" check_it="true" assign_to="12" />
+        <ereg regexp="rtpmap:112 AAL2-G726-32/8000" search_in="msg" check_it="true" assign_to="13" />
+        <ereg regexp="rtpmap:9 G722/8000" search_in="msg" check_it="true" assign_to="14" />
+        <ereg regexp="rtpmap:118 L16/16000" search_in="msg" check_it="true" assign_to="15" />
+        <ereg regexp="rtpmap:102 G7221/16000" search_in="msg" check_it="true" assign_to="16" />
+        <ereg regexp="rtpmap:115 G7221/32000" search_in="msg" check_it="true" assign_to="17" />
+        <ereg regexp="rtpmap:116 G719/48000" search_in="msg" check_it="true" assign_to="18" />
+        <ereg regexp="rtpmap:119 speex/32000" search_in="msg" check_it="true" assign_to="19" />
+        <ereg regexp="rtpmap:107 opus/48000" search_in="msg" check_it="true" assign_to="20" />
+        <ereg regexp="rtpmap:101 telephone-event/8000" search_in="msg" check_it="true" assign_to="21" />
+    </action>
+  </recv>
+  <Reference variables="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21" />
+
+  <send>
+    <![CDATA[
+
+      ACK sip:echo@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:unknown@[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:test@[local_ip]:[local_port];transport=[transport]>
+      Max-Forwards: 70
+      Subject: Test
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=phoneA 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=audio 6000 RTP/AVP 0
+      a=rtpmap:0 PCMU/8000
+
+    ]]>
+  </send>
+
+  <pause/>
+
+  <send retrans="500">
+    <![CDATA[
+
+      BYE sip:echo@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:unknown@[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:test@[local_ip]:[local_port];transport=[transport]>
+      Max-Forwards: 70
+      Subject: 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/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_deferred_sdp.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_deferred_sdp.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_deferred_sdp.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_initial_sdp.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_initial_sdp.xml?view=auto&rev=4779
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_initial_sdp.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_initial_sdp.xml Tue Mar  4 15:13:24 2014
@@ -1,0 +1,89 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="INVITE to echo with SDP in initial INVITE">
+  <send retrans="500">
+    <![CDATA[
+
+      INVITE sip:echo@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:unknown@[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];transport=[transport]>
+      Max-Forwards: 70
+      Subject: Test
+      User-Agent: Test
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=phoneA 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=audio 6000 RTP/AVP 0
+      a=rtpmap:0 PCMU/8000
+
+    ]]>
+  </send>
+
+  <recv response="100"
+        optional="true">
+  </recv>
+
+  <recv response="200" rtd="true">
+      <action>
+        <ereg regexp="rtpmap:0 PCMU/8000" search_in="msg" check_it="true" assign_to="1" />
+      </action>
+  </recv>
+  <Reference variables="1" />
+
+  <send>
+    <![CDATA[
+
+      ACK sip:echo@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:unknown@[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:test@[local_ip]:[local_port];transport=[transport]>
+      Max-Forwards: 70
+      Subject: Test
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <pause/>
+
+  <send retrans="500">
+    <![CDATA[
+
+      BYE sip:echo@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:unknown@[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:test@[local_ip]:[local_port];transport=[transport]>
+      Max-Forwards: 70
+      Subject: 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/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_initial_sdp.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_initial_sdp.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/echo_with_initial_sdp.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_deferred_sdp.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_deferred_sdp.xml?view=auto&rev=4779
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_deferred_sdp.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_deferred_sdp.xml Tue Mar  4 15:13:24 2014
@@ -1,0 +1,104 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="INVITE to playback with SDP in ACK">
+  <send retrans="500">
+    <![CDATA[
+
+      INVITE sip:playback@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:unknown@[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];transport=[transport]>
+      Max-Forwards: 70
+      Subject: Test
+      User-Agent: Test
+      Content-Length: 0
+    ]]>
+  </send>
+
+  <recv response="100"
+        optional="true">
+  </recv>
+
+  <recv response="200" rtd="true">
+      <action>
+        <ereg regexp="rtpmap:0 PCMU/8000" search_in="msg" check_it="true" assign_to="1" />
+        <ereg regexp="rtpmap:4 G723/8000" search_in="msg" check_it="true" assign_to="2" />
+        <ereg regexp="rtpmap:3 GSM/8000" search_in="msg" check_it="true" assign_to="3" />
+        <ereg regexp="rtpmap:8 PCMA/8000" search_in="msg" check_it="true" assign_to="4" />
+        <ereg regexp="rtpmap:111 G726-32/8000" search_in="msg" check_it="true" assign_to="5" />
+        <ereg regexp="rtpmap:5 DVI4/8000" search_in="msg" check_it="true" assign_to="6" />
+        <ereg regexp="rtpmap:10 L16/8000" search_in="msg" check_it="true" assign_to="7" />
+        <ereg regexp="rtpmap:7 LPC/8000" search_in="msg" check_it="true" assign_to="8" />
+        <ereg regexp="rtpmap:18 G729/8000" search_in="msg" check_it="true" assign_to="9" />
+        <ereg regexp="rtpmap:110 speex/8000" search_in="msg" check_it="true" assign_to="10" />
+        <ereg regexp="rtpmap:117 speex/16000" search_in="msg" check_it="true" assign_to="11" />
+        <ereg regexp="rtpmap:97 iLBC/8000" search_in="msg" check_it="true" assign_to="12" />
+        <ereg regexp="rtpmap:112 AAL2-G726-32/8000" search_in="msg" check_it="true" assign_to="13" />
+        <ereg regexp="rtpmap:9 G722/8000" search_in="msg" check_it="true" assign_to="14" />
+        <ereg regexp="rtpmap:118 L16/16000" search_in="msg" check_it="true" assign_to="15" />
+        <ereg regexp="rtpmap:102 G7221/16000" search_in="msg" check_it="true" assign_to="16" />
+        <ereg regexp="rtpmap:115 G7221/32000" search_in="msg" check_it="true" assign_to="17" />
+        <ereg regexp="rtpmap:116 G719/48000" search_in="msg" check_it="true" assign_to="18" />
+        <ereg regexp="rtpmap:119 speex/32000" search_in="msg" check_it="true" assign_to="19" />
+        <ereg regexp="rtpmap:107 opus/48000" search_in="msg" check_it="true" assign_to="20" />
+        <ereg regexp="rtpmap:101 telephone-event/8000" search_in="msg" check_it="true" assign_to="21" />
+      </action>
+  </recv>
+  <Reference variables="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21" />
+
+  <send>
+    <![CDATA[
+
+      ACK sip:playback@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:unknown@[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:test@[local_ip]:[local_port];transport=[transport]>
+      Max-Forwards: 70
+      Subject: Test
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=phoneA 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=audio 6000 RTP/AVP 0
+      a=rtpmap:0 PCMU/8000
+
+    ]]>
+  </send>
+
+  <recv request="BYE">
+  </recv>
+
+  <send>
+    <![CDATA[
+
+      SIP/2.0 200 OK
+      [last_Via:]
+      [last_From:]
+      [last_To:]
+      [last_Call-ID:]
+      [last_CSeq:]
+      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <!-- 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/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_deferred_sdp.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_deferred_sdp.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_deferred_sdp.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_initial_sdp.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_initial_sdp.xml?view=auto&rev=4779
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_initial_sdp.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_initial_sdp.xml Tue Mar  4 15:13:24 2014
@@ -1,0 +1,85 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="INVITE to playback with SDP in initial INVITE">
+  <send retrans="500">
+    <![CDATA[
+
+      INVITE sip:playback@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:unknown@[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];transport=[transport]>
+      Max-Forwards: 70
+      Subject: Test
+      User-Agent: Test
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=phoneA 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=audio 6000 RTP/AVP 0
+      a=rtpmap:0 PCMU/8000
+
+    ]]>
+  </send>
+
+  <recv response="100"
+        optional="true">
+  </recv>
+
+  <recv response="200" rtd="true">
+      <action>
+        <ereg regexp="rtpmap:0 PCMU/8000" search_in="msg" check_it="true" assign_to="1" />
+      </action>
+  </recv>
+  <Reference variables="1" />
+
+  <send>
+    <![CDATA[
+
+      ACK sip:playback@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: test1 <sip:unknown@[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:test@[local_ip]:[local_port];transport=[transport]>
+      Max-Forwards: 70
+      Subject: Test
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <recv request="BYE">
+  </recv>
+
+  <send>
+    <![CDATA[
+
+      SIP/2.0 200 OK
+      [last_Via:]
+      [last_From:]
+      [last_To:]
+      [last_Call-ID:]
+      [last_CSeq:]
+      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <!-- 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/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_initial_sdp.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_initial_sdp.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/sipp/playback_with_initial_sdp.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/test-config.yaml?view=auto&rev=4779
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/test-config.yaml Tue Mar  4 15:13:24 2014
@@ -1,0 +1,37 @@
+testinfo:
+    summary:     'Tests IPv4 TCP incoming calls with allow=all'
+    description: |
+        'Run a SIPp scenario that sends various calls to res_pjsip, to check that calls succeed
+        with allow=all configuration.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'sipp.SIPpTestCase'
+
+test-object-config:
+    fail-on-any: False
+    test-iterations:
+
+        # IPv4 & TCP
+        -
+            scenarios:
+                 - { 'key-args': {'scenario': 'playback_with_initial_sdp.xml', '-i': '127.0.0.1', '-p': '5061', '-t': 't1', '-s': 'alice-ipv4-tcp'} }
+        -
+            scenarios:
+                 - { 'key-args': {'scenario': 'echo_with_initial_sdp.xml', '-i': '127.0.0.1', '-p': '5062', '-t': 't1', '-d': '5000', '-s': 'alice-ipv4-tcp'} }
+        -
+            scenarios:
+                 - { 'key-args': {'scenario': 'playback_with_deferred_sdp.xml', '-i': '127.0.0.1', '-p': '5066', '-t': 't1', '-s': 'alice-ipv4-tcp'} }
+        -
+            scenarios:
+                 - { 'key-args': {'scenario': 'echo_with_deferred_sdp.xml', '-i': '127.0.0.1', '-p': '5067', '-t': 't1', '-d': '5000', '-s': 'alice-ipv4-tcp'} }
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - sipp :
+            version : 'v3.0'
+        - asterisk : 'res_pjsip'
+    tags:
+        - pjsip

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/offer_ulaw_allow_all/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/tests.yaml?view=auto&rev=4779
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/tests.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/tests.yaml Tue Mar  4 15:13:24 2014
@@ -1,0 +1,3 @@
+# Enter tests here in the order they should be considered for execution:
+tests:
+    - test: 'offer_ulaw_allow_all'

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/tests.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/tests.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tcp/tests.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tests.yaml?view=auto&rev=4779
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tests.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tests.yaml Tue Mar  4 15:13:24 2014
@@ -1,0 +1,4 @@
+# Enter tests here in the order they should be considered for execution:
+tests:
+    - dir: 'tcp'
+    - dir: 'udp'

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tests.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tests.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/tests.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/configs/ast1/extensions.conf?view=auto&rev=4779
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/configs/ast1/extensions.conf Tue Mar  4 15:13:24 2014
@@ -1,0 +1,16 @@
+[default]
+exten => echo,1,Answer()
+same  =>      n,Echo()
+same  =>      n,Hangup()
+
+exten => playback,1,Answer()
+same  =>          n,Playback(hello-world)
+same  =>          n,Hangup()
+
+exten => early,1,Progress()
+same  =>       n,Playback(hello-world,noanswer)
+same  =>       n,Hangup(INTERWORKING)
+
+;This dialstring can be altered once endpoints can be used directly
+exten => bob,1,Dial(PJSIP/sip:bob at 127.0.0.1:5062)
+same  =>     n,Hangup()

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/sdp_offer_answer/incoming/nominal/ipv4/udp/offer_ulaw_allow_all/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain


[... 2019 lines stripped ...]



More information about the asterisk-commits mailing list