Asterisk comes with a database that is used internally and made available for Asterisk programmers and administrators to use as they see fit.
Asterisk versions up to 1.8 used the Berkeley DB, and in version 10 the project SQLite3 astdb back-end.. You can read about database migration between those major versions in the section
Purpose of the internal database
The database really has two purposes:
- Asterisk uses it to store information that needs to persist between reloads/restarts. Various modules use it for this purpose automatically.
- Users can use it to store arbitrary data. This is done using a variety of dialplan applications and functions such as:
The functions and applications for Asterisk 11 are linked above, but you should look at the documentation for the version you have deployed.
Database commands on the CLI
Sub-commands under the command "database" allow a variety of functions to be performed on or with the database.