Wipe out p->exten in zt_hangup (bug 1115)
authorJames Golovich <james@gnuinter.net>
Wed, 10 Mar 2004 09:11:05 +0000 (09:11 +0000)
committerJames Golovich <james@gnuinter.net>
Wed, 10 Mar 2004 09:11:05 +0000 (09:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2389 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index b9f55fd..8a3fa4c 100755 (executable)
@@ -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);