System information

AGI command Description
SAY DIGITS Say a string of digits. For example, 100 would be said as “one zero zero” if the channel’s language
is set to English.
SAY NUMBER Say a number. For example, 100 would be said as “one hundred” if the channel’s language is set to
English.
SAY PHONETIC Say a string of characters, but use a common word for each letter (Alpha, Bravo, Charlie…).
SAY DATE Say a given date.
SAY TIME Say a given time.
SAY DATETIME Say a given date and time using a specified format.
SEND IMAGE Send an image to a channel. IAX2 supports this, but there are no actively developed IAX2 clients
that support it that we know of.
SEND TEXT Send text to a channel that supports it. This can be used with SIP and IAX2 channels, at least.
SET AUTOHANGUP Schedule the channel to be hung up at a specified point in time in the future.
SET CALLERID Set the caller ID name and number on the channel.
SET CONTEXT Set the current dialplan context on the channel.
SET EXTENSION Set the current dialplan extension on the channel.
SET MUSIC Start or stop music on hold on the channel.
SET PRIORITY Set the current dialplan priority on the channel.
SET VARIABLE Set a channel variable to a given value.
STREAM FILE Stream the contents of a file to a channel.
CONTROL STREAM
FILE
Stream the contents of a file to a channel, but also allow the channel to control the stream. For
example, the channel can pause, rewind, or fast forward the stream.
TDD MODE Toggle the TDD (Telecommunications Device for the Deaf) mode on the channel.
VERBOSE Send a message to the verbose logger channel. Verbose messages show up on the Asterisk console
if the verbose setting is set high enough. Verbose messages will also go to any log file that has been
configured for the verbose logger channel in /etc/asterisk/logger.conf.
WAIT FOR DIGIT Wait for the caller to press a digit.
SPEECH CREATE Initialize speech recognition. This must be done before using other speech AGI commands.
b
SPEECH SET Set a speech engine setting. The settings that are available are specific to the speech recognition
engine in use.
SPEECH DESTROY Destroy resources that were allocated for doing speech recognition. This command should be the
last speech command executed.
SPEECH LOAD
GRAMMAR
Load a grammar.
SPEECH UNLOAD
GRAMMAR
Unload a grammar.
SPEECH ACTIVATE
GRAMMAR
Activate a grammar that has been loaded.
484 | Chapter 21:Asterisk Gateway Interface (AGI)