Upgrade 3CX to v18 and get it hosted free!

Asterisk – Documentation of Application Commands

Author image

Asterisk Dialplan Commands

Here is a list of all the commands that you can use in your Dialplan (extensions.conf).

Obtaining a List of Available Applications in the CLI

  • Asterisk 1.4 or earlier: Type “show applications” or “show application <name>”
  • Asterisk 1.6 or later: Type “core show applications” or “core show application <name>”

Notes:

  • An alphabetical list can be found at the end of this page
  • Please only list applications integrated in the Asterisk releases or CVS versions, with notes about version where it is included. Third party add-ons is listed in a separate section.
  • Colors:
    • Green – Added/functional version
    • Orange – Deprecated version
    • Red – Removed/no longer in present version

General Commands

Billing

Call Management (Hangup, Answer, Dial, etc)

  • AMD: Answering machine detection. (1.4)
  • Answer: Answer a channel if ringing. (1.0)
  • Busy: Indicate busy condition and wait for hangup. (1.0)
  • ChanIsAvail: Check if channel is available. (1.0)
  • Congestion: Indicate congestion and wait for hangup. (1.0)
  • Dial: Place a call and connect to the current channel. (1.0)
  • DISA: DISA (Direct Inward System Access). (1.0)
  • Hangup: Unconditional hangup. (1.0)
  • Incomplete: Returns AST_PBX_INCOMPLETE value. (1.6)
  • Originate: Originate a call and connect to a specified extension or application (1.6.2)
  • RetryDial: Place a call, retrying on failure allowing optional exit extension. (1.2)
  • Ringing: Indicate ringing. (1.0)

Caller Presentation (ID, Name, etc)

ADSI

  • ADSIProg: Load Asterisk ADSI Scripts into phone. (1.0)
  • GetCPEID: Get ADSI CPE ID. (1.0)

Database Handling

  • DBdel: Delete a key from the database. Deprecated in favor of DB_DELETE. (1.4, 1.6)
  • DBdeltree: Delete a family or keytree from the database. (1.0)
  • DBget: Retrieve a value from the database. Deprecated in favor of DB. (1.4, 1.6)
  • DBput: Store a value in the database. Deprecated in favor of DB. (1.4, 1.6)
  • ODBCFinish: Clear the resultset of a successful multirow query (1.6)
  • RealTime: Populate variables with details from database using RealTime. Deprecated in favor of Asterisk func realtime. (1.4, 1.6)
  • RealTimeUpdate: Update a field in a database using RealTime. Deprecated in favor of Asterisk func realtime. (1.4, 1.6)

See Asterisk database for more information.

Application Integration

Control Flow & Timeouts

  • AbsoluteTimeout: Set absolute maximum time of call. Deprecated in favor of TIMEOUT(absolute) (1.2, 1.4)
  • AELSub: Launch subroutine built with AEL (1.4)
  • ContinueWhile: Restart a while loop (1.4)
  • DigitTimeout: Set maximum timeout between digits. Deprecated in favor of TIMEOUT(digit) (1.2, 1.4+)
  • EndWhile: End A While Loop. (1.2)
  • Exec: Execute dialplan application. (1.0)
  • ExecIf: Conditional exec. (1.2)
  • ExecIfTime: Executes dialplan application conditionally based on current time. (1.2)
  • ExitWhile: End a While loop. (1.2)
  • Gosub: Jump to a subroutine and return. (1.2)
  • GosubIf: Conditional jump to a subroutine and return (1.2)
  • Goto: Goto a particular priority, extension, or context. (1.0)
  • GotoIf: Conditional goto. (1.0)
  • GotoIfTime: Conditional goto on current time. (1.0)
  • Macro: Macro Implementation. Deprecated in favor of Gosub/Return. (1.6)
  • MacroExclusive: Only one channel at a time may call this macro, all others have to wait (1.4) Replaced by dialplan functions LOCK(), TRYLOCK(), and UNLOCK() (1.6)
  • MacroExit: Exit the macro as if it had fully completed (1.4) Deprecated in favor of Return (1.6)
  • MacroIf: Conditional Macro Implementation. Deprecated in favor of GosubIf (1.6)
  • NoOp: No operation. For debugging, see Verbose or Log. (1.0)
  • Random: jump to a specified location based on a random probability. Deprecated in favor of Asterisk func rand (1.4, 1.6)
  • ResponseTimeout: Set maximum timeout awaiting response. Deprecated in favor of TIMEOUT(response) (1.2, 1.4)
  • Return: Return from a Gosub or GosubIf. (1.2)
  • StackPop: Remove a return address without returning. (1.2)
  • While: Start A While Loop. (1.2)

String & Variable Manipulation

  • Cut: Split a string on a specified delimiter. Deprecated in favor of Asterisk func cut. (1.2, 1.4)
  • DumpChan: Dump Info About The Calling Channel. (1.0)
  • ImportVar: Set variable to value. (1.2)
  • Math: Perform (rather simple) calculations. Deprecated in favor of MATH. (1.2, 1.4)
  • MSet: Set channel variable(s) or function value(s) (1.6)
  • SetGlobalVar: Set variable to value. Deprecated in favor of GLOBAL. (1.2, 1.4)
  • Set: Set channel variable(s) or function value(s). (1.0)

Sounds: Playback

See Asterisk sound files for more information.

