From 914397aa2308829cf0eb48a8e4edeb6024373a1a Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Thu, 3 Jan 2013 18:48:00 +0000 Subject: [PATCH] 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. ........ Merged revisions 378455 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@378459 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/channel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/channel.c b/main/channel.c index 63122ededc..37d2066235 100644 --- a/main/channel.c +++ b/main/channel.c @@ -605,6 +605,7 @@ int ast_check_hangup(struct ast_channel *chan) if (ast_tvdiff_ms(*ast_channel_whentohangup(chan), 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(*ast_channel_whentohangup(chan), ast_tvnow())); + ast_test_suite_event_notify("HANGUP_TIME", "Channel: %s", ast_channel_name(chan)); ast_channel_softhangup_internal_flag_add(chan, AST_SOFTHANGUP_TIMEOUT); /* record event */ return 1; }