mirror of
https://github.com/asterisk/asterisk.git
synced 2026-05-04 20:33:53 +00:00
app_macro: Remove deprecated module.
For most modules that interacted with app_macro, this change is limited to no longer looking for the current context from the macrocontext when set. Additionally, the following modules are impacted: app_dial - no longer supports M^ connected/redirecting macro app_minivm - samples written using macro will no longer work. The sample needs a re-write app_queue - can no longer a macro on the called party's channel. Use gosub which is currently supported ccss - no callback macro, gosub only app_voicemail - no macro support channel - remove macrocontext and priority, no connected line or redirection macro options options - stdexten is deprecated to gosub as the default and only pbx - removed macrolock pbx_dundi - no longer look for macro snmp - removed macro context, exten, and priority ASTERISK-30304 Change-Id: I830daab293117179b8d61bd4df0d971a1b3d07f6
This commit is contained in:
committed by
Friendly Automation
parent
6ecec51e6a
commit
e8f548c155
@@ -89,8 +89,6 @@ documentation_language = en_US ; Set the language you want documentation
|
||||
; configuration files (/etc/asterisk) with a
|
||||
; lock.
|
||||
;stdexten = gosub ; How to invoke the extensions.conf stdexten.
|
||||
; macro - Invoke the stdexten using a macro as
|
||||
; done by legacy Asterisk versions.
|
||||
; gosub - Invoke the stdexten using a gosub as
|
||||
; documented in extensions.conf.sample.
|
||||
; Default gosub.
|
||||
|
||||
@@ -181,15 +181,10 @@
|
||||
;
|
||||
; When using a generic CC agent, the caller who requested CC will be
|
||||
; called back when a called party becomes available. When the caller
|
||||
; answers his phone, the administrator may opt to have a macro run.
|
||||
; What this macro does is up to the administrator. By default there
|
||||
; is no callback macro configured.
|
||||
;
|
||||
;cc_callback_macro=
|
||||
;
|
||||
; Alternatively, the administrator may run a subroutine. By default
|
||||
; there is no callback subroutine configured. The subroutine should
|
||||
; be specified in the format: [[context,]exten,]priority
|
||||
; answers his phone, the administrator may opt to have a subroutine
|
||||
; run. By default there is no callback subroutine configured. The
|
||||
; subroutine should be specified in the format:
|
||||
; [[context,]exten,]priority
|
||||
;
|
||||
;cc_callback_sub=
|
||||
;
|
||||
|
||||
@@ -175,18 +175,6 @@ 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;
|
||||
};
|
||||
|
||||
//
|
||||
// Here are the entries you need to participate in the IAXTEL
|
||||
// call routing system. Most IAXTEL numbers begin with 1-700, but
|
||||
@@ -313,22 +301,6 @@ 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);
|
||||
|
||||
@@ -290,8 +290,7 @@ include => dundi-e164-switch
|
||||
; ARG1 is the extension to Dial
|
||||
;
|
||||
; Extension "s" is not a wildcard extension that matches "anything".
|
||||
; In macros, it is the start extension. In most other cases,
|
||||
; you have to goto "s" to execute that extension.
|
||||
; In most other cases, you have to goto "s" to execute that extension.
|
||||
;
|
||||
; Note: In old versions of Asterisk the PBX in some cases defaulted to
|
||||
; extension "s" when a given extension was wrong (like in AMI originate).
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
; This is an example on how to use the Mini-Voicemail system to build
|
||||
; voicemail systems.
|
||||
;
|
||||
; This example remains for now despite using macro, with the idea that if anyone is still
|
||||
; using this sample, they can be encouraged to re-write it using gosub.
|
||||
;
|
||||
;.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
|
||||
; A macro to test the MINIVMACCOUNT dialplan function
|
||||
; Currently, accountcode and pincode is not used in the application
|
||||
|
||||
@@ -95,8 +95,8 @@
|
||||
; by the PBX core. In this case, these applications are executed outside of the
|
||||
; PBX core, so it does *not* make sense to use any application which has any
|
||||
; concept of dialplan flow. Examples of this would be things like Goto,
|
||||
; Background, WaitExten, and many more. The exceptions to this are Gosub and
|
||||
; Macro routines which must complete for the call to continue.
|
||||
; Background, WaitExten, and many more. The exceptions to this are Gosub
|
||||
; routines which must complete for the call to continue.
|
||||
;
|
||||
; Enabling these features means that the PBX needs to stay in the media flow and
|
||||
; media will not be re-directed if DTMF is sent in the media stream.
|
||||
|
||||
@@ -34,7 +34,7 @@ format=wav49
|
||||
;
|
||||
;Turn on logfile with the following syntax. One line per voicemail received
|
||||
;with minivmRecord()
|
||||
; Mailbox:domain:macrocontext:exten:priority:callerchan:callerid:origdate:origtime:duration:durationstatus:accountcode
|
||||
; Mailbox:domain:exten:priority:callerchan:callerid:origdate:origtime:duration:durationstatus:accountcode
|
||||
;logfile=/var/log/asterisk/minivm.log
|
||||
; Who the e-mail notification should appear to come from
|
||||
serveremail=asterisk
|
||||
|
||||
@@ -254,12 +254,6 @@ monitor-type = MixMonitor
|
||||
;
|
||||
;setqueuevar=no
|
||||
|
||||
; if set, run this macro when connected to the queue member
|
||||
; you can override this macro by setting the macro option on
|
||||
; the queue application
|
||||
;
|
||||
;membermacro=macro_name[,arg1[,...][,argN]]
|
||||
|
||||
; if set, run this gosub when connected to the queue member
|
||||
; you can override this gosub by setting the gosub option on
|
||||
; the queue application
|
||||
|
||||
@@ -22,7 +22,7 @@ fullname = New User
|
||||
;
|
||||
userbase = 6000
|
||||
;
|
||||
; Create voicemail mailbox and use use macro-stdexten
|
||||
; Create voicemail mailbox
|
||||
;
|
||||
hasvoicemail = yes
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user