Wipe out p->exten in zt_hangup (bug 1115)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich
2004-03-10 09:11:05 +00:00
parent fac46c078a
commit 18b3da6bab

View File

@@ -1720,7 +1720,8 @@ static int zt_hangup(struct ast_channel *ast)
}
if (p->dsp)
ast_dsp_digitmode(p->dsp,DSP_DIGITMODE_DTMF | p->dtmfrelax);
if (p->exten)
strcpy(p->exten, "");
ast_log(LOG_DEBUG, "Hangup: channel: %d index = %d, normal = %d, callwait = %d, thirdcall = %d\n",
p->channel, index, p->subs[SUB_REAL].zfd, p->subs[SUB_CALLWAIT].zfd, p->subs[SUB_THREEWAY].zfd);