From d82c9db4c823fe9f6602562fd319a3d35a15ca7d Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Thu, 22 May 2003 04:38:46 +0000 Subject: [PATCH] Fix 'T' extension git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1050 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pbx.c b/pbx.c index 5e06c2b706..2d2f92692c 100755 --- a/pbx.c +++ b/pbx.c @@ -1703,6 +1703,8 @@ int ast_pbx_run(struct ast_channel *c) strncpy(c->exten,"T",sizeof(c->exten) - 1); /* If the AbsoluteTimeout is not reset to 0, we'll get an infinite loop */ c->whentohangup = 0; + c->priority = 0; + c->_softhangup &= ~AST_SOFTHANGUP_TIMEOUT; } else if (c->_softhangup) { ast_log(LOG_DEBUG, "Extension %s, priority %d returned normally even though call was hung up\n", c->exten, c->priority);