macro stdexten( ext , dev ) { if ("${MACRO_CONTEXT}" = "ael-default") { // Call from internal user // Allow both caller and callee do transfer options = tT; Set(features=nway-invite-both); } else { options = t; Set(features=nway-invite-callee); }; Set(DYNAMIC_FEATURES=${features}); NoOp(${CALLERID(name)}); NoOp(${CALLERID(num)}); NoOp(${CALLERID(all)}); Dial(${dev}/${ext},20,${options}); switch(${DIALSTATUS}) { case BUSY: Voicemail(${ext}, b); break; default: Voicemail(${ext}, u); }; catch a { VoiceMailMain(${ext}); return; }; };