Summary: | ASTERISK-07525: AEL2 can't parse hint with the and char (Zap/4&Zap5) | ||
Reporter: | cibi (cibi) | Labels: | |
Date Opened: | 2006-08-12 09:10:30 | Date Closed: | 2006-08-12 14:33:38 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | PBX/pbx_ael |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | For a SNOM 360 Sip Phone i added the following code: hint(SIP/19) 19 => NoOp(); hint(Zap/4&Zap/5) 21 => NoOp(); It causes the following error: ERROR[21079]: ael.y:665 ael_yyerror: ==== File: /etc/asterisk/extensions.ael2, Line 21, Cols: 18-18: Error: syntax error, unexpected '&', expecting ')' If i define a global value in extensions.conf (e.g. S0IN1=Zap/4&Zap/5) and the use it in extensions.ael2: hint(${S0IN1}) 21 => NoOp(); it works. I use Asterisk 1.2.10 with the AEL2 patch for it. | ||
Comments: | By: Steve Murphy (murf) 2006-08-12 14:12:49 I've acknowledged that this is not only a bug for the 1.2 branch of AEL2, but also applies to the trunk. By: Steve Murphy (murf) 2006-08-12 14:14:07 I've reproduced the problem in trunk and the 1.2 branch in teams/murf By: Steve Murphy (murf) 2006-08-12 14:32:26 Revision 39571 fixes this problem in trunk. The team/murf/AEL2-1.2 branch has the same changes (minus the test case) committed. You can revert your current work area, and make and re-apply a patch for 1.2 formed from team/murf/AEL2-1.2, or whatever is appropriate. By: Steve Murphy (murf) 2006-08-12 14:33:38 Since this problem has been reproduced, fixed in 1.2 (my branch), and trunk, and therefore resolved, there is little left to do, but to close this bug! |