Revert two lines that was extra, but only on fridays.
authorOlle Johansson <oej@edvina.net>
Thu, 29 Jan 2009 17:10:43 +0000 (17:10 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 29 Jan 2009 17:10:43 +0000 (17:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@172319 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index 71994c2..3309725 100644 (file)
@@ -578,7 +578,6 @@ static int local_hangup(struct ast_channel *ast)
                ast_set_flag(p->chan, AST_FLAG_ANSWERED_ELSEWHERE);
                ast_debug(2, "This local call has the ANSWERED_ELSEWHERE flag set.\n");
        }
-       /* Make sure the hangupcause follows down the chain of channels */
 
        if (isoutbound) {
                const char *status = pbx_builtin_getvar_helper(p->chan, "DIALSTATUS");
@@ -610,7 +609,6 @@ static int local_hangup(struct ast_channel *ast)
                        DEADLOCK_AVOIDANCE(&p->lock);
                }
                if (p->chan) {
-                       p->chan->hangupcause = ast->hangupcause;
                        ast_queue_hangup(p->chan);
                        ast_channel_unlock(p->chan);
                }