[asterisk-commits] file: testsuite/asterisk/trunk r4605 - in /asterisk/trunk/tests/channels/pjsi...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Jan 25 20:04:27 CST 2014
Author: file
Date: Sat Jan 25 20:04:21 2014
New Revision: 4605
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4605
Log:
Add a test for chan_pjsip which tests requested capabilities support.
(issue ASTERISK-23082)
Reported by: xrobau
Review: https://reviewboard.asterisk.org/r/3139/
Added:
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/extensions.conf (with props)
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/extensions.conf (with props)
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/test-config.yaml (with props)
Modified:
asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/tests.yaml
Added: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/extensions.conf?view=auto&rev=4605
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/extensions.conf Sat Jan 25 20:04:21 2014
@@ -1,0 +1,3 @@
+[default]
+exten => bob-ipv4-udp,1,Dial(PJSIP/test_call at bob-ipv4-udp)
+
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/pjsip.conf?view=auto&rev=4605
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/pjsip.conf Sat Jan 25 20:04:21 2014
@@ -1,0 +1,35 @@
+[local-transport-template](!)
+type=transport
+bind=127.0.0.1:5060
+
+[local-transport-udp](local-transport-template)
+protocol=udp
+
+[endpoint-template-ipv4](!)
+type=endpoint
+context=default
+disallow=all
+allow=g722
+allow=ulaw
+media_address=127.0.0.1
+direct_media=no
+
+;=========== Alice ===========
+;== IPv4 & UDP ==
+[alice-ipv4-udp](endpoint-template-ipv4)
+transport=local-transport-udp
+
+;=============================
+
+;=========== 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
+
+;===========================
+
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/extensions.conf?view=auto&rev=4605
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/extensions.conf Sat Jan 25 20:04:21 2014
@@ -1,0 +1,16 @@
+[default]
+exten => start,1,Answer()
+same => n,BackgroundDetect(tt-weasels,1,20,,5000)
+same => n,NoOp(Talking was NOT detected! Trying again)
+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,Playback(tt-weasels)
+same => n,Wait(2)
+same => n,Hangup()
+
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/pjsip.conf?view=auto&rev=4605
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/pjsip.conf Sat Jan 25 20:04:21 2014
@@ -1,0 +1,25 @@
+[local-transport-template](!)
+type=transport
+bind=127.0.0.1:5061
+
+[local-transport-udp](local-transport-template)
+protocol=udp
+
+[endpoint-template-ipv4](!)
+type=endpoint
+context=default
+disallow=all
+allow=g722
+allow=ulaw
+media_address=127.0.0.1
+direct_media=no
+
+;== IPv4 & UDP ==
+[uut-ipv4-udp](endpoint-template-ipv4)
+transport=local-transport-udp
+aors=uut-ipv4-udp
+from_user=alice-ipv4-udp
+
+[uut-ipv4-udp]
+type=aor
+contact=sip:uut-ipv4-udp at 127.0.0.1:5060\;transport=udp
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast2/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/extensions.conf?view=auto&rev=4605
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/extensions.conf Sat Jan 25 20:04:21 2014
@@ -1,0 +1,16 @@
+[default]
+exten => test_call,1,Answer()
+same => n,BackgroundDetect(tt-weasels,1,20,,5000)
+same => n,NoOp(Talking was NOT detected! Trying again)
+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,Playback(tt-weasels)
+same => n,Wait(10000) ; Wait for Alice to hang up
+same => n,Hangup()
+
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/pjsip.conf?view=auto&rev=4605
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/pjsip.conf Sat Jan 25 20:04:21 2014
@@ -1,0 +1,17 @@
+[local-transport-template](!)
+type=transport
+bind=127.0.0.1:5062
+
+[local-transport-udp](local-transport-template)
+protocol=udp
+
+[endpoint-template-ipv4](!)
+type=endpoint
+context=default
+disallow=all
+allow=ulaw
+media_address=127.0.0.1
+direct_media=no
+
+[alice-ipv4-udp](endpoint-template-ipv4)
+transport=local-transport-udp
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/configs/ast3/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/test-config.yaml?view=auto&rev=4605
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/test-config.yaml Sat Jan 25 20:04:21 2014
@@ -1,0 +1,76 @@
+testinfo:
+ summary: 'Tests basic two party calls with incoming leg of g722 and outgoing leg of ulaw'
+ description: |
+ 'Run three instances of Asterisk, "alice", "uut", and "bob" to test
+ two party calls. Both alice and bob send audio to each other while
+ both also listen for audio. Alice then initiates the hang. This
+ ensures that both alice and bob receive audio.'
+
+test-modules:
+ test-object:
+ config-section: test-object-config
+ typename: 'test_case.TestCaseModule'
+ modules:
+ -
+ config-section: originator-config-ipv4-udp
+ typename: 'pluggable_modules.Originator'
+ -
+ config-section: 'ami-config'
+ typename: 'ami.AMIEventModule'
+
+test-object-config:
+ asterisk-instances: 3
+ connect-ami: True
+
+originator-config-ipv4-udp:
+ trigger: 'ami_connect'
+ ignore-originate-failure: 'no'
+ id: '1'
+ channel: 'PJSIP/bob-ipv4-udp at uut-ipv4-udp'
+ context: 'default'
+ exten: 'start'
+ priority: '1'
+ async: 'True'
+
+ami-config:
+ # Alice events
+ -
+ type: 'headermatch'
+ id: '1'
+ conditions:
+ match:
+ Event: 'UserEvent'
+ UserEvent: 'TalkDetect'
+ requirements:
+ match:
+ result: 'pass'
+ count: '1'
+ -
+ type: 'headermatch'
+ id: '1'
+ conditions:
+ match:
+ Event: 'SoftHangupRequest'
+ Channel: 'PJSIP/uut-*'
+ requirements:
+ match:
+ Cause: '16'
+ count: '1'
+ -
+ type: 'headermatch'
+ id: '1'
+ conditions:
+ match:
+ Event: 'Hangup'
+ Channel: 'PJSIP/uut-*'
+ requirements:
+ match:
+ Cause: '16'
+ count: '1'
+
+properties:
+ minversion: '12.0.0'
+ dependencies:
+ - asterisk : 'res_pjsip'
+ tags:
+ - pjsip
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/requested_capabilities/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/tests.yaml?view=diff&rev=4605&r1=4604&r2=4605
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/tests.yaml (original)
+++ asterisk/trunk/tests/channels/pjsip/basic_calls/two_parties/nominal/alice_initiated/tests.yaml Sat Jan 25 20:04:21 2014
@@ -1,3 +1,4 @@
tests:
- test: 'alice_hangs_up'
- test: 'bob_hangs_up'
+ - test: 'requested_capabilities'
More information about the asterisk-commits
mailing list