[asterisk-commits] mmichelson: branch mmichelson/bridge-tests r3368 - in /asterisk/team/mmichels...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 26 14:25:55 CDT 2012
Author: mmichelson
Date: Thu Jul 26 14:25:51 2012
New Revision: 3368
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3368
Log:
Add another extension into the disconnect test to test BRIDGE_FEATURES.
I also added a reset_timeout() call between extension attempts. Probably
should amend this to be between calls instead.
Modified:
asterisk/team/mmichelson/bridge-tests/lib/python/asterisk/BridgeTestCase.py
asterisk/team/mmichelson/bridge-tests/tests/bridge/disconnect/configs/ast1/extensions.conf
asterisk/team/mmichelson/bridge-tests/tests/bridge/disconnect/test-config.yaml
Modified: asterisk/team/mmichelson/bridge-tests/lib/python/asterisk/BridgeTestCase.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/bridge-tests/lib/python/asterisk/BridgeTestCase.py?view=diff&rev=3368&r1=3367&r2=3368
==============================================================================
--- asterisk/team/mmichelson/bridge-tests/lib/python/asterisk/BridgeTestCase.py (original)
+++ asterisk/team/mmichelson/bridge-tests/lib/python/asterisk/BridgeTestCase.py Thu Jul 26 14:25:51 2012
@@ -214,6 +214,7 @@
def execute_features(self):
if self.current_feature < len(self.features):
self.infeatures = True
+ self.reset_timeout()
LOGGER.info("Going to execute a feature")
self.execute_feature(self.features[self.current_feature])
else:
Modified: asterisk/team/mmichelson/bridge-tests/tests/bridge/disconnect/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/bridge-tests/tests/bridge/disconnect/configs/ast1/extensions.conf?view=diff&rev=3368&r1=3367&r2=3368
==============================================================================
--- asterisk/team/mmichelson/bridge-tests/tests/bridge/disconnect/configs/ast1/extensions.conf (original)
+++ asterisk/team/mmichelson/bridge-tests/tests/bridge/disconnect/configs/ast1/extensions.conf Thu Jul 26 14:25:51 2012
@@ -3,5 +3,9 @@
exten => alice_disconnect,1,Dial(SIP/test_call at bob,,Ht)
same => n,Hangup()
+exten => alice_disconnect2,1,Set(BRIDGE_FEATURES=H)
+same => n,Dial(SIP/test_call at bob,,t)
+same => n,Hangup()
+
exten => bob_disconnect,1,Dial(SIP/test_call at bob,,hT)
same => n,Hangup()
Modified: asterisk/team/mmichelson/bridge-tests/tests/bridge/disconnect/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/bridge-tests/tests/bridge/disconnect/test-config.yaml?view=diff&rev=3368&r1=3367&r2=3368
==============================================================================
--- asterisk/team/mmichelson/bridge-tests/tests/bridge/disconnect/test-config.yaml (original)
+++ asterisk/team/mmichelson/bridge-tests/tests/bridge/disconnect/test-config.yaml Thu Jul 26 14:25:51 2012
@@ -12,6 +12,17 @@
bridge-config:
-
extension: 'alice_disconnect'
+ features:
+ -
+ who: 'bob'
+ what: 'disconnect'
+ success: 'false'
+ -
+ who: 'alice'
+ what: 'disconnect'
+ success: 'true'
+ -
+ extension: 'alice_disconnect2'
features:
-
who: 'bob'
More information about the asterisk-commits
mailing list