From: Mark Spencer Date: Sat, 16 Sep 2006 21:45:35 +0000 (+0000) Subject: Fix the dtmf dialtone thing X-Git-Tag: 1.4.0-beta1~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e887127bf37a123175657e9fbacb5818118800c8;p=thirdparty%2Fasterisk.git Fix the dtmf dialtone thing git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43039 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index b37cc7a8f7..05e062336a 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -1086,6 +1086,7 @@ static int zt_digit_end(struct ast_channel *chan, char digit) struct zt_pvt *pvt; int res = 0; int index; + int x; pvt = chan->tech_pvt; @@ -1103,8 +1104,9 @@ static int zt_digit_end(struct ast_channel *chan, char digit) #endif if (pvt->begindigit) { + x = -1; ast_log(LOG_DEBUG, "Ending VLDTMF digit '%c'\n", digit); - res = ioctl(pvt->subs[SUB_REAL].zfd, ZT_SENDTONE, -1); + res = ioctl(pvt->subs[SUB_REAL].zfd, ZT_SENDTONE, &x); pvt->dialing = 0; pvt->begindigit = 0; }