[asterisk-commits] russell: testsuite/asterisk/trunk r326 - /asterisk/trunk/lib/python/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 2 15:26:27 CDT 2010


Author: russell
Date: Wed Jun  2 15:26:25 2010
New Revision: 326

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=326
Log:
Use the CLI command to ensure that an Asterisk instance has finished starting up

Modified:
    asterisk/trunk/lib/python/asterisk/asterisk.py

Modified: asterisk/trunk/lib/python/asterisk/asterisk.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/asterisk.py?view=diff&rev=326&r1=325&r2=326
==============================================================================
--- asterisk/trunk/lib/python/asterisk/asterisk.py (original)
+++ asterisk/trunk/lib/python/asterisk/asterisk.py Wed Jun  2 15:26:25 2010
@@ -102,10 +102,9 @@
             "-C", "%s" % os.path.join(self.astetcdir, "asterisk.conf")
         ]
         self.process = subprocess.Popen(cmd)
+        # Be _really_ sure that Asterisk has started up before returning.
         time.sleep(5.0)
-        # XXX
-        # We need a _much_ better way to determine if Asterisk
-        # is actually up and running and fully initialized
+        self.cli_exec("core waitfullybooted")
 
     def stop(self):
         """Stop this instance of Asterisk.




More information about the asterisk-commits mailing list