]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add missing test event
authorKinsey Moore <kmoore@digium.com>
Thu, 3 Jan 2013 18:35:38 +0000 (18:35 +0000)
committerKinsey Moore <kmoore@digium.com>
Thu, 3 Jan 2013 18:35:38 +0000 (18:35 +0000)
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.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@378455 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 50ed55c1316a46c967c67491986ac46e37000451..b038bce20175072c564a185bf60b770d46d197e4 100644 (file)
@@ -812,6 +812,7 @@ int ast_check_hangup(struct ast_channel *chan)
        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;
 }