[asterisk-bugs] [Asterisk 0013901]: switch statement: Empty patterns don't fallback to Default label

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Nov 20 13:44:14 CST 2008


The following issue has been CLOSED 
====================================================================== 
http://bugs.digium.com/view.php?id=13901 
====================================================================== 
Reported By:                smurfix
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   13901
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 150817 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-11-14 07:48 CST
Last Modified:              2008-11-20 13:44 CST
====================================================================== 
Summary:                    switch statement: Empty patterns don't fallback to
Default label
Description: 
The following code:

switch(${empty}) {

... some patterns ...

default: break;

}

results in an "unknown label" error, the call is aborted.

This bug caused us to lose two days' worth of calls which happened not to
send any caller ID ...
====================================================================== 

---------------------------------------------------------------------- 
 (0095201) seanbright (manager) - 2008-11-20 13:44
 http://bugs.digium.com/view.php?id=13901#c95201 
---------------------------------------------------------------------- 
Fix one case where the application argument was not converted from a pipe
to
a comma.  This was causing problems with switch statements with empty
expressions.

(closes issue http://bugs.digium.com/view.php?id=13901)
Reported by: smurfix
Patches:
      20081118_bug13901.diff uploaded by seanbright (license 71)
Tested by: seanbright
Reviewed by: murf

Modified:
    trunk/res/ael/pval.c 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-20 13:44 seanbright     Note Added: 0095201                          
2008-11-20 13:44 seanbright     Status                   feedback => closed  
======================================================================




More information about the asterisk-bugs mailing list