Sounds: Recording and Monitoring (Listening-in)

  • ChangeMonitor: Change monitoring filename of a channel. (1.0)
  • ChanSpy: Universal channel barge-in. (1.2)
  • Dictate: Records and plays back a dictation. (1.2)
  • ExtenSpy: Listen/whisper to a specific extension (1.4)
  • MixMonitor: Record and mix call legs natively (unlike Monitor). (1.2)
  • Monitor: Record a telephone conversation to a sound file. (1.0)
  • Record: Record user voice input to a file. (1.0)
  • StopMonitor: Stop monitoring a channel. (1.0)
  • StopMixMonitor: Stop monitoring a channel monitored with MixMonitor. (1.4)

SIP Commands

DAHDI (was ZAP) Commands

  • DAHDIBarge: Barge in (monitor) DAHDI channel (was ZapBarge) (1.0)
  • DAHDIRAS: Provide ISDN data service (was ZapRAS)
  • DAHDIScan: Scan DAHDI channels to monitor calls (was ZapScan)
  • DAHDISendKeypadFacility: Send digits out of band over a PRI
  • Flash: Flashes a Zap/DAHDI Trunk. (1.0)
  • ZapCD: ISDN call deflection (bristuff)
  • ZapEC: Echo cancellation on/off (bristuff)

See Asterisk ZAP channels, Asterisk config zapata.conf for more information.

Voicemail and Conferencing

  • ConfBridge: Conference bridge application. (1.6.2)
  • Directory: Provide directory of voicemail extensions. (1.0)
  • HasNewVoicemail: Conditionally branches to priority + 101. Deprecated in favor of Asterisk func vmcount. (1.4, 1.6)
  • HasVoicemail: Conditionally branches to priority + 101. Deprecated in favor of Asterisk func vmcount. (1.4, 1.6)
  • MailboxExists: Checks if mailbox exists. (1.0+)
  • MeetMe: Simple MeetMe conference bridge. (1.0)
  • Asterisk cmd MeetmeAdmin: MeetMe conference Administration. (1.0)
  • MeetMeChannelAdmin: MeetMe conference Administration (channel specific) (1.6)
  • MeetMeCount: MeetMe participant count. (1.0)
  • MiniVM: Mini-Voicemail (1.6)
  • MinivmAccMess: Mini-Voicemail – record account specific messages (1.6)
  • MinivmDelete: Mini-Voicemail – delete voicemail messages (1.6)
  • MinivmGreet: Mini-Voicemail – Play prompts (1.6)
  • MinivmNotify: Mini-Voicemail – Notify voicemail owner about new messages (1.6)
  • MinivmRecord: Mini-Voicemail – Receive voicemail and forward via email (1.6)
  • VoiceMail: Leave a voicemail message. (1.0)
  • VoiceMailMain: Enter voicemail system. (1.0)
  • VMAuthenticate: Authenticate a user based on voicemail.conf. (1.2)
  • VMSayName: Play the recording name of the voicemail user if it exists, otherwise play the mailbox number. (1.8)

See Asterisk config voicemail.conf for more information.

Queue and ACD Management

Short Message Service (SMS)

  • SMS: Pass SMS (short messaging service) to and from SMSc (SMS Center). (1.0)

Alarm Monitoring/Central Station

  • AlarmReceiver: Emulate an Ademco Contact ID Alarm Receiver. (1.0)

Amateur Radio/Repeater Linking

  • Rpt: Support Amateur Radio and Commercial Two Way Repeater Linking. (1.0)

External Applications – Not in the Digium Distribution (Svn or Http Tarballs)

  • ALSAMonitor: Monitor the ALSA console.
  • app Prepaid: Designed for Postgres
  • ASR – professional, multi lingual speech recognition for Asterisk
  • Asterisk app_dbodbc: Dialplan modifiers using unixODBC
  • Backticks: Store shell command result to asterisk variable
  • DBRewrite: Execute perl compatible regular expression and substitution out of a MySQL Database.
  • DBQuery: Execute predefined queries against MySQL Servers, and get the result back into the dialplan.
  • DTMFToText: Enter alphanumeric strings with DTMF phone
  • DynExtenDB: Store extensions in database
  • Flite: Say text with the Festival Lite voice synthesizer (faster response than Festival)
  • ICES: Streaming calls to the Internet
  • Iconv: Convert character sets.
  • LDAPget: Retrieve a value from a LDAP directory server
  • MYSQL: Perform various mySQL database activities.
  • NBScat: Play an NBS local stream
  • PPPD: PPP daemon connector
  • Perl: res_perl is the mod_perl of Apache, only for Asterisk.
  • PHP: res_php integrates PHP into Asterisk without AGI.
  • PPPD: PPP daemon connector
  • Asterisk Cmd Voximal – VoiceXML interpreter for Asterisk
  • Vxml – professional, VoiceXML interpreter for Asterisk

Bristuff Application

All of those are part of the Bristuff asterisk patch.

  • Autoanswer: Autoanswer a call for a specified extension
  • AutoanswerLogin: Login to the autoanswer application
  • Devstate: Generate a device state change event (inuse, busy, ringing …)
  • PickUp: Mostly channel independent.
  • PickUpChan: Pick up the specified channel
  • PickupSIPuri
  • PickDown: Hang up on a remotely ringing call
  • Segfault: Crash Asterisk with segfault
  • Steal: Take over a bridged call (leg)
  • Asterisk cmd BristuffZapCD: ISDN call deflection
  • ZapEC: Enable or disable echo cancellation for Zap
  • ZapInband: Inband call progress (pre-answer)

vISDN applications

Applications for Sirrix channels

  • SrxDeflect: Deflect an incoming call
  • SrxEchoCan: Disable/enable Echo Cancellation
  • SrxMWI: Set / reset MessageWaitingIndication (MWI) on a Sirrix group

See Also


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.