Application Macro

Reading every where about Application Macro but no where got the detailed information…like is it an application such as Dial or Goto? or we have to create a Macro-Name file in extensions.conf for example

[Macro-Name]
Macro=goto extension 1111
ARG1=goto voicemail

and so on are all is predefined? please explain in simple words its usage and what Macro Stands for in Asterisk Terms.

Thank you.

Here’s an example of a “standard extension” macro that we use to answer an incoming call, ring the extension, and go to voicemail if necessary. The caller can also press the * key, enter the appropriate password, and pick up voicemail or change options.

[macro-stdext]
; new version - doesn't use priority jumping, which is deprecated
; 02/04/09 BJG - added
exten => s,1,Dial(SIP/${MACRO_EXTEN},15,rtT)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,VoiceMail(${MACRO_EXTEN}@${MACRO_CONTEXT},us)
exten => s-BUSY,1,VoiceMail(${MACRO_EXTEN}@${MACRO_CONTEXT},bs)
exten => s-ANSWER,1,Hangup()
exten => _s-.,1,Goto(s-NOANSWER,1)
exten => a,1,VoicemailMain(${MACRO_EXTEN}@${MACRO_CONTEXT})
exten => a,n,Hangup()
;

Here’s how it is called from a dialplan:

exten => 1234,1,Macro(stdext)

MACRO = ?

Where is predefined and how we can make changes…?

I suggest reading this:


cachefly.oreilly.com/books/9780596510480.pdf