[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 04:59:27 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13752 
====================================================================== 
Reported By:                vmikhnevych
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13752
Category:                   Applications/app_macro
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
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:              
====================================================================== 
Date Submitted:             2008-10-21 04:59 CDT
Last Modified:              2008-10-21 04:59 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 04:59 vmikhnevych    Asterisk Version          => 1.6.0           
2008-10-21 04:59 vmikhnevych    SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list