Commit a12cc71282 for asterisk.org
commit a12cc71282c1a0212200f037142680b81c6775a6
Author: Sean Bright <sean@seanbright.com>
Date: Wed Jun 24 20:22:46 2026 +0000
extensions.ael.sample: Restore removed macros
Commit e8f548c1 removed AEL `macro` definition and calls from the
sample configuration file, but those do not use the deprecated/removed
`Macro` app - they use `Gosub` under the hood.
diff --git a/configs/samples/extensions.ael.sample b/configs/samples/extensions.ael.sample
index 9de01d3059..62ab7cdb54 100644
--- a/configs/samples/extensions.ael.sample
+++ b/configs/samples/extensions.ael.sample
@@ -173,6 +173,18 @@ context ael-dundi-e164-lookup {
//
};
+//
+// DUNDi can also be implemented as a Macro instead of using
+// the Local channel driver.
+//
+macro ael-dundi-e164(exten) {
+//
+// ARG1 is the extension to Dial
+//
+ goto ${exten}|1;
+ return;
+};
+
//
// The SWITCH statement permits a server to share the dialplan with
// another server. Use with care: Reciprocal switch statements are not
@@ -288,6 +300,22 @@ context ael-local {
// eswitch => IAX2/context@${CURSERVER}
+macro ael-std-exten-ael( ext , dev ) {
+ Dial(${dev}/${ext},20);
+ switch(${DIALSTATUS}) {
+ case BUSY:
+ Voicemail(${ext},b);
+ break;
+ default:
+ Voicemail(${ext},u);
+ };
+ catch a {
+ VoiceMailMain(${ext});
+ return;
+ };
+ return;
+};
+
context ael-demo {
s => {
Wait(1);