[asterisk-bugs] [Asterisk 0019134]: [patch] Unclear code in app_dial.c

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 18 11:02:13 CDT 2011


The following issue has been ASSIGNED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19134 
====================================================================== 
Reported By:                oej
Assigned To:                rmudgett
====================================================================== 
Project:                    Asterisk
Issue ID:                   19134
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.8.2.4 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-04-18 09:03 CDT
Last Modified:              2011-04-18 11:02 CDT
====================================================================== 
Summary:                    [patch] Unclear code in app_dial.c
Description: 
The code that handles AST_CONTROL_PROGRESS in the function wait_for_answer
has unclear formatting. The line checking for OPT_RINGBACK has no curly
brackets, so it only applies to the next level if. There's a second if()
statement where indents indicate that it should be part of the RINGBACK
clause, but it is not. I can't say what's righ there, so someone else needs
to check the code and decide. Thanks.
====================================================================== 

---------------------------------------------------------------------- 
 (0133873) svnbot (reporter) - 2011-04-18 11:02
 https://issues.asterisk.org/view.php?id=19134#c133873 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 314068

U   branches/1.8/apps/app_dial.c

------------------------------------------------------------------------
r314068 | rmudgett | 2011-04-18 11:02:12 -0500 (Mon, 18 Apr 2011) | 7
lines

Unclear code in app_dial.c.

Make code formatting clear.

(closes issue https://issues.asterisk.org/view.php?id=19134)
Reported by: oej

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=314068 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-18 11:02 svnbot         Checkin                                      
2011-04-18 11:02 svnbot         Note Added: 0133873                          
2011-04-18 11:02 svnbot         Status                   new => assigned     
2011-04-18 11:02 svnbot         Assigned To               => rmudgett        
======================================================================




More information about the asterisk-bugs mailing list