[asterisk-bugs] [Asterisk 0014941]: Using '@' to specify a context in AEL will cause parse errors
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Apr 20 16:31:37 CDT 2009
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14941
======================================================================
Reported By: bpgoldsb
Assigned To: seanbright
======================================================================
Project: Asterisk
Issue ID: 14941
Category: PBX/pbx_ael
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Asterisk Version: 1.6.1.0-rc4
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-04-20 14:01 CDT
Last Modified: 2009-04-20 16:31 CDT
======================================================================
Summary: Using '@' to specify a context in AEL will cause
parse errors
Description:
The following code in the older style of dialplan will create a hint for
701 without errors:
exten => 701,1,ParkedCall(701)
exten => 701,hint,park:701 at parkedcalls
The equivalent AEL code below will cause the AEL parser to throw a syntax
error:
hint(park:701 at parkedcalls) 701 => ParkedCall(701)
======================================================================
----------------------------------------------------------------------
(0103496) svnbot (reporter) - 2009-04-20 16:31
http://bugs.digium.com/view.php?id=14941#c103496
----------------------------------------------------------------------
Repository: asterisk
Revision: 189525
_U branches/1.6.0/
U branches/1.6.0/res/ael/ael.tab.c
U branches/1.6.0/res/ael/ael.y
------------------------------------------------------------------------
r189525 | seanbright | 2009-04-20 16:31:36 -0500 (Mon, 20 Apr 2009) | 27
lines
Merged revisions 189464 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r189464 | seanbright | 2009-04-20 17:09:59 -0400 (Mon, 20 Apr 2009) | 20
lines
Merged revisions 189462 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r189462 | seanbright | 2009-04-20 16:58:39 -0400 (Mon, 20 Apr 2009) |
13 lines
Properly handle @s within hints in AEL.
AEL was not handling the case of a device hint containing an @ symbol,
which
caused parking hints (e.g. hint(park:exten at context)) to error out the
parser.
This patch makes AEL treat the @ the same way it treats colon and
ampersand
now, meaning the characters are included in verbatim.
(closes issue http://bugs.digium.com/view.php?id=14941)
Reported by: bpgoldsb
Patches:
bug14941.patch uploaded by seanbright (license 71)
Tested by: bpgoldsb
........
................
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=189525
Issue History
Date Modified Username Field Change
======================================================================
2009-04-20 16:31 svnbot Checkin
2009-04-20 16:31 svnbot Note Added: 0103496
======================================================================
More information about the asterisk-bugs
mailing list