[asterisk-commits] mnick: testsuite/asterisk/trunk r763 - /asterisk/trunk/tests/one-step-parking/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Aug 18 11:32:40 CDT 2010
Author: mnick
Date: Wed Aug 18 11:32:37 2010
New Revision: 763
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=763
Log:
simplified the code by removing finish_agi(). Instead I use agi.finish()
Modified:
asterisk/trunk/tests/one-step-parking/run-test
Modified: asterisk/trunk/tests/one-step-parking/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/one-step-parking/run-test?view=diff&rev=763&r1=762&r2=763
==============================================================================
--- asterisk/trunk/tests/one-step-parking/run-test (original)
+++ asterisk/trunk/tests/one-step-parking/run-test Wed Aug 18 11:32:37 2010
@@ -61,20 +61,14 @@
self.log_last_step("Dial userA (701)")
self.asterisk2.cli_originate(
"IAX2/userA at 127.0.0.1:4570/701 extension retrieve_A at parking")
- return self.finish_agi(agi)
+ return agi.finish()
# This gets invoked by the dialplan when test succeeds.
def get_result_b(self, agi):
self.log_last_step("got AGI connection from userB -> test successful")
self.passed = True
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()
+ return agi.finish()
def read_result(self):
if self.done:
More information about the asterisk-commits
mailing list