logo
Asterisk Documentation
Overview
Initializing search
    Asterisk
    Asterisk Versions
    Report Documentation Issues
    Contribute to the Documentation
    Asterisk
    Asterisk Versions
    Report Documentation Issues
    Contribute to the Documentation
    • About the Project
    • Asterisk Community
    • Fundamentals
    • Getting Started
      • Core Configuration
      • Channel Drivers
      • Dialplan
        • Conditional Applications
        • Contexts, Extensions, and Priorities
        • Pattern Matching
        • Privilege Escalations with Dialplan Functions
        • Special Dialplan Extensions
        • Switch Statements
        • Asterisk Extension Language AEL
        • Expressions
        • Include Statements
        • Lua Dialplan Configuration
        • Subroutines
          • Gosub
          • Hangup Handlers
          • Macros
          • Party ID Interception Macros and Routines
          • Pre-Bridge Handlers
          • Pre-Dial Handlers
        • Variables
      • Applications
      • Functions
      • Features
      • Interfaces
      • Reporting
      • Miscellaneous
      • WebRTC
      • Codec Opus
    • Deployment
    • Operation
    • Development
    • Latest API
    • Asterisk 16 Documentation
    • Asterisk 18 Documentation
    • Asterisk 19 Documentation
    • Asterisk 20 Documentation
    • Asterisk 21 Documentation
    • Asterisk 22 Documentation
    • Certified Asterisk 18.9 Documentation
    • Certified Asterisk 20.7 Documentation
    • Test Suite Documentation
    • Historical Documentation

    Overview

    Subroutines in Asterisk are defined similarly to standard dialplan contexts and are referred to as Macros and Gosubs. They are invoked via the Macro and Gosub applications, but may also be invoked in the context of Pre-Dial Handlers, Pre-Bridge Handlers and Hangup Handlers via the use of flags and arguments within other applications.

    Content is licensed under a Creative Commons Attribution-ShareAlike 3.0 United States License.
    Made with Material for MkDocs