[asterisk-commits] jbigelow: testsuite/asterisk/trunk r4014 - in /asterisk/trunk/tests/channels/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 14 10:41:44 CDT 2013


Author: jbigelow
Date: Wed Aug 14 10:41:29 2013
New Revision: 4014

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4014
Log:
Add inbound nominal and off-nominal registration tests for pjsip

This adds tests that cover inbound nominal and off-nominal registration and
unregistration of contacts. Each test has iterations for IPv4/IPv6 and
UDP/TCP.

Except for the off-nominal invalid expiration registration test, these cover
all the tests listed on the test plan page of the wiki.

Review: https://reviewboard.asterisk.org/r/2699/
Review: https://reviewboard.asterisk.org/r/2718/
Review: https://reviewboard.asterisk.org/r/2722/
Review: https://reviewboard.asterisk.org/r/2733/
Review: https://reviewboard.asterisk.org/r/2736/

(closes issue ASTERISK-21833)
(closes issue ASTERISK-21834)
(closes issue ASTERISK-21836)
(closes issue ASTERISK-21835)
(closes issue ASTERISK-21837)


Added:
    asterisk/trunk/tests/channels/pjsip/registration/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/sipp/register-noauth.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/sipp/register-noauth.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/sipp/register-noauth-ipv4.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/sipp/register-noauth-ipv6.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/mixed/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/mixed/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/mixed/unauthed/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/mixed/unauthed/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/mixed/unauthed/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/mixed/unauthed/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/mixed/unauthed/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/mixed/unauthed/sipp/mixed-noauth-contact-expiry-ipv4.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/mixed/unauthed/sipp/mixed-noauth-contact-expiry-ipv6.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/mixed/unauthed/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/authed/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/authed/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/authed/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/authed/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/authed/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/authed/sipp/register-auth-multi-contact-expiry-ipv4.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/authed/sipp/register-auth-multi-contact-expiry-ipv6.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/authed/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/unauthed/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/unauthed/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/unauthed/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/unauthed/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/unauthed/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/unauthed/sipp/register-noauth-multi-contact-expiry-ipv4.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/unauthed/sipp/register-noauth-multi-contact-expiry-ipv6.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/multiple_contacts/unauthed/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/authed/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/authed/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/authed/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/authed/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/authed/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/authed/sipp/register-auth.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/authed/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/unauthed/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/unauthed/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/unauthed/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/unauthed/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/unauthed/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/unauthed/sipp/register-noauth.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/single_contact/unauthed/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/all_contacts/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/all_contacts/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/all_contacts/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/all_contacts/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/all_contacts/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/all_contacts/sipp/register-noauth-ipv4.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/all_contacts/sipp/register-noauth-ipv6.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/all_contacts/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/multiple_contacts/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/multiple_contacts/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/multiple_contacts/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/multiple_contacts/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/multiple_contacts/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/multiple_contacts/sipp/register-noauth-ipv4.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/multiple_contacts/sipp/register-noauth-ipv6.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/multiple_contacts/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/single_contact/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/single_contact/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/single_contact/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/single_contact/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/single_contact/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/single_contact/sipp/register-noauth.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/single_contact/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/unregister/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/max_contacts/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/max_contacts/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/max_contacts/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/max_contacts/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/max_contacts/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/max_contacts/sipp/register-too-many-contacts.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/max_contacts/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/no_contact_header/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/no_contact_header/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/no_contact_header/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/no_contact_header/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/no_contact_header/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/no_contact_header/sipp/register-noauth-no-contact-header.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/no_contact_header/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/unregister/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/unregister/no_expires_header/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/unregister/no_expires_header/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/unregister/no_expires_header/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/unregister/no_expires_header/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/unregister/no_expires_header/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/unregister/no_expires_header/sipp/register-noauth.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/unregister/no_expires_header/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/unregister/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/wrong_password/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/wrong_password/configs/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/wrong_password/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/wrong_password/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/wrong_password/sipp/
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/wrong_password/sipp/register-wrong-password.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/off-nominal/wrong_password/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/inbound/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/registration/tests.yaml   (with props)
Modified:
    asterisk/trunk/tests/channels/pjsip/tests.yaml

