[asterisk-bugs] [Asterisk 0014022]: AEL &macro("arg") with UTF-8 argument incorrectly compiles into dialplan

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 10 06:37:24 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14022 
====================================================================== 
Reported By:                wetwired
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   14022
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.22 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-05 02:34 CST
Last Modified:              2008-12-10 06:31 CST
====================================================================== 
Summary:                    AEL  &macro("arg") with UTF-8 argument incorrectly
compiles into dialplan
Description: 
AEL &macro expression used with UTF-8 argument (Russian in my case)
incorrectly compiles into dialplan. It was  broken in Asterisk 1.4.22-rc4.
In Asterisk 1.4.22-rc3  and earlier and also in 1.6.0.1 everything is OK.
====================================================================== 

---------------------------------------------------------------------- 
 (0096073) wetwired (reporter) - 2008-12-10 06:31
 http://bugs.digium.com/view.php?id=14022#c96073 
---------------------------------------------------------------------- 
I've checked out  Asterisk SVN-branch-1.4-r162463 and problem still remains
+ now I have such messages in CLI after ael reload:

[Dec 10 17:15:45] NOTICE[7405]: pbx_ael.c:4477 pbx_load_module: AEL load
process: calculated config file name '/etc/asterisk/extensions.ael'.
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
"?
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
?
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
?
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
?
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
?
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
?
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
?
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
?
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
?
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
?
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
?
[Dec 10 17:15:45] ERROR[7405]: ael.flex:644 ael_yylex: Unhandled char(s):
?
[Dec 10 17:15:45] NOTICE[7405]: pbx_ael.c:4485 pbx_load_module: AEL load
process: parsed config file name '/etc/asterisk/extensions.ael'.

This happens at string 
&test("??????");

But if I add space in the beginning of argument, it works fine
&test(" ??????");

I uploaded my extensions.ael 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-10 06:37 wetwired       Note Added: 0096073                          
======================================================================




More information about the asterisk-bugs mailing list