[asterisk-commits] kmoore: branch group/bridge_construction r3748 - /asterisk/team/group/bridge_...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 3 11:16:59 CDT 2013


Author: kmoore
Date: Fri May  3 11:16:57 2013
New Revision: 3748

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3748
Log:
Add strict checking for Bridge* events for a basic scenario

Modified:
    asterisk/team/group/bridge_construction/tests/bridge/simple_bridge/test-config.yaml

Modified: asterisk/team/group/bridge_construction/tests/bridge/simple_bridge/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/group/bridge_construction/tests/bridge/simple_bridge/test-config.yaml?view=diff&rev=3748&r1=3747&r2=3748
==============================================================================
--- asterisk/team/group/bridge_construction/tests/bridge/simple_bridge/test-config.yaml (original)
+++ asterisk/team/group/bridge_construction/tests/bridge/simple_bridge/test-config.yaml Fri May  3 11:16:57 2013
@@ -12,10 +12,12 @@
         -
             config-section: 'cdr-config'
             typename: 'cdr.CDRModule'
-    modules:
         -
             config-section: 'cel-config'
             typename: 'cel.CELModule'
+        -  
+            typename: 'ami.AMIEventModule'
+            config-section: ami-uut
 
 bridge-config:
   test-runs:
@@ -26,6 +28,115 @@
         originate_channel: 'SIP/test_call at uut'
         hangup: 'bob'
 
+ami-uut:
+    -  
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'BridgeCreate'
+        requirements:
+            match:
+                BridgeType: 'simple_bridge'
+        count: '2'
+    -  
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'BridgeEnter'
+                Channel: 'SIP/alice-.*'
+        requirements:
+            match:
+                BridgeUniqueid: '.*-.*-.*'
+                BridgeType: 'simple_bridge'
+                ChannelState: '6'
+                ChannelStateDesc: 'Up'
+                CallerIDNum: '1234'
+                CallerIDName: 'Alice'
+                ConnectedLineNum: '4321'
+                ConnectedLineName: 'Bob'
+                Context: 'default'
+                Exten: 'test_call'
+                Priority: '1'
+                Uniqueid: '.*'
+        count: '2'
+    -  
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'BridgeEnter'
+                Channel: 'SIP/bob-.*'
+        requirements:
+            match:
+                BridgeUniqueid: '.*-.*-.*'
+                BridgeType: 'simple_bridge'
+                ChannelState: '6'
+                ChannelStateDesc: 'Up'
+                ConnectedLineNum: '1234'
+                ConnectedLineName: 'Alice'
+                CallerIDNum: '4321'
+                CallerIDName: 'Bob'
+                Context: 'default'
+                Priority: '1'
+                Uniqueid: '.*'
+        count: '2'
+    -  
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'BridgeLeave'
+                Channel: 'SIP/alice-.*'
+        requirements:
+            match:
+                BridgeUniqueid: '.*-.*-.*'
+                BridgeType: 'simple_bridge'
+                ChannelState: '6'
+                ChannelStateDesc: 'Up'
+                CallerIDNum: '1234'
+                CallerIDName: 'Alice'
+                ConnectedLineNum: '4321'
+                ConnectedLineName: 'Bob'
+                Context: 'default'
+                Exten: 'test_call'
+                Priority: '1'
+                Uniqueid: '.*'
+        count: '2'
+    -  
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'BridgeLeave'
+                Channel: 'SIP/bob-.*'
+        requirements:
+            match:
+                BridgeUniqueid: '.*-.*-.*'
+                BridgeType: 'simple_bridge'
+                ChannelState: '6'
+                ChannelStateDesc: 'Up'
+                ConnectedLineNum: '1234'
+                ConnectedLineName: 'Alice'
+                CallerIDNum: '4321'
+                CallerIDName: 'Bob'
+                Context: 'default'
+                Priority: '1'
+                Uniqueid: '.*'
+        count: '2'
+    -  
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'BridgeDestroy'
+        requirements:
+            match:
+                BridgeUniqueid: '.*-.*-.*'
+                BridgeType: 'simple_bridge'
+        count: '2'
+
 cdr-config:
     -
         file: 'Master'




More information about the asterisk-commits mailing list