Added: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/configs/ast1/pjsip.conf?view=auto&rev=4014
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/configs/ast1/pjsip.conf Wed Aug 14 10:41:29 2013
@@ -1,0 +1,61 @@
+[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](!)
+type=endpoint
+context=default
+allow=!all,ulaw
+
+[alice](endpoint-template)
+aors=alice
+
+[alice]
+type=aor
+max_contacts=1
+maximum_expiration=60
+default_expiration=30
+
+[bob](endpoint-template)
+aors=bob
+
+[bob]
+type=aor
+max_contacts=1
+maximum_expiration=60
+default_expiration=30
+
+[charlie](endpoint-template)
+aors=charlie
+
+[charlie]
+type=aor
+max_contacts=1
+maximum_expiration=60
+default_expiration=30
+
+[carol](endpoint-template)
+aors=carol
+
+[carol]
+type=aor
+max_contacts=1
+maximum_expiration=60
+default_expiration=30
+

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/sipp/register-noauth.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/sipp/register-noauth.xml?view=auto&rev=4014
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/sipp/register-noauth.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/sipp/register-noauth.xml Wed Aug 14 10:41:29 2013
@@ -1,0 +1,31 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Basic Sipstone UAC">
+    <send retrans="500">
+        <![CDATA[
+
+        REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
+        Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+        From: "[service]" <sip:[service]@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+        To: "[service]" <sip:[service]@[remote_ip]:[remote_port]>
+        Call-ID: [call_id]
+        CSeq: 1 REGISTER
+        Max-Forwards: 70
+        Contact: <sip:[service]-office@[local_ip]:[local_port]>;transport=[transport];expires=120
+	Subject: Performance Test
+        Expires: 300
+        Content-Length: 0
+
+        ]]>
+    </send>
+
+    <recv response="200" rtd="true">
+        <action>
+		<ereg regexp="sip:((alice|bob)-office at 127.0.0.1:506[1-2]>;expires=(60|5[5-9])|(charlie|carol)-office at .::1.:506[3-4]>;expires=(60|5[5-9]))" search_in="hdr" header="Contact:" check_it="true" assign_to="1" />
+	</action>
+    </recv>
+
+    <Reference variables="1" />
+
+</scenario>

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/sipp/register-noauth.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/sipp/register-noauth.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/sipp/register-noauth.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/test-config.yaml?view=auto&rev=4014
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/test-config.yaml Wed Aug 14 10:41:29 2013
@@ -1,0 +1,102 @@
+testinfo:
+    summary:     'Register a contact to test the maximum_expiration option'
+    description: |
+        'Using all combinations of IPv4/IPv6 and UDP/TCP, run SIPp scenarios
+         that register a contact where the Expires header and the expires
+         parameter on the contact are higher than the value set for the
+         maximum_expiration configuration option in pjsip.conf. This is to
+         ensure the value of maximum_expiration is used.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'sipp.SIPpTestCase'
+    modules:
+        -
+            config-section: 'ami-config'
+            typename: 'ami.AMIEventModule'
+
+test-object-config:
+    fail-on-any: False
+    reactor-timeout: 10
+    test-iterations:
+        -
+            scenarios:
+                # IPv4 & UDP
+                - { 'key-args': {'scenario': 'register-noauth.xml', '-i': '127.0.0.1', '-p': '5061', '-s': 'alice'} }
+
+                # IPv4 & TCP
+                - { 'key-args': {'scenario': 'register-noauth.xml', '-i': '127.0.0.1', '-p': '5062', '-t': 't1', '-s': 'bob'} }
+
+                # IPv6 & UDP
+                - { 'key-args': {'scenario': 'register-noauth.xml', 'target': '[::1]', '-i': '[::1]', '-p': '5063', '-s': 'charlie'} }
+
+                # IPv6 & TCP
+                - { 'key-args': {'scenario': 'register-noauth.xml', 'target': '[::1]', '-i': '[::1]', '-p': '5064', '-t': 't1', '-s': 'carol'} }
+
+ami-config:
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'TestEvent'
+                State: 'AOR_CONTACT_ADDED'
+                AOR: 'alice'
+        requirements:
+            match:
+                Contact: 'sip:alice-office at 127.0.0.1:5061'
+                Expiration: '60'
+        count: '1'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'TestEvent'
+                State: 'AOR_CONTACT_ADDED'
+                AOR: 'bob'
+        requirements:
+            match:
+                Contact: 'sip:bob-office at 127.0.0.1:5062'
+                Expiration: '60'
+        count: '1'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'TestEvent'
+                State: 'AOR_CONTACT_ADDED'
+                AOR: 'charlie'
+        requirements:
+            match:
+                Contact: 'sip:charlie-office@\[::1\]:5063'
+                Expiration: '60'
+        count: '1'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'TestEvent'
+                State: 'AOR_CONTACT_ADDED'
+                AOR: 'carol'
+        requirements:
+            match:
+                Contact: 'sip:carol-office@\[::1\]:5064'
+                Expiration: '60'
+        count: '1'
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - buildoption: 'TEST_FRAMEWORK'
+        - python: 'twisted'
+        - python: 'starpy'
+        - sipp:
+            version: 'v3.3'
+        - asterisk: 'res_pjsip'
+    tags:
+        - pjsip
+

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/maximum_expiration/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/configs/ast1/pjsip.conf?view=auto&rev=4014
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/configs/ast1/pjsip.conf Wed Aug 14 10:41:29 2013
@@ -1,0 +1,61 @@
+[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](!)
+type=endpoint
+context=default
+allow=!all,ulaw
+
+[alice](endpoint-template)
+aors=alice
+
+[alice]
+type=aor
+max_contacts=1
+minimum_expiration=30
+default_expiration=60
+
+[bob](endpoint-template)
+aors=bob
+
+[bob]
+type=aor
+max_contacts=1
+minimum_expiration=30
+default_expiration=60
+
+[charlie](endpoint-template)
+aors=charlie
+
+[charlie]
+type=aor
+max_contacts=1
+minimum_expiration=30
+default_expiration=60
+
+[carol](endpoint-template)
+aors=carol
+
+[carol]
+type=aor
+max_contacts=1
+minimum_expiration=30
+default_expiration=60
+

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/sipp/register-noauth.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/sipp/register-noauth.xml?view=auto&rev=4014
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/sipp/register-noauth.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/sipp/register-noauth.xml Wed Aug 14 10:41:29 2013
@@ -1,0 +1,31 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Basic Sipstone UAC">
+    <send retrans="500">
+        <![CDATA[
+
+        REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
+        Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+        From: "[service]" <sip:[service]@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+        To: "[service]" <sip:[service]@[remote_ip]:[remote_port]>
+        Call-ID: [call_id]
+        CSeq: 1 REGISTER
+        Max-Forwards: 70
+        Contact: <sip:[service]-office@[local_ip]:[local_port]>;transport=[transport];expires=15
+	Subject: Performance Test
+        Expires: 20
+        Content-Length: 0
+
+        ]]>
+    </send>
+
+    <recv response="200" rtd="true">
+        <action>
+		<ereg regexp="sip:((alice|bob)-office at 127.0.0.1:506[1-2]>;expires=(30|2[5-9])|(charlie|carol)-office at .::1.:506[3-4]>;expires=(30|2[5-9]))" search_in="hdr" header="Contact:" check_it="true" assign_to="1" />
+	</action>
+    </recv>
+
+    <Reference variables="1" />
+
+</scenario>

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/sipp/register-noauth.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/sipp/register-noauth.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/sipp/register-noauth.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/test-config.yaml?view=auto&rev=4014
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/test-config.yaml Wed Aug 14 10:41:29 2013
@@ -1,0 +1,102 @@
+testinfo:
+    summary:     'Register a contact to test the minimum_expiration option'
+    description: |
+        'Using all combinations of IPv4/IPv6 and UDP/TCP, run SIPp scenarios
+         that register a contact where the Expires header and the expires
+         parameter on the contact are lower than the value set for the
+         minimum_expiration configuration option in pjsip.conf. This is to
+         ensure the value of minimum_expiration is used.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'sipp.SIPpTestCase'
+    modules:
+        -
+            config-section: 'ami-config'
+            typename: 'ami.AMIEventModule'
+
+test-object-config:
+    fail-on-any: False
+    reactor-timeout: 10
+    test-iterations:
+        -
+            scenarios:
+                # IPv4 & UDP
+                - { 'key-args': {'scenario': 'register-noauth.xml', '-i': '127.0.0.1', '-p': '5061', '-s': 'alice'} }
+
+                # IPv4 & TCP
+                - { 'key-args': {'scenario': 'register-noauth.xml', '-i': '127.0.0.1', '-p': '5062', '-t': 't1', '-s': 'bob'} }
+
+                # IPv6 & UDP
+                - { 'key-args': {'scenario': 'register-noauth.xml', 'target': '[::1]', '-i': '[::1]', '-p': '5063', '-s': 'charlie'} }
+
+                # IPv6 & TCP
+                - { 'key-args': {'scenario': 'register-noauth.xml', 'target': '[::1]', '-i': '[::1]', '-p': '5064', '-t': 't1', '-s': 'carol'} }
+
+ami-config:
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'TestEvent'
+                State: 'AOR_CONTACT_ADDED'
+                AOR: 'alice'
+        requirements:
+            match:
+                Contact: 'sip:alice-office at 127.0.0.1:5061'
+                Expiration: '30'
+        count: '1'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'TestEvent'
+                State: 'AOR_CONTACT_ADDED'
+                AOR: 'bob'
+        requirements:
+            match:
+                Contact: 'sip:bob-office at 127.0.0.1:5062'
+                Expiration: '30'
+        count: '1'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'TestEvent'
+                State: 'AOR_CONTACT_ADDED'
+                AOR: 'charlie'
+        requirements:
+            match:
+                Contact: 'sip:charlie-office@\[::1\]:5063'
+                Expiration: '30'
+        count: '1'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'TestEvent'
+                State: 'AOR_CONTACT_ADDED'
+                AOR: 'carol'
+        requirements:
+            match:
+                Contact: 'sip:carol-office@\[::1\]:5064'
+                Expiration: '30'
+        count: '1'
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - buildoption: 'TEST_FRAMEWORK'
+        - python: 'twisted'
+        - python: 'starpy'
+        - sipp:
+            version: 'v3.3'
+        - asterisk: 'res_pjsip'
+    tags:
+        - pjsip
+

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/minimum_expiration/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/configs/ast1/pjsip.conf?view=auto&rev=4014
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/configs/ast1/pjsip.conf Wed Aug 14 10:41:29 2013
@@ -1,0 +1,57 @@
+[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](!)
+type=endpoint
+context=default
+allow=!all,ulaw
+
+[alice](endpoint-template)
+aors=alice
+
+[alice]
+type=aor
+max_contacts=3
+remove_existing=yes
+
+[bob](endpoint-template)
+aors=bob
+
+[bob]
+type=aor
+max_contacts=3
+remove_existing=yes
+
+[charlie](endpoint-template)
+aors=charlie
+
+[charlie]
+type=aor
+max_contacts=3
+remove_existing=yes
+
+[carol](endpoint-template)
+aors=carol
+
+[carol]
+type=aor
+max_contacts=3
+remove_existing=yes
+

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/sipp/register-noauth-ipv4.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/sipp/register-noauth-ipv4.xml?view=auto&rev=4014
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/sipp/register-noauth-ipv4.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/registration/inbound/nominal/config_options/remove_existing/sipp/register-noauth-ipv4.xml Wed Aug 14 10:41:29 2013
@@ -1,0 +1,72 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Basic Sipstone UAC">
+    <send retrans="500">
+        <![CDATA[
+
+        REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
+        Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+        From: "[service]" <sip:[service]@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+        To: "[service]" <sip:[service]@[remote_ip]:[remote_port]>
+        Call-ID: [call_id]
+        CSeq: 1 REGISTER
+        Max-Forwards: 70
+	Contact: "[service]" <sip:[service]-office at 127.0.0.2:5062>;transport=[transport]
+	Contact: "[service]" <sip:[service]-home at 127.0.0.3:5063>;transport=[transport]
+        Subject: Performance Test
+	Expires: 20
+        Content-Length: 0
+
+        ]]>
+    </send>
+
+    <recv response="200" rtd="true">
+        <action>
+            <!--
+	    Ensure the received expires parameters is ~60 as no expiration config options are set with a 5 second tolerance
+            -->
+	    <ereg regexp="Contact: <sip:(alice|bob)-office at 127.0.0.2:5062>;expires=(60|5[5-9])" search_in="msg" check_it="true" assign_to="1"/>
+	    <ereg regexp="Contact: <sip:(alice|bob)-home at 127.0.0.3:5063>;expires=(60|5[5-9])" search_in="msg" check_it="true" assign_to="2" />
+        </action>
+    </recv>
+
+    <pause milliseconds="1000"/>
+
+    <send retrans="500">
+        <![CDATA[
+
+        REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
+        Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+        From: "[service]" <sip:[service]@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+        To: "[service]" <sip:[service]@[remote_ip]:[remote_port]>
+        Call-ID: [call_id]
+        CSeq: 1 REGISTER
+        Max-Forwards: 70
+	Contact: "[service]" <sip:[service]-mobile at 127.0.0.4:5064>;transport=[transport]
+	Contact: "[service]" <sip:[service]-pc at 127.0.0.5:5065>;transport=[transport]
+        Subject: Performance Test
+	Expires: 20
+        Content-Length: 0
+
+        ]]>
+    </send>
+
+    <recv response="200" rtd="true">

[... 5486 lines stripped ...]



More information about the asterisk-commits mailing list