[asterisk-commits] dlee: testsuite/asterisk/trunk r3630 - in /asterisk/trunk/tests/channels/SIP/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 31 14:21:06 CST 2013


Author: dlee
Date: Thu Jan 31 14:21:02 2013
New Revision: 3630

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3630
Log:
Testsuite coverage for session-timers, uas, session-timers=originate

While the fix for wasn't exactly rocket science, the
code sorting through all the min's, max's and timers wasn't
intuitively obvious. This test covers all of the typical combinations
one would excpect for Min-SE and Session-Expires to make sure my fix
didn't unduly break anything.

It's a big diff, but most of the test cases are identical, with
differing values for Min-SE, Session-Expires, and expected results.

(issue ASTERISK-20787)
Reported by: Mark Michelson
Review: https://reviewboard.asterisk.org/r/2300

Added:
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_medium_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_medium_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_medium_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_medium_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_medium_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_medium_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_medium_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_medium_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_no_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_no_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_no_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_no_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_no_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_no_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_no_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_no_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_large_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_large_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_large_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_large_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_large_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_large_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_large_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_large_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_medium_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_medium_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_medium_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_medium_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_medium_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_medium_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_medium_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_medium_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_no_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_no_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_no_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_no_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_no_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_no_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_no_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_no_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_small_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_small_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_small_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_small_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_small_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_small_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_small_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/no_minse_small_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_large_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_large_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_large_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_large_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_large_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_large_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_large_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_large_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_medium_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_medium_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_medium_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_medium_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_medium_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_medium_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_medium_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_medium_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_no_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_no_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_no_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_no_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_no_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_no_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_no_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_no_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_small_se/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_small_se/configs/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_small_se/configs/ast1/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_small_se/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_small_se/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_small_se/sipp/
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_small_se/sipp/uac-session-timer.xml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/small_minse_small_se/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/tests.yaml   (with props)
Modified:
    asterisk/trunk/tests/channels/SIP/session_timers/tests.yaml

Modified: asterisk/trunk/tests/channels/SIP/session_timers/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/tests.yaml?view=diff&rev=3630&r1=3629&r2=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/tests.yaml (original)
+++ asterisk/trunk/tests/channels/SIP/session_timers/tests.yaml Thu Jan 31 14:21:02 2013
@@ -9,3 +9,4 @@
     - test: 'uac_multiple_422_accept'
     - test: 'uac_multiple_422_originate'
     - test: 'check_require'
