[asterisk-commits] rmudgett: branch rmudgett/cel_accountcode r5284 - in /asterisk/team/rmudgett/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jul 19 18:39:10 CDT 2014


Author: rmudgett
Date: Sat Jul 19 18:39:07 2014
New Revision: 5284

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=5284
Log:
testsuite: Add accountcode propagation tests dealing with app_dial.

Added:
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/extensions.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/pjsip.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/test-config.yaml   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/extensions.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/pjsip.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/test-config.yaml   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/extensions.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/pjsip.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/test-config.yaml   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/extensions.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/pjsip.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/test-config.yaml   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/extensions.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/pjsip.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/test-config.yaml   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/extensions.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/pjsip.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/test-config.yaml   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/tests.yaml   (with props)
Modified:
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/tests.yaml

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/extensions.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/extensions.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/extensions.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,10 @@
+[default]
+
+exten => alice,1,NoOp()
+ same => n,Dial(PJSIP/bob)
+ same => n,Hangup()
+
+exten => bob,1,NoOp()
+ same => n,Answer()
+ same => n,Wait(5)
+ same => n,Hangup()

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/pjsip.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/pjsip.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/pjsip.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,21 @@
+[local-transport]
+type=transport
+bind=127.0.0.1
+protocol=udp
+
+[bob]
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+transport=local-transport
+aors=bob
+accountcode=bob_config
+
+[bob-identify]
+type=identify
+endpoint=bob
+match=127.0.0.1
+
+[bob]
+type=aor
+contact=sip:bob at 127.0.0.1:5060\;transport=udp

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/test-config.yaml?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/test-config.yaml (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/test-config.yaml Sat Jul 19 18:39:07 2014
@@ -1,0 +1,66 @@
+testinfo:
+    summary:     'Test dial channel accountcode propagation (bob keeps accountcode)'
+    description: |
+        'The test checks that bob keeps his accountcode when alice does not have any.
+        1) alice does not have an accountcode or a peeraccount set
+        2) alice calls bob
+        3) bob has an accountcode when his channel is created
+        4) bob keeps his accountcode'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'test_case.SimpleTestCase'
+    modules:
+        -
+            config-section: ami-config
+            typename: 'ami.AMIEventModule'
+
+test-object-config:
+    spawn-after-hangup: True
+    test-iterations:
+        -
+            channel: 'Local/alice at default'
+            application: 'Echo'
+            async: True
+
+ami-config:
+    # Alice events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'Local/alice at default-.*'
+                EventName: 'BRIDGE_EXIT'
+        requirements:
+            match:
+                AccountCode: ''
+                PeerAccount: 'bob_config'
+        count: '1'
+    # Bob events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'PJSIP/bob-.*'
+                EventName: 'BRIDGE_EXIT'
+        requirements:
+            match:
+                AccountCode: 'bob_config'
+                PeerAccount: ''
+        count: '1'
+
+properties:
+    minversion: '13.0.0'
+    dependencies:
+        - asterisk : 'app_dial'
+        - asterisk : 'func_channel'
+        - asterisk : 'res_pjsip'
+    tags:
+        - pjsip
+        - accountcode
+

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_none/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/extensions.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/extensions.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/extensions.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,12 @@
+[default]
+
+exten => alice,1,NoOp()
+ same => n,Set(CHANNEL(accountcode)=alice_dialplan)
+ same => n,Set(CHANNEL(peeraccount)=peer_preset)
+ same => n,Dial(PJSIP/bob)
+ same => n,Hangup()
+
+exten => bob,1,NoOp()
+ same => n,Answer()
+ same => n,Wait(5)
+ same => n,Hangup()

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/pjsip.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/pjsip.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/pjsip.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,20 @@
+[local-transport]
+type=transport
+bind=127.0.0.1
+protocol=udp
+
+[bob]
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+transport=local-transport
+aors=bob
+
+[bob-identify]
+type=identify
+endpoint=bob
+match=127.0.0.1
+
+[bob]
+type=aor
+contact=sip:bob at 127.0.0.1:5060\;transport=udp

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/test-config.yaml?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/test-config.yaml (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/test-config.yaml Sat Jul 19 18:39:07 2014
@@ -1,0 +1,67 @@
+testinfo:
+    summary:     'Test dial channel accountcode propagation of peeraccount preset to bob'
+    description: |
+        'The test checks the peeraccount accountcode propagation to an
+        outgoing channel that does not have an accountcode.
+        1) alice has an accountcode and a peeraccount set
+        2) alice calls bob
+        3) bob does not have an accountcode when his channel is created
+        4) bob gets the preset peeraccount code of alice'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'test_case.SimpleTestCase'
+    modules:
+        -
+            config-section: ami-config
+            typename: 'ami.AMIEventModule'
+
+test-object-config:
+    spawn-after-hangup: True
+    test-iterations:
+        -
+            channel: 'Local/alice at default'
+            application: 'Echo'
+            async: True
+
+ami-config:
+    # Alice events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'Local/alice at default-.*'
+                EventName: 'BRIDGE_EXIT'
+        requirements:
+            match:
+                AccountCode: 'alice_dialplan'
+                PeerAccount: 'peer_preset'
+        count: '1'
+    # Bob events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'PJSIP/bob-.*'
+                EventName: 'BRIDGE_EXIT'
+        requirements:
+            match:
+                AccountCode: 'peer_preset'
+                PeerAccount: 'alice_dialplan'
+        count: '1'
+
+properties:
+    minversion: '13.0.0'
+    dependencies:
+        - asterisk : 'app_dial'
+        - asterisk : 'func_channel'
+        - asterisk : 'res_pjsip'
+    tags:
+        - pjsip
+        - accountcode
+

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_none/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/extensions.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/extensions.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/extensions.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,12 @@
+[default]
+
+exten => alice,1,NoOp()
+ same => n,Set(CHANNEL(accountcode)=alice_dialplan)
+ same => n,Set(CHANNEL(peeraccount)=peer_preset)
+ same => n,Dial(PJSIP/bob)
+ same => n,Hangup()
+
+exten => bob,1,NoOp()
+ same => n,Answer()
+ same => n,Wait(5)
+ same => n,Hangup()

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/pjsip.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/pjsip.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/pjsip.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,21 @@
+[local-transport]
+type=transport
+bind=127.0.0.1
+protocol=udp
+
+[bob]
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+transport=local-transport
+aors=bob
+accountcode=bob_config
+
+[bob-identify]
+type=identify
+endpoint=bob
+match=127.0.0.1
+
+[bob]
+type=aor
+contact=sip:bob at 127.0.0.1:5060\;transport=udp

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/test-config.yaml?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/test-config.yaml (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/test-config.yaml Sat Jul 19 18:39:07 2014
@@ -1,0 +1,67 @@
+testinfo:
+    summary:     'Test dial channel accountcode propagation of peeraccount preset to bob'
+    description: |
+        'The test checks the peeraccount accountcode propagation to an
+        outgoing channel that already has an accountcode.
+        1) alice has an accountcode and a peeraccount set
+        2) alice calls bob
+        3) bob has an accountcode when his channel is created
+        4) bob gets the preset peeraccount code of alice'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'test_case.SimpleTestCase'
+    modules:
+        -
+            config-section: ami-config
+            typename: 'ami.AMIEventModule'
+
+test-object-config:
+    spawn-after-hangup: True
+    test-iterations:
+        -
+            channel: 'Local/alice at default'
+            application: 'Echo'
+            async: True
+
+ami-config:
+    # Alice events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'Local/alice at default-.*'
+                EventName: 'BRIDGE_EXIT'
+        requirements:
+            match:
+                AccountCode: 'alice_dialplan'
+                PeerAccount: 'peer_preset'
+        count: '1'
+    # Bob events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'PJSIP/bob-.*'
+                EventName: 'BRIDGE_EXIT'
+        requirements:
+            match:
+                AccountCode: 'peer_preset'
+                PeerAccount: 'alice_dialplan'
+        count: '1'
+
+properties:
+    minversion: '13.0.0'
+    dependencies:
+        - asterisk : 'app_dial'
+        - asterisk : 'func_channel'
+        - asterisk : 'res_pjsip'
+    tags:
+        - pjsip
+        - accountcode
+

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_peer_override/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/extensions.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/extensions.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/extensions.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,16 @@
+[default]
+
+exten => predial,1,NoOp()
+ same => n,Set(CHANNEL(accountcode)=bob_predial)
+ same => n,Return()
+
+exten => alice,1,NoOp()
+ same => n,Set(CHANNEL(accountcode)=alice_dialplan)
+ same => n,Set(CHANNEL(peeraccount)=peer_preset)
+ same => n,Dial(PJSIP/bob,,b(default^predial^1))
+ same => n,Hangup()
+
+exten => bob,1,NoOp()
+ same => n,Answer()
+ same => n,Wait(5)
+ same => n,Hangup()

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/pjsip.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/pjsip.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/pjsip.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,21 @@
+[local-transport]
+type=transport
+bind=127.0.0.1
+protocol=udp
+
+[bob]
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+transport=local-transport
+aors=bob
+accountcode=bob_config
+
+[bob-identify]
+type=identify
+endpoint=bob
+match=127.0.0.1
+
+[bob]
+type=aor
+contact=sip:bob at 127.0.0.1:5060\;transport=udp

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/test-config.yaml?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/test-config.yaml (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/test-config.yaml Sat Jul 19 18:39:07 2014
@@ -1,0 +1,67 @@
+testinfo:
+    summary:     'Test dial channel accountcode propagation with predial override'
+    description: |
+        'The test checks the accountcode propagation with predial override.
+        1) alice has an accountcode and a peeraccount set
+        2) alice calls bob
+        3) bob has an accountcode when his channel is created
+        4) bob has a predial routine run on the channel
+        5) bob keeps the accountcode set by the predial routine'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'test_case.SimpleTestCase'
+    modules:
+        -
+            config-section: ami-config
+            typename: 'ami.AMIEventModule'
+
+test-object-config:
+    spawn-after-hangup: True
+    test-iterations:
+        -
+            channel: 'Local/alice at default'
+            application: 'Echo'
+            async: True
+
+ami-config:
+    # Alice events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'Local/alice at default-.*'
+                EventName: 'BRIDGE_EXIT'
+        requirements:
+            match:
+                AccountCode: 'alice_dialplan'
+                PeerAccount: 'bob_predial'
+        count: '1'
+    # Bob events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'PJSIP/bob-.*'
+                EventName: 'BRIDGE_EXIT'
+        requirements:
+            match:
+                AccountCode: 'bob_predial'
+                PeerAccount: 'alice_dialplan'
+        count: '1'
+
+properties:
+    minversion: '13.0.0'
+    dependencies:
+        - asterisk : 'app_dial'
+        - asterisk : 'func_channel'
+        - asterisk : 'res_pjsip'
+    tags:
+        - pjsip
+        - accountcode
+

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_predial/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/extensions.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/extensions.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/extensions.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,11 @@
+[default]
+
+exten => alice,1,NoOp()
+ same => n,Set(CHANNEL(accountcode)=alice_dialplan)
+ same => n,Dial(PJSIP/bob)
+ same => n,Hangup()
+
+exten => bob,1,NoOp()
+ same => n,Answer()
+ same => n,Wait(5)
+ same => n,Hangup()

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/pjsip.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/pjsip.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/pjsip.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,20 @@
+[local-transport]
+type=transport
+bind=127.0.0.1
+protocol=udp
+
+[bob]
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+transport=local-transport
+aors=bob
+
+[bob-identify]
+type=identify
+endpoint=bob
+match=127.0.0.1
+
+[bob]
+type=aor
+contact=sip:bob at 127.0.0.1:5060\;transport=udp

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/test-config.yaml?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/test-config.yaml (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/test-config.yaml Sat Jul 19 18:39:07 2014
@@ -1,0 +1,66 @@
+testinfo:
+    summary:     'Test dial channel accountcode propagation straight to bob'
+    description: |
+        'The test checks the straight accountcode propagation to an
+        outgoing channel that does not have an accountcode.
+        1) alice has an accountcode set but does not have a peeraccount set
+        2) alice calls bob
+        3) bob does not an accountcode when his channel is created
+        4) bob gets the accountcode of alice'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'test_case.SimpleTestCase'
+    modules:
+        -
+            config-section: ami-config
+            typename: 'ami.AMIEventModule'
+
+test-object-config:
+    spawn-after-hangup: True
+    test-iterations:
+        -
+            channel: 'Local/alice at default'
+            application: 'Echo'
+            async: True
+
+ami-config:
+    # Alice events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'Local/alice at default-.*'
+                EventName: 'BRIDGE_EXIT'
+        requirements:
+            match:
+                AccountCode: 'alice_dialplan'
+                PeerAccount: 'alice_dialplan'
+        count: '1'
+    # Bob events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'PJSIP/bob-.*'
+                EventName: 'BRIDGE_EXIT'
+        requirements:
+            match:
+                AccountCode: 'alice_dialplan'
+                PeerAccount: 'alice_dialplan'
+        count: '1'
+
+properties:
+    minversion: '13.0.0'
+    dependencies:
+        - asterisk : 'app_dial'
+        - asterisk : 'func_channel'
+        - asterisk : 'res_pjsip'
+    tags:
+        - pjsip
+        - accountcode

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_none/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/extensions.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/extensions.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/extensions.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,11 @@
+[default]
+
+exten => alice,1,NoOp()
+ same => n,Set(CHANNEL(accountcode)=alice_dialplan)
+ same => n,Dial(PJSIP/bob)
+ same => n,Hangup()
+
+exten => bob,1,NoOp()
+ same => n,Answer()
+ same => n,Wait(5)
+ same => n,Hangup()

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/pjsip.conf?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/pjsip.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/pjsip.conf Sat Jul 19 18:39:07 2014
@@ -1,0 +1,21 @@
+[local-transport]
+type=transport
+bind=127.0.0.1
+protocol=udp
+
+[bob]
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+transport=local-transport
+aors=bob
+accountcode=bob_config
+
+[bob-identify]
+type=identify
+endpoint=bob
+match=127.0.0.1
+
+[bob]
+type=aor
+contact=sip:bob at 127.0.0.1:5060\;transport=udp

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/test-config.yaml?view=auto&rev=5284
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/test-config.yaml (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/dial_straight_override/test-config.yaml Sat Jul 19 18:39:07 2014
@@ -1,0 +1,67 @@
+testinfo:
+    summary:     'Test dial channel accountcode propagation straight to bob'
+    description: |
+        'The test checks the straight accountcode propagation to an
+        outgoing channel that already has an accountcode.
+        1) alice has an accountcode set but does not have a peeraccount set
+        2) alice calls bob
+        3) bob has an accountcode when his channel is created

[... 121 lines stripped ...]



More information about the asterisk-commits mailing list