Fix 'T' extension
authorMark Spencer <markster@digium.com>
Thu, 22 May 2003 04:38:46 +0000 (04:38 +0000)
committerMark Spencer <markster@digium.com>
Thu, 22 May 2003 04:38:46 +0000 (04:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1050 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index 5e06c2b..2d2f926 100755 (executable)
--- 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);