[asterisk-bugs] [Zaptel 0013813]: zt_ctl_ioctl() ZT_SET_DIALPARAMS issue

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 30 13:38:57 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13813 
====================================================================== 
Reported By:                ys
Assigned To:                
====================================================================== 
Project:                    Zaptel
Issue ID:                   13813
Category:                   General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
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-10-30 13:38 CDT
====================================================================== 
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-10-30 13:38 ys             Zaptel Version            =>  SVN            
2008-10-30 13:38 ys             SVN Branch (only for SVN checkouts, not tarball
releases) =>  1.4            
2008-10-30 13:38 ys             SVN Revision (number only!) => 4571            
======================================================================




More information about the asterisk-bugs mailing list