From ef267cd83817c17c46b2b924e765edebd13bb508 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Mon, 11 Feb 2008 17:25:04 +0000 Subject: [PATCH] Fix Manager Redirect while in an AGI. (closes issue #10661) Reported by: junky git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103317 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/pbx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/pbx.c b/main/pbx.c index 693c4b8b45..82fe6c4491 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -3288,6 +3288,9 @@ static int __ast_pbx_run(struct ast_channel *c) /* If the AbsoluteTimeout is not reset to 0, we'll get an infinite loop */ c->whentohangup = 0; c->_softhangup &= ~AST_SOFTHANGUP_TIMEOUT; + } else if (c->_softhangup == AST_SOFTHANGUP_ASYNCGOTO) { + c->_softhangup = 0; + continue; } else if (ast_check_hangup(c)) { ast_debug(1, "Extension %s, priority %d returned normally even though call was hung up\n", c->exten, c->priority); -- 2.47.2