[asterisk-commits] mjordan: testsuite/asterisk/trunk r5550 - /asterisk/trunk/tests/apps/mixmonitor/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Sep 5 19:13:51 CDT 2014
Author: mjordan
Date: Fri Sep 5 19:13:49 2014
New Revision: 5550
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=5550
Log:
apps/mixmonitor: Use the AMI connection to originate channels
This test previously used the CLI to originate the channels. Rarely, this would
cause a race condition where the global variables set via AMI would get set
after the CLI originated the channel. By using AMI for all actions, we should
avoid this race.
Modified:
asterisk/trunk/tests/apps/mixmonitor/run-test
Modified: asterisk/trunk/tests/apps/mixmonitor/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/mixmonitor/run-test?view=diff&rev=5550&r1=5549&r2=5550
==============================================================================
--- asterisk/trunk/tests/apps/mixmonitor/run-test (original)
+++ asterisk/trunk/tests/apps/mixmonitor/run-test Fri Sep 5 19:13:49 2014
@@ -77,12 +77,17 @@
def launch_test1(self):
LOGGER.info("Placing call to test1 exten")
- self.ast[0].cli_originate("Local/s at listener extension s at test1")
+ self.ami.originate(channel="Local/s at listener",
+ context="test1",
+ exten="s",
+ priority="1")
def launch_test2(self):
LOGGER.info("Placing call to test2 exten")
- self.ast[0].cli_originate("Local/s at listener extension s at test2")
-
+ self.ami.originate(channel="Local/s at listener",
+ context="test2",
+ exten="s",
+ priority="1")
def check_test1(self, ami, event):
LOGGER.info("Checking Userevent")
More information about the asterisk-commits
mailing list