[asterisk-commits] kmoore: testsuite/asterisk/trunk r3229 - /asterisk/trunk/tests/channels/SIP/h...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri May 18 12:48:57 CDT 2012
Author: kmoore
Date: Fri May 18 12:48:53 2012
New Revision: 3229
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3229
Log:
Apply the logging improvements to the HANGUPCAUSE test
Improve logging in the HANGUPCAUSE test on known error conditions.
Modified:
asterisk/trunk/tests/channels/SIP/hangupcause/run-test
Modified: asterisk/trunk/tests/channels/SIP/hangupcause/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/hangupcause/run-test?view=diff&rev=3229&r1=3228&r2=3229
==============================================================================
--- asterisk/trunk/tests/channels/SIP/hangupcause/run-test (original)
+++ asterisk/trunk/tests/channels/SIP/hangupcause/run-test Fri May 18 12:48:53 2012
@@ -55,16 +55,24 @@
logger.info("got result for single channel call")
if event['hangupcause'] == '34':
self.success_count += 1
+ else:
+ logger.error("Received 'single' event with bad HANGUPCAUSE code")
elif event ['status'] == "double":
logger.info("got result for branched call")
if event['hangupcause'] == '17' and\
res_good(event['chan2'], event['res2']):
self.success_count += 1
+ else:
+ logger.error("Received 'double' event with bad cause information")
elif event ['status'] == "local":
logger.info("got result for local-indirected branched call")
if event['hangupcause'] == '0' and\
res_good(event['chan2'], event['res2']):
self.success_count += 1
+ else:
+ logger.error("Received 'local' event with bad cause information")
+ else:
+ logger.error("Received '%s' event with bad cause information" % (event['status']))
self.are_we_there_yet()
More information about the asterisk-commits
mailing list