[asterisk-bugs] [Asterisk 0015303]: new_find_extension arguments in wrong order

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 10 15:00:47 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15303 
====================================================================== 
Reported By:                JimDickenson
Assigned To:                dbrooks
====================================================================== 
Project:                    Asterisk
Issue ID:                   15303
Category:                   Core/PBX
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0.9 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-09 16:21 CDT
Last Modified:              2009-06-10 15:00 CDT
====================================================================== 
Summary:                    new_find_extension arguments in wrong order
Description: 
The prototype and all calls to new_find_extension have callerid then label
but the function definition has the arguments as label then callerid.
Clearly in the wrong order. The problem is on line 1218 of main/pbx.c of
1.6.0.9 code. Still a problem in current svn code.
====================================================================== 

---------------------------------------------------------------------- 
 (0106261) svnbot (reporter) - 2009-06-10 15:00
 https://issues.asterisk.org/view.php?id=15303#c106261 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 199957

U   trunk/main/pbx.c

------------------------------------------------------------------------
r199957 | dbrooks | 2009-06-10 15:00:46 -0500 (Wed, 10 Jun 2009) | 10
lines

Fixes the argument order in definition of new_find_extension().

In the definition of new_find_extension(), the arguments 'callerid' and
'label' were swapped. The prototype declaration and all calls to the
function are ordered 'callerid' then 'label', but the function itself
was ordered 'label' then 'callerid'.

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

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-10 15:00 svnbot         Checkin                                      
2009-06-10 15:00 svnbot         Note Added: 0106261                          
======================================================================




More information about the asterisk-bugs mailing list