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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 2 21:10:12 CDT 2013


Author: jbigelow
Date: Mon Sep  2 21:10:04 2013
New Revision: 4099

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4099
Log:
Add nominal outgoing and two-party tests for pjsip

This adds tests that cover nominal outgoing and two-party tests. It covers
tests 1 and 2 of the nominal outgoing tests and tests 1 and 2 of the nominal
two-party call tests initiated by Alice as listed on the test plan page of the
wiki. Each test has iterations for IPv4/IPv6 and UDP/TCP.

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

(closes issue ASTERISK-22283)
(closes issue ASTERISK-22285)


Added:
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast2/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast2/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast2/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast2/
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast2/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast2/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast2/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast2/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast2/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast3/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast3/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast3/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/configs/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/configs/ast2/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/configs/ast2/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/configs/ast2/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/configs/ast3/
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/configs/ast3/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/configs/ast3/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/bob_hangs_up/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/tests.yaml   (with props)
Modified:
    asterisk/trunk/tests/channels/pjsip/basic_calls/tests.yaml

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast1/extensions.conf?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast1/extensions.conf Mon Sep  2 21:10:04 2013
@@ -1,0 +1,5 @@
+[default]
+exten => echo,1,Answer()
+same => n,Echo()
+same => n,Hangup()
+

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

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

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

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast1/pjsip.conf?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast1/pjsip.conf Mon Sep  2 21:10:04 2013
@@ -1,0 +1,77 @@
+[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/nominal/echo/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast2/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast2/extensions.conf?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast2/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast2/extensions.conf Mon Sep  2 21:10:04 2013
@@ -1,0 +1,12 @@
+[default]
+exten => _bob-ipv[46]-.,1,Answer()
+same => n,BackgroundDetect(tt-weasels,1,20,,5000)
+same => n,NoOp(Talking was NOT detected!)
+same => n,UserEvent(TalkDetect, result: fail)
+same => n,Hangup()
+
+; If talking is detected then it jumps here
+exten => talk,1,NoOp(Talking was detected!)
+same => n,UserEvent(TalkDetect, result: pass)
+same => n,Hangup()
+

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

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

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

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast2/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast2/pjsip.conf?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast2/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/configs/ast2/pjsip.conf Mon Sep  2 21:10:04 2013
@@ -1,0 +1,47 @@
+[local-transport-template](!)
+type=transport
+bind=127.0.0.1:5062
+
+[local-transport6-template](!)
+type=transport
+bind=[::1]:5062
+
+[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
+
+[uut-ipv4-udp](endpoint-template-ipv4)
+transport=local-transport-udp
+
+[uut-ipv4-tcp](endpoint-template-ipv4)
+transport=local-transport-tcp
+
+[uut-ipv6-udp](endpoint-template-ipv6)
+transport=local-transport-udp6
+
+[uut-ipv6-tcp](endpoint-template-ipv6)
+transport=local-transport-tcp6
+

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

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

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

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/test-config.yaml?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/echo/test-config.yaml Mon Sep  2 21:10:04 2013
@@ -1,0 +1,139 @@
+testinfo:
+    summary:     'Tests basic outgoing calls verifying audio in both directions'
+    description: |
+        'Run two instances of Asterisk, "uut" and "bob" to test outgoing calls
+         with audio using pjsip. Originate a call from the uut to bob with
+         directing the answered call to the Echo() application. Bob answers and
+         sends audio while listening for audio received from the uut. Bob then
+         hangs up. This ensures that bob receives the echoed audio from the
+         uut. This is performed using ipv4/ipv6 & udp/tcp.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'TestCase.TestCaseModule'
+    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:
+    asterisk-instances: 2
+    connect-ami: True
+
+originator-config-ipv4-udp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'no'
+    id: '0'
+    channel: 'PJSIP/bob-ipv4-udp'
+    context: 'default'
+    exten: 'echo'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv4-tcp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'no'
+    id: '0'
+    channel: 'PJSIP/bob-ipv4-tcp'
+    context: 'default'
+    exten: 'echo'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv6-udp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'no'
+    id: '0'
+    channel: 'PJSIP/bob-ipv6-udp'
+    context: 'default'
+    exten: 'echo'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv6-tcp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'no'
+    id: '0'
+    channel: 'PJSIP/bob-ipv6-tcp'
+    context: 'default'
+    exten: 'echo'
+    priority: '1'
+    async: 'True'
+
+ami-config:
+    # Bob events
+    -
+        type: 'headermatch'
+        id: '1'
+        conditions:
+            match:
+                Event: 'UserEvent'
+                UserEvent: 'TalkDetect'
+        requirements:
+            match:
+                result: 'pass'
+        count: '4'
+    -
+        type: 'headermatch'
+        id: '1'
+        conditions:
+            match:
+                Event: 'SoftHangupRequest'
+                Channel: 'PJSIP/uut-*'
+        requirements:
+            match:
+                Cause: '16'
+        count: '4'
+    -
+        type: 'headermatch'
+        id: '1'
+        conditions:
+            match:
+                Event: 'Hangup'
+                Channel: 'PJSIP/uut-*'
+        requirements:
+            match:
+                Cause: '16'
+        count: '4'
+    # UUT events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'HangupRequest'
+        requirements:
+            match:
+                Channel: 'PJSIP/bob-*'
+        count: '4'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'Hangup'
+                Channel: 'PJSIP/bob-*'
+        requirements:
+            match:
+                Cause: '16'
+        count: '4'
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - asterisk : 'res_pjsip'
+    tags:
+        - pjsip

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

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

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

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast1/extensions.conf?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast1/extensions.conf Mon Sep  2 21:10:04 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/nominal/playback/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast1/pjsip.conf?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast1/pjsip.conf Mon Sep  2 21:10:04 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/nominal/playback/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast2/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast2/extensions.conf?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast2/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast2/extensions.conf Mon Sep  2 21:10:04 2013
@@ -1,0 +1,13 @@
+[default]
+exten => _bob-ipv[46]-.,1,Answer()
+same => n,BackgroundDetect(silence/4,1,20,,5000)
+same => n,NoOp(Talking was NOT detected!)
+same => n,UserEvent(TalkDetect, result: fail)
+same => n,Hangup()
+
+; If talking is detected then it jumps here
+exten => talk,1,NoOp(Talking was detected!)
+same => n,UserEvent(TalkDetect, result: pass)
+same => n,Wait(10000)	; Wait for UUT to hang up
+same => n,Hangup()
+

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

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

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

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast2/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast2/pjsip.conf?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast2/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/configs/ast2/pjsip.conf Mon Sep  2 21:10:04 2013
@@ -1,0 +1,47 @@
+[local-transport-template](!)
+type=transport
+bind=127.0.0.1:5062
+
+[local-transport6-template](!)
+type=transport
+bind=[::1]:5062
+
+[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
+
+[uut-ipv4-udp](endpoint-template-ipv4)
+transport=local-transport-udp
+
+[uut-ipv4-tcp](endpoint-template-ipv4)
+transport=local-transport-tcp
+
+[uut-ipv6-udp](endpoint-template-ipv6)
+transport=local-transport-udp6
+
+[uut-ipv6-tcp](endpoint-template-ipv6)
+transport=local-transport-tcp6
+

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

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

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

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/test-config.yaml?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/playback/test-config.yaml Mon Sep  2 21:10:04 2013
@@ -1,0 +1,140 @@
+testinfo:
+    summary:     'Tests basic outgoing calls verifying audio in one direction'
+    description: |
+        'Run two instances of Asterisk, "uut" and "bob" to test outgoing calls
+         with audio using pjsip. Originate a call from the uut to bob with
+         directing the answered call to the Playback() application. Bob answers
+         and listens for audio received from the uut. The uut then hangs up.
+         This ensures that bob receives the audio from the uut. This is
+         performed using ipv4/ipv6 & udp/tcp.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'TestCase.TestCaseModule'
+    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:
+    asterisk-instances: 2
+    connect-ami: True
+
+originator-config-ipv4-udp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'no'
+    id: '0'
+    channel: 'PJSIP/bob-ipv4-udp'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv4-tcp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'no'
+    id: '0'
+    channel: 'PJSIP/bob-ipv4-tcp'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv6-udp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'no'
+    id: '0'
+    channel: 'PJSIP/bob-ipv6-udp'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+originator-config-ipv6-tcp:
+    trigger: 'ami_connect'
+    ignore-originate-failure: 'no'
+    id: '0'
+    channel: 'PJSIP/bob-ipv6-tcp'
+    context: 'default'
+    exten: 'playback'
+    priority: '1'
+    async: 'True'
+
+ami-config:
+    # Bob events
+    -
+        type: 'headermatch'
+        id: '1'
+        conditions:
+            match:
+                Event: 'UserEvent'
+                UserEvent: 'TalkDetect'
+        requirements:
+            match:
+                result: 'pass'
+        count: '4'
+    -
+        type: 'headermatch'
+        id: '1'
+        conditions:
+            match:
+                Event: 'HangupRequest'
+        requirements:
+            match:
+                Channel: 'PJSIP/uut-*'
+        count: '4'
+    -
+        type: 'headermatch'
+        id: '1'
+        conditions:
+            match:
+                Event: 'Hangup'
+                Channel: 'PJSIP/uut-*'
+        requirements:
+            match:
+                Cause: '16'
+        count: '4'
+    # UUT events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'SoftHangupRequest'
+                Channel: 'PJSIP/bob-*'
+        requirements:
+            match:
+                Cause: '16'
+        count: '4'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'Hangup'
+                Channel: 'PJSIP/bob-*'
+        requirements:
+            match:
+                Cause: '16'
+        count: '4'
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - asterisk : 'res_pjsip'
+    tags:
+        - pjsip
+

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

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

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

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/tests.yaml?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/tests.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/nominal/tests.yaml Mon Sep  2 21:10:04 2013
@@ -1,0 +1,3 @@
+tests:
+    - test: 'playback'
+    - test: 'echo'

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

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

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

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/tests.yaml?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/tests.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/tests.yaml Mon Sep  2 21:10:04 2013
@@ -1,0 +1,2 @@
+tests:
+    - dir: 'nominal'

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/tests.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

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

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/outgoing/tests.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: asterisk/trunk/tests/channels/pjsip/basic_calls/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/tests.yaml?view=diff&rev=4099&r1=4098&r2=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/tests.yaml (original)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/tests.yaml Mon Sep  2 21:10:04 2013
@@ -1,2 +1,4 @@
 tests:
     - dir: 'incoming'
+    - dir: 'outgoing'
+    - dir: 'two_parties'

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/extensions.conf?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/extensions.conf Mon Sep  2 21:10:04 2013
@@ -1,0 +1,6 @@
+[default]
+exten => bob-ipv4-udp,1,Dial(PJSIP/test_call at bob-ipv4-udp)
+exten => bob-ipv4-tcp,1,Dial(PJSIP/test_call at bob-ipv4-tcp)
+exten => bob-ipv6-udp,1,Dial(PJSIP/test_call at bob-ipv6-udp)
+exten => bob-ipv6-tcp,1,Dial(PJSIP/test_call at bob-ipv6-tcp)
+

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/pjsip.conf?view=auto&rev=4099
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/alice_hangs_up/configs/ast1/pjsip.conf Mon Sep  2 21:10:04 2013
@@ -1,0 +1,91 @@
+[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
+
+;=========== Alice ===========
+;== IPv4 & UDP ==
+[alice-ipv4-udp](endpoint-template-ipv4)
+transport=local-transport-udp
+
+;== IPv4 & TCP ==
+[alice-ipv4-tcp](endpoint-template-ipv4)
+transport=local-transport-tcp
+
+;== IPv6 & UDP ==
+[alice-ipv6-udp](endpoint-template-ipv6)
+transport=local-transport-udp6
+
+;== IPv6 & TCP ==
+[alice-ipv6-tcp](endpoint-template-ipv6)
+transport=local-transport-tcp6
+;=============================
+
+;=========== Bob ===========
+;== IPv4 & UDP ==
+[bob-ipv4-udp](endpoint-template-ipv4)
+transport=local-transport-udp
+aors=bob-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
+
+[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
+
+[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
+
+[bob-ipv6-tcp]
+type=aor
+contact=sip:bob-ipv6-tcp@[::1]:5062\;transport=tcp
+;===========================
+


[... 1005 lines stripped ...]



More information about the asterisk-commits mailing list