Summary: | ASTERISK-07909: Switch fallthrough fails to function with patterns | ||
Reporter: | Luke-Jr (luke-jr) | Labels: | |
Date Opened: | 2006-10-10 11:02:39 | Date Closed: | 2006-10-13 21:16:27 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | PBX/pbx_ael |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | If a case should fall through to the next case, and the next case is a pattern using either 'N' or 'X' matching, the Goto will fail since 'N'/'X' don't match their own pattern. ****** ADDITIONAL INFORMATION ****** switch (${EXTEN}) { pattern 1xx: NoOP(do something to prepare it); pattern 2xx: NoOP(handle both 1xx and 2xx calls); } results in the last priority of the first case calling Goto(sw-1-2xx,1), but _sw-1-2xx does not match 'sw-1-2xx' | ||
Comments: | By: Serge Vecher (serge-v) 2006-10-11 08:24:34 did you try updating to 1.2.12.1? Is this an issue in 1.4-beta version of AEL? By: Luke-Jr (luke-jr) 2006-10-11 08:43:31 Nope, 1.2.10 is the latest in Debian Sarge-- is this fixed in 1.2.12.1? I haven't used 1.4 yet. By: Steve Murphy (murf) 2006-10-13 21:12:12 Luke-Jr-- I'd love to say smugly that the AEL in 1.4 can smoothly handle this without problem, but I just tested it out, and it doesn't! So I've been a busy boy today, and I've fixed this in the following places, with these revision numbers: trunk: 45078 1.4: 45103 1.2: 45134 AEL2-1.2 branch: 45141 I assume that this fix will show up in the next 1.2 release (if/when that might be) By: Steve Murphy (murf) 2006-10-13 21:14:28 yup, it (was) a bug! By: Steve Murphy (murf) 2006-10-13 21:15:37 Yup, I spent all day fixing, building, testing, updating regressions, etc, and I resolved this all over the place. By: Steve Murphy (murf) 2006-10-13 21:16:26 And now, after all I've done, I get the pleasure of closing this bug! |