diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-11 17:25:04 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-11 17:25:04 +0000 |
commit | 74b3690774ea1d6c1150b7cc9bd40e8181e102c8 (patch) | |
tree | 810994ff6468af7010edc0082054bc9b6ced91b0 /main | |
parent | c8aefa67acd05886a67374a7c909591bc8436a90 (diff) |
Fix Manager Redirect while in an AGI.
(closes issue #10661)
Reported by: junky
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103317 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/pbx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c index 693c4b8b4..82fe6c449 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); |