Summary: | ASTERISK-04687: AEL: "default" case in switch statement does not appear operational | ||
Reporter: | capouch (capouch) | Labels: | |
Date Opened: | 2005-07-26 14:17:21 | Date Closed: | 2006-07-06 11:10:36 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | PBX/pbx_ael |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | ~/doc/README.ael doesn't discuss semantics very much, I but I assume the switch statement in AEL should work analogously to that in C. It does not seem to work: a switch statement with a single default clause as its only case doesn't do anything. I have also contrived situations where an case option fires, so I know I'm getting a match. I then remove that specific case, but the default still remains un-executed. | ||
Comments: | By: Mark Spencer (markster) 2005-08-23 14:28:51 550 => { switch(${foo}) { default: NoOp("it works"); }; }; properly creates: '550' => 1. Goto(sw-550-1-${foo}|1) [pbx_ael] 2. NoOp(Finish switch-550-1) [pbx_ael] '_sw-550-1-.' => 1. NoOp("it works") [pbx_ael] |