summaryrefslogtreecommitdiff
path: root/main/channel.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2013-01-03 18:51:43 +0000
committerKinsey Moore <kmoore@digium.com>2013-01-03 18:51:43 +0000
commitad582f9aef40a56fc13f9eea40adb3ea51fe37a8 (patch)
treeb178623b35187849de25efbbc30e09217a0dd95e /main/channel.c
parentda7c2e3ffe676ec5fd38683f34e0908043dad018 (diff)
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 ........ Merged revisions 378459 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index d1d4d095d..5f2234a0f 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;
}