Dial Plan Help

Hello

I have a asterisk version 1.4 with 5 macros in extensions.ael and a need migrate the asterisk 1.4 to asterisk 10 but i need know how i can use the macros in extensions.ael in the extensions.conf.

my dial plan in extensions.conf is .
exten => _[12348]0XX,1,Macro(DIAL_EXTEN,${EXTEN},SIP,)

and my macro is.

macro DIAL_EXTEN( ext , dev, vm ) {
if ("${vm}"="") {vm=${ext};};
//NoOp(“Extension:${ext} Protocolo:${dev} Voicemail:${vm}”);
Dial(${dev}/${ext},10);
//NoOp(Dial Status: ${DIALSTATUS});
switch(${DIALSTATUS}) {
case BUSY:
Voicemail(${vm}@default,b);
break;
case CHANUNAVAIL:
Set(CALLERID(num)=${CALLERID(num):-4:1}4${CALLERID(num):2});
goto lookupdundi|${ext}|1;
break;
default:
Voicemail(${vm}@default,u);
};
catch a {
VoiceMailMain(${vm}@default);
return;
};
};

the macro runs greate in asterisk 1.4 but in asterisk 10.0.0 the CLI interface say me
No such context ‘macro-DIAL_EXTEN’ for macro ‘DIAL_EXTEN’.

how i can use my macro in the version of asterisk 10.0.0
please help me.

Preferably don’t mix AEL and non-AEL.

You should replace all the macros by subroutines. From about 1.6, AEL has actually complied AEL so as to use subroutines instead of macros, anyway.