[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 15:58:41 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14941 
====================================================================== 
Reported By:                bpgoldsb
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14941
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
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:              
====================================================================== 
Date Submitted:             2009-04-20 14:01 CDT
Last Modified:              2009-04-20 15:58 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)
====================================================================== 

---------------------------------------------------------------------- 
 (0103491) svnbot (reporter) - 2009-04-20 15:58
 http://bugs.digium.com/view.php?id=14941#c103491 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 189462

U   branches/1.4/pbx/ael/ael.tab.c
U   branches/1.4/pbx/ael/ael.y

------------------------------------------------------------------------
r189462 | seanbright | 2009-04-20 15:58:40 -0500 (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=189462 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-20 15:58 svnbot         Checkin                                      
2009-04-20 15:58 svnbot         Note Added: 0103491                          
======================================================================




More information about the asterisk-bugs mailing list