[asterisk-bugs] [Zaptel 0013813]: zt_ctl_ioctl() ZT_SET_DIALPARAMS issue
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Nov 21 14:14:15 CST 2008
The following issue has been ASSIGNED.
======================================================================
http://bugs.digium.com/view.php?id=13813
======================================================================
Reported By: ys
Assigned To: qwell
======================================================================
Project: Zaptel
Issue ID: 13813
Category: General
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
Zaptel Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!): 4571
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-10-30 13:38 CDT
Last Modified: 2008-11-21 14:14 CST
======================================================================
Summary: zt_ctl_ioctl() ZT_SET_DIALPARAMS issue
Description:
I think, that this in zt_ctl_ioctl (kernel/zaptel-base.c):
case ZT_SET_DIALPARAMS:
...
if ((tdp.dtmf_tonelen <= 4000) || (tdp.dtmf_tonelen >= 10)) {
global_dialparams.dtmf_tonelen =
tdp.dtmf_tonelen;
}
if ((tdp.mfv1_tonelen <= 4000) || (tdp.mfv1_tonelen >= 10)) {
global_dialparams.mfv1_tonelen =
tdp.mfv1_tonelen;
}
if ((tdp.mfr2_tonelen <= 4000) || (tdp.mfr2_tonelen >= 10)) {
global_dialparams.mfr2_tonelen =
tdp.mfr2_tonelen;
}
...
May be logical || (OR) need to be replaced to && (AND) ???
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2008-11-21 14:14 svnbot Status new => assigned
2008-11-21 14:14 svnbot Assigned To => qwell
======================================================================
More information about the asterisk-bugs
mailing list