[asterisk-commits] mjordan: testsuite/asterisk/trunk r3973 - /asterisk/trunk/lib/python/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 2 07:24:41 CDT 2013


Author: mjordan
Date: Fri Aug  2 07:24:38 2013
New Revision: 3973

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3973
Log:
Allow 'timeout' to be specified in Originates

This updates Originator to support the timeout parameter for channel
origination.

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

Modified: asterisk/trunk/lib/python/asterisk/PluggableModules.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/PluggableModules.py?view=diff&rev=3973&r1=3972&r2=3973
==============================================================================
--- asterisk/trunk/lib/python/asterisk/PluggableModules.py (original)
+++ asterisk/trunk/lib/python/asterisk/PluggableModules.py Fri Aug  2 07:24:38 2013
@@ -34,7 +34,8 @@
             'trigger': 'scenario_start',
             'id': '0',
             'async': 'False',
-            'event': None
+            'event': None,
+            'timeout': None,
         }
 
         # process config
@@ -90,11 +91,13 @@
                                context=self.config['context'],
                                exten=self.config['exten'],
                                priority=self.config['priority'],
+                               timeout=self.config['timeout'],
                                async=self.config['async']).addErrback(self.failure)
         else:
             self.ami.originate(channel=self.config['channel'],
                                application=self.config['application'],
                                data=self.config['data'],
+                               timeout=self.config['timeout'],
                                async=self.config['async']).addErrback(self.failure)
 
     def scenario_started(self, result):




More information about the asterisk-commits mailing list