fix timer in dtmf generator

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@834 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2009-09-14 22:13:43 +00:00
parent f68d83dda0
commit 8291ec982e
1 changed files with 4 additions and 2 deletions

View File

@ -1847,8 +1847,10 @@ static zap_status_t handle_dtmf(zap_channel_t *zchan, zap_size_t datalen)
return ZAP_FAIL;
}
}
zchan->skip_read_frames = wrote / (1000 / zchan->effective_interval);
if (x) {
zchan->skip_read_frames = (wrote / (zchan->effective_interval * 8)) + 4;
}
}
}