[asterisk-commits] kmoore: branch 1.8 r378455 - /branches/1.8/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 3 12:35:41 CST 2013


Author: kmoore
Date: Thu Jan  3 12:35:38 2013
New Revision: 378455

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=378455
Log:
Add missing test event

This test event was missing from channel.c causing the dial_LS_options
test to fail intermittently because of a race condition where most code
paths emitted the test event but this one did not. The dial_LS_options
test should stop bouncing now.

Modified:
    branches/1.8/main/channel.c

Modified: branches/1.8/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/channel.c?view=diff&rev=378455&r1=378454&r2=378455
==============================================================================
--- branches/1.8/main/channel.c (original)
+++ branches/1.8/main/channel.c Thu Jan  3 12:35:38 2013
@@ -812,6 +812,7 @@
 	if (ast_tvdiff_ms(chan->whentohangup, ast_tvnow()) > 0) 	/* no if hangup time has not come yet. */
 		return 0;
 	ast_debug(4, "Hangup time has come: %" PRIi64 "\n", ast_tvdiff_ms(chan->whentohangup, ast_tvnow()));
+	ast_test_suite_event_notify("HANGUP_TIME", "Channel: %s", chan->name);
 	chan->_softhangup |= AST_SOFTHANGUP_TIMEOUT;	/* record event */
 	return 1;
 }




More information about the asterisk-commits mailing list