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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 9 17:18:57 CDT 2013


Author: jbigelow
Date: Mon Sep  9 17:18:51 2013
New Revision: 4137

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4137
Log:
Add off-nominal outgoing pjsip tests

This adds tests that cover off-nominal outgoing PJSIP tests. It covers all of
the off-nominal outgoing tests (1-5) as listed on the test plan page of the
wiki. Test 2 covers test 4 and therefore there are actually only four tests.
Each test has iterations for IPv4/IPv6 and UDP/TCP.

Review: https://reviewboard.asterisk.org/r/2813/

(closes issue ASTERISK-22284)


Added:
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/sipp/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/sipp/receive.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/sipp/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/sipp/receive.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/sipp/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/sipp/receive.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_is_busy/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_is_busy/configs/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_is_busy/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_is_busy/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_is_busy/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_is_busy/sipp/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_is_busy/sipp/receive.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_is_busy/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/tests.yaml   (with props)
Modified:
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/tests.yaml

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/extensions.conf?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/extensions.conf Mon Sep  9 17:18:51 2013
@@ -1,0 +1,23 @@
+[default]
+exten => bob-ipv4-udp,1,Dial(PJSIP/bob-ipv4-udp,2)
+same => n,UserEvent(DIALSTATUS, Result: ${DIALSTATUS})
+same => n,Hangup()
+
+exten => bob-ipv4-tcp,1,Dial(PJSIP/bob-ipv4-tcp,2)
+same => n,UserEvent(DIALSTATUS, Result: ${DIALSTATUS})
+same => n,Hangup()
+
+exten => bob-ipv6-udp,1,Dial(PJSIP/bob-ipv6-udp,2)
+same => n,UserEvent(DIALSTATUS, Result: ${DIALSTATUS})
+same => n,Hangup()
+
+exten => bob-ipv6-tcp,1,Dial(PJSIP/bob-ipv6-tcp,2)
+same => n,UserEvent(DIALSTATUS, Result: ${DIALSTATUS})
+same => n,Hangup()
+
+exten => playback,1,Answer()
+same => n,Wait(1)
+same => n,Playback(tt-weasels)
+same => n,Wait(2)
+same => n,Hangup()
+

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/pjsip.conf?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/pjsip.conf Mon Sep  9 17:18:51 2013
@@ -1,0 +1,78 @@
+[local-transport-template](!)
+type=transport
+bind=127.0.0.1:5060
+
+[local-transport6-template](!)
+type=transport
+bind=[::1]:5060
+
+[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,ulaw,alaw
+external_media_address=127.0.0.1
+direct_media=no
+
+[endpoint-template-ipv6](!)
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+external_media_address=[::1]
+direct_media=no
+rtp_ipv6=yes
+
+;== IPv4 & UDP ==
+[bob-ipv4-udp](endpoint-template-ipv4)
+transport=local-transport-udp
+aors=bob-ipv4-udp
+fromuser=uut-ipv4-udp
+
+[bob-ipv4-udp]
+type=aor
+contact=sip:bob-ipv4-udp at 127.0.0.1:5062\;transport=udp
+
+;== IPv4 & TCP ==
+[bob-ipv4-tcp](endpoint-template-ipv4)
+transport=local-transport-tcp
+aors=bob-ipv4-tcp
+fromuser=uut-ipv4-tcp
+
+[bob-ipv4-tcp]
+type=aor
+contact=sip:bob-ipv4-tcp at 127.0.0.1:5062\;transport=tcp
+;================
+
+;== IPv6 & UDP ==
+[bob-ipv6-udp](endpoint-template-ipv6)
+transport=local-transport-udp6
+aors=bob-ipv6-udp
+fromuser=uut-ipv6-udp
+
+[bob-ipv6-udp]
+type=aor
+contact=sip:bob-ipv6-udp@[::1]:5062\;transport=udp
+;================
+
+;== IPv6 & TCP ==
+[bob-ipv6-tcp](endpoint-template-ipv6)
+transport=local-transport-tcp6
+aors=bob-ipv6-tcp
+fromuser=uut-ipv6-tcp
+
+[bob-ipv6-tcp]
+type=aor
+contact=sip:bob-ipv6-tcp@[::1]:5062\;transport=tcp
+;================
+

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/sipp/receive.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/sipp/receive.xml?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/sipp/receive.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/sipp/receive.xml Mon Sep  9 17:18:51 2013
@@ -1,0 +1,88 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Receive call but do not answer">
+  <recv request="INVITE" crlf="true">
+      <!-- Save the Cseq. We'll need it when we send our 487 -->
+      <action>
+          <ereg regexp=".*"
+              header="CSeq:"
+              search_in="hdr"
+              check_it="true"
+              assign_to="cseq_invite"/>
+          </action>
+  </recv>
+
+  <send>
+    <![CDATA[
+
+      SIP/2.0 100 Trying
+      [last_Via:]
+      [last_From:]
+      [last_To:]
+      [last_Call-ID:]
+      [last_CSeq:]
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <send>
+    <![CDATA[
+
+      SIP/2.0 180 Ringing
+      [last_Via:]
+      [last_From:]
+      [last_To:];tag=[pid]SIPpTag01[call_number]
+      [last_Call-ID:]
+      [last_CSeq:]
+      Contact: <sip:[service]@[local_ip]:[local_port];transport=[transport]>
+      Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REGISTER, REFER
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <recv request="CANCEL">
+  </recv>
+
+  <send>
+    <![CDATA[
+
+      SIP/2.0 200 OK
+      [last_Via:]
+      [last_From:]
+      [last_To:];tag=[pid]SIPpTag01[call_number]
+      [last_Call-ID:]
+      [last_CSeq:]
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <send retrans="500">
+    <![CDATA[
+
+      SIP/2.0 487 Request Terminated
+      [last_Via:]
+      [last_From:]
+      [last_To:];tag=[pid]SIPpTag01[call_number]
+      [last_Call-ID:]
+      Cseq:[$cseq_invite]
+      Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REGISTER, REFER
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <recv request="ACK">
+  </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/basic_calls/outgoing/off-nominal/bob_does_not_answer/sipp/receive.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/sipp/receive.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/sipp/receive.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/test-config.yaml?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/test-config.yaml Mon Sep  9 17:18:51 2013
@@ -1,0 +1,102 @@
+testinfo:
+    summary:     'Ensure that calls are torn down after dial timeout is reached'
+    description: |
+        'Run one instance of Asterisk ("UUT") and originate an outgoing call to
+         SIPp ("Bob"). Bob responds with a 180 ringing but does not answer.
+         This ensures that Asterisk sends a CANCEL and sets the DIALSTATUS to
+         NOANSWER. This is performed using ipv4/ipv6 & udp/tcp.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'sipp.SIPpTestCase'
+    modules:
+        -
+            config-section: originator-config-ipv4-udp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: originator-config-ipv4-tcp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: originator-config-ipv6-udp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: originator-config-ipv6-tcp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: 'ami-config'
+            typename: 'ami.AMIEventModule'
+
+test-object-config:
+   fail-on-any: False
+   test-iterations:
+       -
+           scenarios:
+               - { 'key-args': {'scenario': 'receive.xml', '-i': '127.0.0.1', '-p': '5062', '-s': 'bob-ipv4-udp'} }
+               - { 'key-args': {'scenario': 'receive.xml', '-i': '127.0.0.1', '-p': '5062', '-t': 't1', '-s': 'bob-ipv4-tcp'} }
+               - { 'target': '[::1]', 'key-args': {'scenario': 'receive.xml', '-i': '[::1]', '-p': '5062', '-s': 'bob-ipv6-udp'} }
+               - { 'target': '[::1]', 'key-args': {'scenario': 'receive.xml', '-i': '[::1]', '-p': '5062', '-t': 't1', '-s': 'bob-ipv6-tcp'} }
+
+originator-config-ipv4-udp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'yes'
+    id: '0'
+    channel: 'local/bob-ipv4-udp at default'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv4-tcp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'yes'
+    id: '0'
+    channel: 'local/bob-ipv4-tcp at default'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv6-udp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'yes'
+    id: '0'
+    channel: 'local/bob-ipv6-udp at default'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv6-tcp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'yes'
+    id: '0'
+    channel: 'local/bob-ipv6-tcp at default'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+ami-config:
+    # UUT events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'UserEvent'
+                UserEvent: 'DIALSTATUS'
+        requirements:
+            match:
+                Result: 'NOANSWER'
+        count: '4'
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - sipp :
+            version : 'v3.3'
+        - asterisk : 'res_pjsip'
+    tags:
+        - pjsip
+

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/extensions.conf?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/extensions.conf Mon Sep  9 17:18:51 2013
@@ -1,0 +1,14 @@
+[default]
+exten => bob-ipv4-udp,1,Dial(PJSIP/bob-ipv4-udp)
+exten => bob-ipv4-tcp,1,Dial(PJSIP/bob-ipv4-tcp)
+exten => bob-ipv6-udp,1,Dial(PJSIP/bob-ipv6-udp)
+exten => bob-ipv6-tcp,1,Dial(PJSIP/bob-ipv6-tcp)
+
+exten => playback,1,Answer()
+same => n,Wait(1)
+same => n,Playback(tt-weasels)
+same => n,Wait(2)
+same => n,Hangup()
+
+exten => h,1,UserEvent(DIALSTATUS, Result: ${DIALSTATUS})
+

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/pjsip.conf?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/pjsip.conf Mon Sep  9 17:18:51 2013
@@ -1,0 +1,78 @@
+[local-transport-template](!)
+type=transport
+bind=127.0.0.1:5060
+
+[local-transport6-template](!)
+type=transport
+bind=[::1]:5060
+
+[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,ulaw,alaw
+external_media_address=127.0.0.1
+direct_media=no
+
+[endpoint-template-ipv6](!)
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+external_media_address=[::1]
+direct_media=no
+rtp_ipv6=yes
+
+;== IPv4 & UDP ==
+[bob-ipv4-udp](endpoint-template-ipv4)
+transport=local-transport-udp
+aors=bob-ipv4-udp
+fromuser=uut-ipv4-udp
+
+[bob-ipv4-udp]
+type=aor
+contact=sip:bob-ipv4-udp at 127.0.0.1:5062\;transport=udp
+
+;== IPv4 & TCP ==
+[bob-ipv4-tcp](endpoint-template-ipv4)
+transport=local-transport-tcp
+aors=bob-ipv4-tcp
+fromuser=uut-ipv4-tcp
+
+[bob-ipv4-tcp]
+type=aor
+contact=sip:bob-ipv4-tcp at 127.0.0.1:5062\;transport=tcp
+;================
+
+;== IPv6 & UDP ==
+[bob-ipv6-udp](endpoint-template-ipv6)
+transport=local-transport-udp6
+aors=bob-ipv6-udp
+fromuser=uut-ipv6-udp
+
+[bob-ipv6-udp]
+type=aor
+contact=sip:bob-ipv6-udp@[::1]:5062\;transport=udp
+;================
+
+;== IPv6 & TCP ==
+[bob-ipv6-tcp](endpoint-template-ipv6)
+transport=local-transport-tcp6
+aors=bob-ipv6-tcp
+fromuser=uut-ipv6-tcp
+
+[bob-ipv6-tcp]
+type=aor
+contact=sip:bob-ipv6-tcp@[::1]:5062\;transport=tcp
+;================
+

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/sipp/receive.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/sipp/receive.xml?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/sipp/receive.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/sipp/receive.xml Mon Sep  9 17:18:51 2013
@@ -1,0 +1,19 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Pretend we don't exist">
+
+  <recv request="INVITE" crlf="true">
+  </recv>
+
+  <!-- Pause to allow enough time for all retransmits to occur -->
+  <pause milliseconds="60000"/>
+
+  <!-- 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/basic_calls/outgoing/off-nominal/bob_does_not_exist/sipp/receive.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/sipp/receive.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/sipp/receive.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/test-config.yaml?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/test-config.yaml Mon Sep  9 17:18:51 2013
@@ -1,0 +1,147 @@
+testinfo:
+    summary:     'Tests that calls are torn down when no response is received'
+    description: |
+        'Run one instance of Asterisk ("UUT") and originate an outgoing call to
+         SIPp ("Bob"). Bob does not respond to the INVITE. This ensures that
+         Asterisk tears down the calls after the default value of timer B
+         expires. This is performed using ipv4/ipv6 & udp/tcp.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'sipp.SIPpTestCase'
+    modules:
+        -
+            config-section: originator-config-ipv4-udp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: originator-config-ipv4-tcp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: originator-config-ipv6-udp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: originator-config-ipv6-tcp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: 'ami-config'
+            typename: 'ami.AMIEventModule'
+
+test-object-config:
+   reactor-timeout: 60
+   fail-on-any: False
+   test-iterations:
+       -
+           scenarios:
+               - { 'key-args': {'scenario': 'receive.xml', '-i': '127.0.0.1', '-p': '5062', '-s': 'bob-ipv4-udp'} }
+               - { 'key-args': {'scenario': 'receive.xml', '-i': '127.0.0.1', '-p': '5062', '-t': 't1', '-s': 'bob-ipv4-tcp'} }
+               - { 'target': '[::1]', 'key-args': {'scenario': 'receive.xml', '-i': '[::1]', '-p': '5062', '-s': 'bob-ipv6-udp'} }
+               - { 'target': '[::1]', 'key-args': {'scenario': 'receive.xml', '-i': '[::1]', '-p': '5062', '-t': 't1', '-s': 'bob-ipv6-tcp'} }
+
+originator-config-ipv4-udp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'yes'
+    id: '0'
+    channel: 'local/bob-ipv4-udp at default'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv4-tcp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'yes'
+    id: '0'
+    channel: 'local/bob-ipv4-tcp at default'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv6-udp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'yes'
+    id: '0'
+    channel: 'local/bob-ipv6-udp at default'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv6-tcp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'yes'
+    id: '0'
+    channel: 'local/bob-ipv6-tcp at default'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+ami-config:
+    # UUT events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'UserEvent'
+                UserEvent: 'DIALSTATUS'
+        requirements:
+            match:
+                Result: 'CANCEL'
+        count: '4'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'SoftHangupRequest'
+                Channel: 'Local/bob-*'
+        requirements:
+            match:
+                Cause: '16'
+        count: '4'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'HangupRequest'
+                Channel: 'Local/bob-*'
+        requirements:
+            match:
+                Cause: '0'
+        count: '4'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'Hangup'
+                Channel: 'PJSIP/bob-*'
+        requirements:
+            match:
+                Cause: '0'
+        count: '4'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'Hangup'
+                Channel: 'Local/bob-*'
+        requirements:
+            match:
+                Cause: '0'
+        count: '8'
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - sipp :
+            version : 'v3.3'
+        - asterisk : 'res_pjsip'
+    tags:
+        - pjsip
+

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_does_not_exist/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/extensions.conf?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/extensions.conf Mon Sep  9 17:18:51 2013
@@ -1,0 +1,7 @@
+[default]
+exten => playback,1,Answer()
+same => n,Wait(1)
+same => n,Playback(tt-weasels)
+same => n,Wait(2)
+same => n,Hangup()
+

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/pjsip.conf?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/pjsip.conf Mon Sep  9 17:18:51 2013
@@ -1,0 +1,78 @@
+[local-transport-template](!)
+type=transport
+bind=127.0.0.1:5060
+
+[local-transport6-template](!)
+type=transport
+bind=[::1]:5060
+
+[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,ulaw,alaw
+external_media_address=127.0.0.1
+direct_media=no
+
+[endpoint-template-ipv6](!)
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+external_media_address=[::1]
+direct_media=no
+rtp_ipv6=yes
+
+;== IPv4 & UDP ==
+[bob-ipv4-udp](endpoint-template-ipv4)
+transport=local-transport-udp
+aors=bob-ipv4-udp
+fromuser=uut-ipv4-udp
+
+[bob-ipv4-udp]
+type=aor
+contact=sip:bob-ipv4-udp at 127.0.0.1:5062\;transport=udp
+
+;== IPv4 & TCP ==
+[bob-ipv4-tcp](endpoint-template-ipv4)
+transport=local-transport-tcp
+aors=bob-ipv4-tcp
+fromuser=uut-ipv4-tcp
+
+[bob-ipv4-tcp]
+type=aor
+contact=sip:bob-ipv4-tcp at 127.0.0.1:5062\;transport=tcp
+;================
+
+;== IPv6 & UDP ==
+[bob-ipv6-udp](endpoint-template-ipv6)
+transport=local-transport-udp6
+aors=bob-ipv6-udp
+fromuser=uut-ipv6-udp
+
+[bob-ipv6-udp]
+type=aor
+contact=sip:bob-ipv6-udp@[::1]:5062\;transport=udp
+;================
+
+;== IPv6 & TCP ==
+[bob-ipv6-tcp](endpoint-template-ipv6)
+transport=local-transport-tcp6
+aors=bob-ipv6-tcp
+fromuser=uut-ipv6-tcp
+
+[bob-ipv6-tcp]
+type=aor
+contact=sip:bob-ipv6-tcp@[::1]:5062\;transport=tcp
+;================
+

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/sipp/receive.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/sipp/receive.xml?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/sipp/receive.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/sipp/receive.xml Mon Sep  9 17:18:51 2013
@@ -1,0 +1,76 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Answer with incompatible codec">
+  <recv request="INVITE" crlf="true">
+  </recv>
+
+  <send>
+    <![CDATA[
+
+      SIP/2.0 180 Ringing
+      [last_Via:]
+      [last_From:]
+      [last_To:];tag=[pid]SIPpTag01[call_number]
+      [last_Call-ID:]
+      [last_CSeq:]
+      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <send retrans="500">
+    <![CDATA[
+
+      SIP/2.0 200 OK
+      [last_Via:]
+      [last_From:]
+      [last_To:];tag=[pid]SIPpTag01[call_number]
+      [last_Call-ID:]
+      [last_CSeq:]
+      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+      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 18
+      a=rtpmap:18 G729/8000
+
+    ]]>
+  </send>
+
+  <recv request="ACK">
+  </recv>
+
+  <recv request="BYE">
+  </recv>
+
+  <send retrans="500">
+    <![CDATA[
+
+      SIP/2.0 200 OK
+      [last_Via:]
+      [last_From:]
+      [last_To:];tag=[pid]SIPpTag01[call_number]
+      [last_Call-ID:]
+      [last_CSeq:]
+      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+    ]]>
+  </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/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/sipp/receive.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/sipp/receive.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/sipp/receive.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/test-config.yaml?view=auto&rev=4137
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/off-nominal/bob_incompatible_codecs/test-config.yaml Mon Sep  9 17:18:51 2013
@@ -1,0 +1,105 @@
+testinfo:
+    summary:     'Ensure that Asterisk hangs up upon answer with incompatible codecs'
+    description: |
+        'Run one instance of Asterisk ("UUT") and originate an outgoing call to
+         SIPp ("Bob"). Bob answers with a codec that Asterisk is incompatible
+         with. This ensures that Asterisk sends a BYE after sending an ACK in
+         response to the 200 OK and that the hang up cause is 58 / "Bearer
+         capability not available". This is performed using ipv4/ipv6 &
+         udp/tcp.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'sipp.SIPpTestCase'
+    modules:
+        -
+            config-section: originator-config-ipv4-udp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: originator-config-ipv4-tcp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: originator-config-ipv6-udp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: originator-config-ipv6-tcp
+            typename: 'PluggableModules.Originator'
+        -
+            config-section: 'ami-config'
+            typename: 'ami.AMIEventModule'
+
+test-object-config:
+   fail-on-any: False
+   test-iterations:
+       -
+           scenarios:
+               - { 'key-args': {'scenario': 'receive.xml', '-i': '127.0.0.1', '-p': '5062'} }
+               - { 'key-args': {'scenario': 'receive.xml', '-i': '127.0.0.1', '-p': '5062', '-t': 't1'} }
+               - { 'target': '[::1]', 'key-args': {'scenario': 'receive.xml', '-i': '[::1]', '-p': '5062'} }
+               - { 'target': '[::1]', 'key-args': {'scenario': 'receive.xml', '-i': '[::1]', '-p': '5062', '-t': 't1'} }
+
+originator-config-ipv4-udp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'no'
+    id: '0'
+    channel: 'PJSIP/bob-ipv4-udp'

[... 430 lines stripped ...]



More information about the asterisk-commits mailing list