Kamailio database control tool
kamdbctl command [ parameters ]
kamdbctl is a script to maintain the database needed by some Kamalio modules.
Before you can use kamdbctl you have to select a database engine in the kamctlrc file. Just change the DBENGINE parameter in the respective section in kamctlrc.
Valid values are: MYSQL, PGSQL, ORACLE, DB_BERKELEY, DBTEXT.
The default is 'none'.
The username, password, database name and other settings can be configured by editing the kamctrl script.
backup <file> Dumps the current database to a file.
copy <new_db>
Creates a new database from an existing one.
create <db name or db_path, optional>
Creates a new database with the specified name, or the default if no name is given.
drop <db name or db_path, optional>
Entirely deletes the database with the specified name, or the default if no name is given.
extra
Adds the extra tables
migrate <old_db> <new_db>
Migrates database tables from an old version to the actual version.
presence
Adds the presence related tables.
reinit <db name or db_path, optional>
Entirely deletes and than re-creates tables.
restore <file>
Restores tables from a file.
Not all databases scripts support all commands.
/etc/kamailio/.kamctlrc
/usr/local/etc/kamailio/.kamctlrc
~/.kamctlrc
see /usr/share/doc/kamailio/AUTHORS
Full documentation on Kamailio is available at http://www.kamailio.org/.
Mailing lists:
[email protected] - Kamailio user community [email protected] - Kamailio development, new features and unstable version