[asterisk-bugs] [Asterisk 0013752]: Dial with M(macro) doesn't work with AEL macros

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Oct 21 09:05:40 CDT 2008


The following issue has been UPDATED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13752 
====================================================================== 
Reported By:                vmikhnevych
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   13752
Category:                   Applications/app_macro
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.0 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-10-21 04:59 CDT
Last Modified:              2008-10-21 09:05 CDT
====================================================================== 
Summary:                    Dial with M(macro) doesn't work with AEL macros
Description: 
Whenever we use smth like this (with or without '&'):
Dial(SIP/number at context||M(&setMOH|MUSICONHOLD_1))

With an AEL macro like this:
macro setMOH(mohClass) {
	Set(CHANNEL(musicclass)=${mohClass});
	return;
};

We get:
WARNING[30765]: app_macro.c:201 _macro_exec: No such context
macro-&setMOH' for macro '&setMOH'
And the macro is not executed.

Dialplan macro, defined in extensions.conf, works ok.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-21 09:05 murf           Resolution               open => no change
required
======================================================================




More information about the asterisk-bugs mailing list