diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-16 21:45:35 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-16 21:45:35 +0000 |
commit | 5b13041e0f380ccdf5ce117653086312c4a3a7be (patch) | |
tree | 2654ea455255ec3e50f1581904b2ef901271a10e /channels | |
parent | 9e59e6756a63094c5fc1b2a3af256a27b33ee41b (diff) |
Fix the dtmf dialtone thing
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43039 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_zap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index b37cc7a8f..05e062336 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; } |