+    - dir: 'uas_originate'

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/extensions.conf?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/extensions.conf Thu Jan 31 14:21:02 2013
@@ -1,0 +1,4 @@
+[default]
+exten => endpointa,1,NoOp()
+exten => endpointa,n,Answer()
+exten => endpointa,n,Echo()

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/sip.conf?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/sip.conf Thu Jan 31 14:21:02 2013
@@ -1,0 +1,13 @@
+[general]
+
+[endpointa]
+context=default
+type=friend
+host=127.0.0.1
+port=5066
+insecure=invite
+disallow=all
+allow=ulaw
+session-timers=originate
+session-minse=101
+session-expires=199

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/sipp/uac-session-timer.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/sipp/uac-session-timer.xml?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/sipp/uac-session-timer.xml (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/sipp/uac-session-timer.xml Thu Jan 31 14:21:02 2013
@@ -1,0 +1,64 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<!-- This program is free software; you can redistribute it and/or      -->
+<!-- modify it under the terms of the GNU General Public License as     -->
+<!-- published by the Free Software Foundation; either version 2 of the -->
+<!-- License, or (at your option) any later version.                    -->
+<!--                                                                    -->
+<!-- This program is distributed in the hope that it will be useful,    -->
+<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of     -->
+<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      -->
+<!-- GNU General Public License for more details.                       -->
+<!--                                                                    -->
+<!-- You should have received a copy of the GNU General Public License  -->
+<!-- along with this program; if not, write to the                      -->
+<!-- Free Software Foundation, Inc.,                                    -->
+<!-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA             -->
+
+<scenario name="UAC for timer testing">
+  <send retrans="500">
+    <![CDATA[
+
+      INVITE sip:endpointa@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+      To: sut <sip:[service]@[remote_ip]:[remote_port]>
+      Call-ID: [call_id]
+      CSeq: 1 INVITE
+      Contact: sip:sipp@[local_ip]:[local_port]
+      Max-Forwards: 70
+      Supported: timer
+      Min-SE: 240
+      Session-Expires: 250
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=audio [media_port] RTP/AVP 0
+      a=rtpmap:0 PCMU/8000
+
+    ]]>
+  </send>
+
+  <recv response="100" optional="true" />
+
+  <!-- This reflects the current behavior of Asterisk, if an offered Min-SE is greater than -->
+  <!-- our configured session-expires, we'll just go with the offered Session-Expires. -->
+  <recv response="200">
+    <action>
+      <ereg search_in="hdr" header="Session-Expires:" regexp=" 250;" check_it="true" assign_to="1"/>
+      <strcmp assign_to="1" variable="1" value=""/>
+    </action>
+  </recv>
+
+  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
+
+  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
+
+</scenario>
+

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/sipp/uac-session-timer.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/sipp/uac-session-timer.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/sipp/uac-session-timer.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/test-config.yaml?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/test-config.yaml Thu Jan 31 14:21:02 2013
@@ -1,0 +1,26 @@
+testinfo:
+    summary:     'Large Min-SE, Large Session-Expires'
+    description: |
+        "UAS session timer testing, with session-timers=originate, and the offered Min-SE is greater than session-expires, as is Session-Expires."
+
+properties:
+    minversion: '1.8.0'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+        - app : 'sipp'
+    tags:
+        - SIP
+        - SIP_session_timers
+
+test-modules:
+    test-object:
+        config-section: sipp-config
+        typename: 'sipp.SIPpTestCase'
+
+sipp-config:
+    fail-on-any: True
+    test-iterations:
+        -
+            scenarios:
+                - { 'key-args': {'scenario': 'uac-session-timer.xml', '-p': '5066'} }

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_large_se/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/extensions.conf?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/extensions.conf Thu Jan 31 14:21:02 2013
@@ -1,0 +1,4 @@
+[default]
+exten => endpointa,1,NoOp()
+exten => endpointa,n,Answer()
+exten => endpointa,n,Echo()

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/sip.conf?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/sip.conf Thu Jan 31 14:21:02 2013
@@ -1,0 +1,13 @@
+[general]
+
+[endpointa]
+context=default
+type=friend
+host=127.0.0.1
+port=5066
+insecure=invite
+disallow=all
+allow=ulaw
+session-timers=originate
+session-minse=101
+session-expires=199

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/sipp/uac-session-timer.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/sipp/uac-session-timer.xml?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/sipp/uac-session-timer.xml (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/sipp/uac-session-timer.xml Thu Jan 31 14:21:02 2013
@@ -1,0 +1,62 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<!-- This program is free software; you can redistribute it and/or      -->
+<!-- modify it under the terms of the GNU General Public License as     -->
+<!-- published by the Free Software Foundation; either version 2 of the -->
+<!-- License, or (at your option) any later version.                    -->
+<!--                                                                    -->
+<!-- This program is distributed in the hope that it will be useful,    -->
+<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of     -->
+<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      -->
+<!-- GNU General Public License for more details.                       -->
+<!--                                                                    -->
+<!-- You should have received a copy of the GNU General Public License  -->
+<!-- along with this program; if not, write to the                      -->
+<!-- Free Software Foundation, Inc.,                                    -->
+<!-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA             -->
+
+<scenario name="UAC for timer testing">
+  <send retrans="500">
+    <![CDATA[
+
+      INVITE sip:endpointa@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+      To: sut <sip:[service]@[remote_ip]:[remote_port]>
+      Call-ID: [call_id]
+      CSeq: 1 INVITE
+      Contact: sip:sipp@[local_ip]:[local_port]
+      Max-Forwards: 70
+      Supported: timer
+      Min-SE: 240
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=audio [media_port] RTP/AVP 0
+      a=rtpmap:0 PCMU/8000
+
+    ]]>
+  </send>
+
+  <recv response="100" optional="true" />
+
+  <!-- Min-SE is greater than our session-expires, so simply accept that -->
+  <recv response="200">
+    <action>
+      <ereg search_in="hdr" header="Session-Expires:" regexp=" 240;" check_it="true" assign_to="1"/>
+      <strcmp assign_to="1" variable="1" value=""/>
+    </action>
+  </recv>
+
+  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
+
+  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
+
+</scenario>
+

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/sipp/uac-session-timer.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/sipp/uac-session-timer.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/sipp/uac-session-timer.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/test-config.yaml?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/test-config.yaml Thu Jan 31 14:21:02 2013
@@ -1,0 +1,26 @@
+testinfo:
+    summary:     'Large Min-SE, No Session-Expires'
+    description: |
+        "UAS session timer testing, with session-timers=originate, and the offered Min-SE is greater than session-expires, and no Session-Expires."
+
+properties:
+    minversion: '1.8.0'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+        - app : 'sipp'
+    tags:
+        - SIP
+        - SIP_session_timers
+
+test-modules:
+    test-object:
+        config-section: sipp-config
+        typename: 'sipp.SIPpTestCase'
+
+sipp-config:
+    fail-on-any: True
+    test-iterations:
+        -
+            scenarios:
+                - { 'key-args': {'scenario': 'uac-session-timer.xml', '-p': '5066'} }

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/large_minse_no_se/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/extensions.conf?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/extensions.conf Thu Jan 31 14:21:02 2013
@@ -1,0 +1,4 @@
+[default]
+exten => endpointa,1,NoOp()
+exten => endpointa,n,Answer()
+exten => endpointa,n,Echo()

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/sip.conf?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/sip.conf Thu Jan 31 14:21:02 2013
@@ -1,0 +1,13 @@
+[general]
+
+[endpointa]
+context=default
+type=friend
+host=127.0.0.1
+port=5066
+insecure=invite
+disallow=all
+allow=ulaw
+session-timers=originate
+session-minse=101
+session-expires=199

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/sipp/uac-session-timer.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/sipp/uac-session-timer.xml?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/sipp/uac-session-timer.xml (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/sipp/uac-session-timer.xml Thu Jan 31 14:21:02 2013
@@ -1,0 +1,62 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<!-- This program is free software; you can redistribute it and/or      -->
+<!-- modify it under the terms of the GNU General Public License as     -->
+<!-- published by the Free Software Foundation; either version 2 of the -->
+<!-- License, or (at your option) any later version.                    -->
+<!--                                                                    -->
+<!-- This program is distributed in the hope that it will be useful,    -->
+<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of     -->
+<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      -->
+<!-- GNU General Public License for more details.                       -->
+<!--                                                                    -->
+<!-- You should have received a copy of the GNU General Public License  -->
+<!-- along with this program; if not, write to the                      -->
+<!-- Free Software Foundation, Inc.,                                    -->
+<!-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA             -->
+
+<scenario name="UAC for timer testing">
+  <send retrans="500">
+    <![CDATA[
+
+      INVITE sip:endpointa@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+      To: sut <sip:[service]@[remote_ip]:[remote_port]>
+      Call-ID: [call_id]
+      CSeq: 1 INVITE
+      Contact: sip:sipp@[local_ip]:[local_port]
+      Max-Forwards: 70
+      Supported: timer
+      Min-SE: 150
+      Session-Expires: 250
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=audio [media_port] RTP/AVP 0
+      a=rtpmap:0 PCMU/8000
+
+    ]]>
+  </send>
+
+  <recv response="100" optional="true" />
+
+  <recv response="200">
+    <action>
+      <ereg search_in="hdr" header="Session-Expires:" regexp=" 199;" check_it="true" assign_to="1"/>
+      <strcmp assign_to="1" variable="1" value=""/>
+    </action>
+  </recv>
+
+  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
+
+  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
+
+</scenario>
+

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/sipp/uac-session-timer.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/sipp/uac-session-timer.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/sipp/uac-session-timer.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/test-config.yaml?view=auto&rev=3630
==============================================================================
--- asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/test-config.yaml Thu Jan 31 14:21:02 2013
@@ -1,0 +1,26 @@
+testinfo:
+    summary:     'Medium Min-SE, Large Session-Expires'
+    description: |
+        "UAS session timer testing, with session-timers=originate, and the offered Min-SE is between session-minse and session-expires, and Session-Expires is greater than session-expires."
+
+properties:
+    minversion: '1.8.0'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+        - app : 'sipp'
+    tags:
+        - SIP
+        - SIP_session_timers
+
+test-modules:
+    test-object:
+        config-section: sipp-config
+        typename: 'sipp.SIPpTestCase'
+
+sipp-config:
+    fail-on-any: True
+    test-iterations:
+        -
+            scenarios:
+                - { 'key-args': {'scenario': 'uac-session-timer.xml', '-p': '5066'} }

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_large_se/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_medium_se/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/session_timers/uas_originate/medium_minse_medium_se/configs/ast1/extensions.conf?view=auto&rev=3630

[... 1831 lines stripped ...]



More information about the asterisk-commits mailing list