E.3. database
The Asterisk database is a simple implementation
based on Version 1 of the Berkeley database. You can add entries to
the database, remove entries from the database, and view entries in
the database with the following commands.
database del family key
Deletes an entry in the Asterisk database for a
given family and key.
database del phones 1000/username
database deltree family [keytree]
Deletes a family or a specific keytree within a
family in the Asterisk database.
database deltree phones
database get family key
Retrieves an entry in the Asterisk database for
a given family and key.
database get phones 1000/username
database put family key value
Adds or updates an entry in the Asterisk
database for a given family, key, and value.
database put phones 1000/username bob
database show [family [key]]
Shows contents of database, or specific
families, keys, and values.
database show phones
debug channel channel_name
Allows a debug of a specific active channel. See
also show
channels.
debug channel SIP/1000-e54f
dial [extension[@context]]
Dials a given extension (optionally, in the
context specified) through the CONSOLE channel. This command is
available only if chan_oss.so or
chan_alsa.so is loaded in the
modules.conf file.
dial 1000@phones
dont include context_to_be_removed in context
Removes a specified include from a context.
dont include local-extensions in incoming
dump agihtml filename
Dumps a list of AGI commands in HTML format to
the given filename. The file will be saved to the /tmp/ directory by default, but a full path
may be specified.
Closes the command-line interface, if you
connected to the Asterisk console via the -r flag. You
cannot use the quit and exit commands to shut
down the PBX (as would be the case if the Asterisk were running in
the foreground). To shut down the PBX rather than exiting the
console, see the stop
and restart
commands.
Reloads the dialplan configuration from the
extensions.conf file. In other
words, it reloads only your dialplan; nothing else. This command is
safe to run even when calls are active. Any new channels being
created will be based on the newly reloaded dialplan.
Hangs up any currently active calls placed using
the CONSOLE channel. This command is only available if chan_oss.so or chan_alsa.so is loaded in the modules.conf file.
help [command [subcommand]...]
Displays help for commands and command-line
usage. A single question mark or tab will do the same.
help show applications
|