[asterisk-commits] mnick: testsuite/asterisk/trunk r599 - /asterisk/trunk/tests/blind-transfer-p...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 27 11:11:03 CDT 2010


Author: mnick
Date: Tue Jul 27 11:10:59 2010
New Revision: 599

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=599
Log:
added function finish_agi() which closes the AGI connection properly

Modified:
    asterisk/trunk/tests/blind-transfer-parkingtimeout/run-test

Modified: asterisk/trunk/tests/blind-transfer-parkingtimeout/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/blind-transfer-parkingtimeout/run-test?view=diff&rev=599&r1=598&r2=599
==============================================================================
--- asterisk/trunk/tests/blind-transfer-parkingtimeout/run-test (original)
+++ asterisk/trunk/tests/blind-transfer-parkingtimeout/run-test Tue Jul 27 11:10:59 2010
@@ -57,7 +57,14 @@
     def get_result_b(self, agi):
         self.log_last_step("got AGI connection from userB -> test successful")
         self.passed = True
-        self.read_result();
+        reactor.callLater(2, self.read_result)
+        return self.finish_agi(agi)
+
+   # Finish the AGI connection
+    def finish_agi(self, agi):
+        sequence = fastagi.InSequence()
+        sequence.append(agi.finish)
+        return sequence()
 
     def read_result(self):
         if self.done:




More information about the asterisk-commits mailing list