[asterisk-users] AEL2 Includes in Macro...

Douglas Garstang DGarstang at interainc.com
Mon Jun 4 09:19:31 MST 2007


Where's Steve Murphy when you need him? :-)

 

This doesn't seem to work in AEL2...

 

Macro foo(arg1) {

 

    .....

    Includes {

         Hangup;

    }

 

}

 

The error is: File: /etc/asterisk/extensions.ael, Line 59, Cols: 5-12:
Error: syntax error, unexpected KW_INCLUDES, expecting '}'

 

The same error does not occur when the includes is in a context.

 

I need to have the ability to include my hangup routine in macros, as
theoretically, a hang up could occur while asterisk is processing code
from the macro.

 

This is Asterisk 1.4.4

 

Doug.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070604/82fe27ea/attachment.htm


More information about the asterisk-users mailing list