Section E.3. database


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. [*]

[*] For more about the Asterisk database, see Chapter 6.

database del

 database del   family key   

Deletes an entry in the Asterisk database for a given family and key.

 database del phones 1000/username 

database deltree

 database deltree   family   [   keytree   ] 

Deletes a family or a specific keytree within a family in the Asterisk database.

 database deltree phones 

database get

 database get   family key   

Retrieves an entry in the Asterisk database for a given family and key.

 database get phones 1000/username 

database put

 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

 database show [   family   [   key   ]] 

Shows contents of database, or specific families, keys, and values.

 database show phones 

debug channel

 debug channel   channel_name   

Allows a debug of a specific active channel. See also show channels .

 debug channel SIP/1000-e54f 

dial

 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

 dont include   context_to_be_removed   in   context   

Removes a specified include from a context.

 dont include local-extensions in incoming 

dump agihtml

 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.

exit

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.

extensions reload

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.

hangup

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

 help [   command   [   subcommand   ]...] 

Displays help for commands and command-line usage. A single question mark or tab will do the same.

 help show applications 



Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
ISBN: B0026OR3OO
EAN: N/A
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net