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:
parent
e2004e2d34
commit
3b69191453
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue