Jelajahi Sumber

Documentation update

oej 16 tahun lalu
induk
melakukan
85da6c04c4

+ 266 - 254
modules/db_berkeley/README

@@ -10,40 +10,40 @@ Will Quan
 
 
    Copyright © 2007 Cisco Systems
    Copyright © 2007 Cisco Systems
    Revision History
    Revision History
-   Revision $Revision: 846 $ $Date: 2006-05-22 09:15:40 -0500
-                             (Mon, 22 May 2006) $
-     __________________________________________________________
+   Revision $Revision: 846 $ $Date: 2006-05-22 09:15:40 -0500 (Mon, 22 May
+   2006) $
+     __________________________________________________________________
 
 
    Table of Contents
    Table of Contents
 
 
    1. Admin Guide
    1. Admin Guide
 
 
-        1.1. Overview
-        1.2. Dependencies
+        1. Overview
+        2. Dependencies
 
 
-              1.2.1. Kamailio Modules
-              1.2.2. External Libraries or Applications
+              2.1. Kamailio Modules
+              2.2. External Libraries or Applications
 
 
-        1.3. Exported Parameters
+        3. Exported Parameters
 
 
-              1.3.1. auto_reload (integer)
-              1.3.2. log_enable (integer)
-              1.3.3. journal_roll_interval (integer seconds)
+              3.1. auto_reload (integer)
+              3.2. log_enable (integer)
+              3.3. journal_roll_interval (integer seconds)
 
 
-        1.4. Exported Functions
-        1.5. Exported MI Functions
+        4. Exported Functions
+        5. Exported MI Functions
 
 
-              1.5.1. bdb_reload
+              5.1. bdb_reload
 
 
-        1.6. Installation and Running
-        1.7. Database Schema and Metadata
-        1.8. METADATA_COLUMNS (required)
-        1.9. METADATA_KEYS (required)
-        1.10. METADATA_READONLY (optional)
-        1.11. METADATA_LOGFLAGS (optional)
-        1.12. DB Maintaince Script : kamdbctl
-        1.13. DB Recovery : kambdb_recover
-        1.14. Known Limitations
+        6. Installation and Running
+        7. Database Schema and Metadata
+        8. METADATA_COLUMNS (required)
+        9. METADATA_KEYS (required)
+        10. METADATA_READONLY (optional)
+        11. METADATA_LOGFLAGS (optional)
+        12. DB Maintaince Script : kamdbctl
+        13. DB Recovery : kambdb_recover
+        14. Known Limitations
 
 
    List of Examples
    List of Examples
 
 
@@ -60,32 +60,67 @@ Will Quan
 
 
 Chapter 1. Admin Guide
 Chapter 1. Admin Guide
 
 
-1.1. Overview
+   Table of Contents
+
+   1. Overview
+   2. Dependencies
+
+        2.1. Kamailio Modules
+        2.2. External Libraries or Applications
+
+   3. Exported Parameters
+
+        3.1. auto_reload (integer)
+        3.2. log_enable (integer)
+        3.3. journal_roll_interval (integer seconds)
+
+   4. Exported Functions
+   5. Exported MI Functions
+
+        5.1. bdb_reload
+
+   6. Installation and Running
+   7. Database Schema and Metadata
+   8. METADATA_COLUMNS (required)
+   9. METADATA_KEYS (required)
+   10. METADATA_READONLY (optional)
+   11. METADATA_LOGFLAGS (optional)
+   12. DB Maintaince Script : kamdbctl
+   13. DB Recovery : kambdb_recover
+   14. Known Limitations
 
 
-   This is a module which integrates the Berkeley DB into
-   Kamailio. It implements the DB API defined in Kamailio.
+1. Overview
 
 
-1.2. Dependencies
+   This is a module which integrates the Berkeley DB into SIP-router. It
+   implements the DB API defined in SIP-router.
 
 
-1.2.1. Kamailio Modules
+2. Dependencies
+
+   2.1. Kamailio Modules
+   2.2. External Libraries or Applications
+
+2.1. Kamailio Modules
 
 
    The following modules must be loaded before this module:
    The following modules must be loaded before this module:
      * No dependencies on other Kamailio modules.
      * No dependencies on other Kamailio modules.
 
 
-1.2.2. External Libraries or Applications
+2.2. External Libraries or Applications
 
 
-   The following libraries or applications must be installed
-   before running Kamailio with this module loaded:
-     * Berkeley Berkeley DB 4.6 - an embedded database.
+   The following libraries or applications must be installed before
+   running Kamailio with this module loaded:
+     * Berkeley Berkeley DB - an embedded database. Version >= 4.6.
 
 
-1.3. Exported Parameters
+3. Exported Parameters
 
 
-1.3.1. auto_reload (integer)
+   3.1. auto_reload (integer)
+   3.2. log_enable (integer)
+   3.3. journal_roll_interval (integer seconds)
 
 
-   The auto-reload will close and reopen a Berkeley DB when the
-   files inode has changed. The operation occurs only duing a
-   query. Other operations such as insert or delete, do not invoke
-   auto_reload.
+3.1. auto_reload (integer)
+
+   The auto-reload will close and reopen a Berkeley DB when the files
+   inode has changed. The operation occurs only duing a query. Other
+   operations such as insert or delete, do not invoke auto_reload.
 
 
    Default value is 0 (1 - on / 0 - off).
    Default value is 0 (1 - on / 0 - off).
 
 
@@ -94,18 +129,17 @@ Chapter 1. Admin Guide
 modparam("db_berkeley", "auto_reload", 1)
 modparam("db_berkeley", "auto_reload", 1)
 ...
 ...
 
 
-1.3.2. log_enable (integer)
+3.2. log_enable (integer)
 
 
-   The log_enable boolean controls when to create journal files.
-   The following operations can be journaled: INSERT, UPDATE,
-   DELETE. Other operations such as SELECT, do not. This
-   journaling are required if you need to recover from a corrupt
-   DB file. That is, kambdb_recover requires these to rebuild the
-   db file. If you find this log feature useful, you may also be
-   interested in the METADATA_LOGFLAGS bitfield that each table
-   has. It will allow you to control which operations to journal,
-   and the destination (like syslog, stdout, local-file). Refer to
-   bdblib_log() and documentation on METADATA.
+   The log_enable boolean controls when to create journal files. The
+   following operations can be journaled: INSERT, UPDATE, DELETE. Other
+   operations such as SELECT, do not. This journaling are required if you
+   need to recover from a corrupt DB file. That is, kambdb_recover
+   requires these to rebuild the db file. If you find this log feature
+   useful, you may also be interested in the METADATA_LOGFLAGS bitfield
+   that each table has. It will allow you to control which operations to
+   journal, and the destination (like syslog, stdout, local-file). Refer
+   to bdblib_log() and documentation on METADATA.
 
 
    Default value is 0 (1 - on / 0 - off).
    Default value is 0 (1 - on / 0 - off).
 
 
@@ -114,11 +148,11 @@ modparam("db_berkeley", "auto_reload", 1)
 modparam("db_berkeley", "log_enable", 1)
 modparam("db_berkeley", "log_enable", 1)
 ...
 ...
 
 
-1.3.3. journal_roll_interval (integer seconds)
+3.3. journal_roll_interval (integer seconds)
 
 
-   The journal_roll_interval will close and open a new log file.
-   The roll operation occurs only at the end of writing a log, so
-   it is not guaranteed to to roll 'on time'.
+   The journal_roll_interval will close and open a new log file. The roll
+   operation occurs only at the end of writing a log, so it is not
+   guaranteed to to roll 'on time'.
 
 
    Default value is 0 (off).
    Default value is 0 (off).
 
 
@@ -127,139 +161,131 @@ modparam("db_berkeley", "log_enable", 1)
 modparam("db_berkeley", "journal_roll_interval", 3600)
 modparam("db_berkeley", "journal_roll_interval", 3600)
 ...
 ...
 
 
-1.4. Exported Functions
+4. Exported Functions
 
 
    No function exported to be used from configuration file.
    No function exported to be used from configuration file.
 
 
-1.5. Exported MI Functions
+5. Exported MI Functions
+
+   5.1. bdb_reload
 
 
-1.5.1. bdb_reload
+5.1. bdb_reload
 
 
-   Causes db_berkeley module to re-read the contents of specified
-   table (or dbenv). The db_berkeley DB actually loads each table
-   on demand, as opposed to loading all at mod_init time. The
-   bdb_reload operation is implemented as a close followed by a
-   reopen. Note- bdb_reload will fail if a table has not been
-   accessed before (because the close will fail).
+   Causes db_berkeley module to re-read the contents of specified table
+   (or dbenv). The db_berkeley DB actually loads each table on demand, as
+   opposed to loading all at mod_init time. The bdb_reload operation is
+   implemented as a close followed by a reopen. Note- bdb_reload will fail
+   if a table has not been accessed before (because the close will fail).
 
 
    Name: bdb_reload
    Name: bdb_reload
 
 
-   Parameters: tablename (or db_path); to reload a particular
-   table provide the tablename as the arguement (eg subscriber);
-   to reload all tables provide the db_path to the db files. The
-   path can be found in kamctlrc DB_PATH variable.
+   Parameters: tablename (or db_path); to reload a particular table
+   provide the tablename as the arguement (eg subscriber); to reload all
+   tables provide the db_path to the db files. The path can be found in
+   kamctlrc DB_PATH variable.
 
 
-1.6. Installation and Running
+6. Installation and Running
 
 
-   First download, compile and install the Berkeley DB. This is
-   outside the scope of this document. Documentation for this
-   procedure is available on the Internet.
+   First download, compile and install the Berkeley DB. This is outside
+   the scope of this document. Documentation for this procedure is
+   available on the Internet.
 
 
-   Next, prepare to compile Kamailio with the db_berkeley module.
-   In the directory /modules/db_berkeley, modify the Makefile to
-   point to your distribution of Berkeley DB. You may also define
-   'BDB_EXTRA_DEBUG' to compile in extra debug logs. However, it
-   is not a recommended deployment to production servers.
+   Next, prepare to compile SIP-router with the db_berkeley module. In the
+   directory /modules/db_berkeley, modify the Makefile to point to your
+   distribution of Berkeley DB. You may also define 'BDB_EXTRA_DEBUG' to
+   compile in extra debug logs. However, it is not a recommended
+   deployment to production servers.
 
 
-   Because the module dependes on an external library, the
-   db_berkeley module is not compiled and installed by default.
-   You can use one of the next options.
+   Because the module dependes on an external library, the db_berkeley
+   module is not compiled and installed by default. You can use one of the
+   next options.
      * edit the "Makefile" and remove "db_berkeley" from
      * edit the "Makefile" and remove "db_berkeley" from
-       "excluded_modules" list. Then follow the standard procedure
-       to install Kamailio: "make all; make install".
-     * from command line use: 'make all
-       include_modules="db_berkeley"; make install
-       include_modules="db_berkeley"'.
-
-   Installation of Kamailio is performed by simply running make
-   install as root user of the main directory. This will install
-   the binaries in /usr/local/sbin/. If this was successful,
-   openser control engine files should now be installed as
-   /usr/local/sbin/kamdbctl.
-
-   Decide where (on the filesystem) you want to install the
-   Berkeley DB files. For instance,
-   '/usr/local/etc/kamailio/db_berkeley' directory. Make note of
-   this directory as we need to add this path to the kamctlrc
-   file. Note: Kamailio will not startup without these DB files.
-
-   Edit kamctlrc - There are two parameters in this file that
-   should be configured before openserctrdb script can work
-   properly: DBENGINE and DB_PATH. Edit file:
-   '/usr/local/etc/kamailio/kamctlrc'
-                ## database type: MYSQL, PGSQL, DB_BERKELEY, or DBTEXT,
-by default none is loaded
+       "excluded_modules" list. Then follow the standard procedure to
+       install Kamailio: "make all; make install".
+     * from command line use: 'make all include_modules="db_berkeley";
+       make install include_modules="db_berkeley"'.
+
+   Installation of SIP-router is performed by simply running make install
+   as root user of the main directory. This will install the binaries in
+   /usr/local/sbin/. If this was successful, SIP-router control engine
+   files should now be installed as /usr/local/sbin/kamdbctl.
+
+   Decide where (on the filesystem) you want to install the Berkeley DB
+   files. For instance, '/usr/local/etc/kamailio/db_berkeley' directory.
+   Make note of this directory as we need to add this path to the kamctlrc
+   file. Note: SIP-router will not startup without these DB files.
+
+   Edit kamctlrc - There are two parameters in this file that should be
+   configured before kamdbctl script can work properly: DBENGINE and
+   DB_PATH. Edit file: '/usr/local/etc/sip-router/kamctlrc'
+                ## database type: MYSQL, PGSQL, DB_BERKELEY, or DBTEXT, by defau
+lt none is loaded
                 # DBENGINE=DB_BERKELEY
                 # DBENGINE=DB_BERKELEY
 
 
                 ## database path used by dbtext or db_berkeley
                 ## database path used by dbtext or db_berkeley
                 # DB_PATH="/usr/local/etc/kamailio/db_berkeley"
                 # DB_PATH="/usr/local/etc/kamailio/db_berkeley"
 
 
-   (Optional) Pre creation step- Customize your meta-data. The DB
-   files are initially seeded with necessary meta-data. This is a
-   good time to review the meta-data section details, before
-   making modifications to your tables dbschema. By default, the
-   files are installed in
-   '/usr/local/share/kamailio/db_berkeley/openser' By default
-   these tables are created Read/Write and without any journalling
-   as shown. These settings can be modified on a per table basis.
-   Note: If you plan to use kambdb_recover, you must change the
-   LOGFLAGS.
+   (Optional) Pre creation step- Customize your meta-data. The DB files
+   are initially seeded with necessary meta-data. This is a good time to
+   review the meta-data section details, before making modifications to
+   your tables dbschema. By default, the files are installed in
+   '/usr/local/share/sip-router/db_berkeley/sip-router' By default these
+   tables are created Read/Write and without any journalling as shown.
+   These settings can be modified on a per table basis. Note: If you plan
+   to use kambdb_recover, you must change the LOGFLAGS.
                 METADATA_READONLY
                 METADATA_READONLY
                 0
                 0
                 METADATA_LOGFLAGS
                 METADATA_LOGFLAGS
                 0
                 0
 
 
-   Execute kamdbctl - There are three (3) groups of tables you may
-   need depending on your situation.
+   Execute kamdbctl - There are three (3) groups of tables you may need
+   depending on your situation.
                 kamdbctl create                 (required)
                 kamdbctl create                 (required)
                 kamdbctl presence               (optional)
                 kamdbctl presence               (optional)
                 kamdbctl extra                  (optional)
                 kamdbctl extra                  (optional)
 
 
-   Modify the Kamailio configuration file to use db_berkeley
-   module. The database URL for modules must be the path to the
-   directory where the Berkeley DB table-files are located,
-   prefixed by "berkeley://", e.g.,
+   Modify the SIP-router configuration file to use db_berkeley module. The
+   database URL for modules must be the path to the directory where the
+   Berkeley DB table-files are located, prefixed by "berkeley://", e.g.,
    "berkeley:///usr/local/etc/kamailio/db_berkeley".
    "berkeley:///usr/local/etc/kamailio/db_berkeley".
 
 
-   A couple other IMPORTANT things to consider are the 'db_mode'
-   and the 'use_domain' modparams. The description of these
-   parameters are found in usrloc documentation.
-
-   Note on db_mode- The db_berkeley module will only journal the
-   moment usrloc writes back to the DB. The safest mode is mode 3
-   , since the db_berkeley journal files will always be
-   up-to-date. The main point is the db_mode vs. recovery by
-   journal file interaction. Writing journal entries is 'best
-   effort'. So if the hard drive becomes full, the attempt to
-   write a journal entry may fail.
-
-   Note on use_domain- The db_berkeley module will attempt natural
-   joins when performing a query. This is basically a
-   lexigraphical string compare using the keys provided. In most
-   places in the db_berkeley dbschema (unless you customize), the
-   domainname is identified as a natural key. Consider an example
-   where use_domain = 0. In table subscriber, the db will be
-   keying on 'username|NULL' because the default value will be
-   used when that key column is not provided. This effectivly
-   means that later queries must consistently use the username
-   (w.o domain) in order to find a result to that particular
-   subscriber query. The main point is 'use_domain' can not be
-   changed once the db_berkeley is setup.
-
-1.7. Database Schema and Metadata
-
-   All Berkeley DB tables are created via the kamdbctl script.
-   This section provides details as to the content and format of
-   the DB file upon creation.
-
-   Since the Berkeley DB stores key value pairs, the database is
-   seeded with a few meta-data rows . The keys to these rows must
-   begin with 'METADATA'. Here is an example of table meta-data,
-   taken from the table 'version'.
-
-   Note on reserved character- The '|' pipe character is used as a
-   record delimiter within the Berkeley DB implementation and must
-   not be present in any DB field.
+   A couple other IMPORTANT things to consider are the 'db_mode' and the
+   'use_domain' modparams. The description of these parameters are found
+   in usrloc documentation.
+
+   Note on db_mode- The db_berkeley module will only journal the moment
+   usrloc writes back to the DB. The safest mode is mode 3 , since the
+   db_berkeley journal files will always be up-to-date. The main point is
+   the db_mode vs. recovery by journal file interaction. Writing journal
+   entries is 'best effort'. So if the hard drive becomes full, the
+   attempt to write a journal entry may fail.
+
+   Note on use_domain- The db_berkeley module will attempt natural joins
+   when performing a query. This is basically a lexigraphical string
+   compare using the keys provided. In most places in the db_berkeley
+   dbschema (unless you customize), the domainname is identified as a
+   natural key. Consider an example where use_domain = 0. In table
+   subscriber, the db will be keying on 'username|NULL' because the
+   default value will be used when that key column is not provided. This
+   effectivly means that later queries must consistently use the username
+   (w.o domain) in order to find a result to that particular subscriber
+   query. The main point is 'use_domain' can not be changed once the
+   db_berkeley is setup.
+
+7. Database Schema and Metadata
+
+   All Berkeley DB tables are created via the kamdbctl script. This
+   section provides details as to the content and format of the DB file
+   upon creation.
+
+   Since the Berkeley DB stores key value pairs, the database is seeded
+   with a few meta-data rows . The keys to these rows must begin with
+   'METADATA'. Here is an example of table meta-data, taken from the table
+   'version'.
+
+   Note on reserved character- The '|' pipe character is used as a record
+   delimiter within the Berkeley DB implementation and must not be present
+   in any DB field.
 
 
    Example 1.4. METADATA_COLUMNS
    Example 1.4. METADATA_COLUMNS
 METADATA_COLUMNS
 METADATA_COLUMNS
@@ -267,21 +293,19 @@ table_name(str) table_version(int)
 METADATA_KEY
 METADATA_KEY
 0
 0
 
 
-   In the above example, the row METADATA_COLUMNS defines the
-   column names and type, and the row METADATA_KEY defines which
-   column(s) form the key. Here the value of 0 indicates that
-   column 0 is the key(ie table_name). With respect to column
-   types, the db_berkeley modules only has the following types:
-   string, str, int, double, and datetime. The default type is
-   string, and is used when one of the others is not specified.
-   The columns of the meta-data are delimited by whitespace.
-
-   The actual column data is stored as a string value, and
-   delimited by the '|' pipe character. Since the code tokenizes
-   on this delimiter, it is important that this character not
-   appear in any valid data field. The following is the output of
-   the 'db_berkeley.sh dump version' command. It shows contents of
-   table 'version' in plain text.
+   In the above example, the row METADATA_COLUMNS defines the column names
+   and type, and the row METADATA_KEY defines which column(s) form the
+   key. Here the value of 0 indicates that column 0 is the key(ie
+   table_name). With respect to column types, the db_berkeley modules only
+   has the following types: string, str, int, double, and datetime. The
+   default type is string, and is used when one of the others is not
+   specified. The columns of the meta-data are delimited by whitespace.
+
+   The actual column data is stored as a string value, and delimited by
+   the '|' pipe character. Since the code tokenizes on this delimiter, it
+   is important that this character not appear in any valid data field.
+   The following is the output of the 'db_berkeley.sh dump version'
+   command. It shows contents of table 'version' in plain text.
 
 
    Example 1.5. contents of version table
    Example 1.5. contents of version table
 VERSION=3
 VERSION=3
@@ -334,55 +358,52 @@ HEADER=END
  usr_preferences|2
  usr_preferences|2
 DATA=END
 DATA=END
 
 
-1.8. METADATA_COLUMNS (required)
+8. METADATA_COLUMNS (required)
 
 
-   The METADATA_COLUMNS row contains the column names and types.
-   Each is space delimited. Here is an example of the data taken
-   from table subscriber :
+   The METADATA_COLUMNS row contains the column names and types. Each is
+   space delimited. Here is an example of the data taken from table
+   subscriber :
 
 
    Example 1.6. METADATA_COLUMNS
    Example 1.6. METADATA_COLUMNS
 METADATA_COLUMNS
 METADATA_COLUMNS
-username(str) domain(str) password(str) ha1(str) ha1b(str) first_name(st
-r) last_name(str) email_address(str) datetime_created(datetime) timezone
-(str) rpid(str)
+username(str) domain(str) password(str) ha1(str) ha1b(str) first_name(str) last_
+name(str) email_address(str) datetime_created(datetime) timezone(str) rpid(str)
 
 
    Related (hardcoded) limitations:
    Related (hardcoded) limitations:
      * maximum of 32 columns per table.
      * maximum of 32 columns per table.
      * maximum tablename size is 64.
      * maximum tablename size is 64.
      * maximum data length is 2048
      * maximum data length is 2048
 
 
-   Currently supporting these five types: str, datetime, int,
-   double, string.
+   Currently supporting these five types: str, datetime, int, double,
+   string.
 
 
-1.9. METADATA_KEYS (required)
+9. METADATA_KEYS (required)
 
 
-   The METADATA_KEYS row indicates the indexes of the key columns,
-   with respect to the order specified in METADATA_COLUMNS. Here
-   is an example taken from table subscriber that brings up a good
-   point:
+   The METADATA_KEYS row indicates the indexes of the key columns, with
+   respect to the order specified in METADATA_COLUMNS. Here is an example
+   taken from table subscriber that brings up a good point:
 
 
    Example 1.7. METADATA_KEYS
    Example 1.7. METADATA_KEYS
  METADATA_KEY
  METADATA_KEY
  0 1
  0 1
 
 
-   The point is that both the username and domain name are require
-   as the key to this record. Thus, usrloc modparam use_domain = 1
-   must be set for this to work.
+   The point is that both the username and domain name are require as the
+   key to this record. Thus, usrloc modparam use_domain = 1 must be set
+   for this to work.
 
 
-1.10. METADATA_READONLY (optional)
+10. METADATA_READONLY (optional)
 
 
-   The METADATA_READONLY row contains a boolean 0 or 1. By
-   default, its value is 0. On startup the DB will open initially
-   as read-write (loads metadata) and then if this is set=1, it
-   will close and reopen as read only (ro). I found this useful
-   because readonly has impacts on the internal db locking etc.
+   The METADATA_READONLY row contains a boolean 0 or 1. By default, its
+   value is 0. On startup the DB will open initially as read-write (loads
+   metadata) and then if this is set=1, it will close and reopen as read
+   only (ro). I found this useful because readonly has impacts on the
+   internal db locking etc.
 
 
-1.11. METADATA_LOGFLAGS (optional)
+11. METADATA_LOGFLAGS (optional)
 
 
-   The METADATA_LOGFLAGS row contains a bitfield that customizes
-   the journaling on a per table basis. If not present the default
-   value is taken as 0. Here are the masks so far (taken from
-   bdb_lib.h):
+   The METADATA_LOGFLAGS row contains a bitfield that customizes the
+   journaling on a per table basis. If not present the default value is
+   taken as 0. Here are the masks so far (taken from bdb_lib.h):
 
 
    Example 1.8. METADATA_LOGFLAGS
    Example 1.8. METADATA_LOGFLAGS
 #define JLOG_NONE 0
 #define JLOG_NONE 0
@@ -392,16 +413,16 @@ r) last_name(str) email_address(str) datetime_created(datetime) timezone
 #define JLOG_STDOUT 8
 #define JLOG_STDOUT 8
 #define JLOG_SYSLOG 16
 #define JLOG_SYSLOG 16
 
 
-   This means that if you want to journal INSERTS to local file
-   and syslog the value should be set to 1+16=17. Or if you do not
-   want to journal at all, set this to 0.
+   This means that if you want to journal INSERTS to local file and syslog
+   the value should be set to 1+16=17. Or if you do not want to journal at
+   all, set this to 0.
 
 
-1.12. DB Maintaince Script : kamdbctl
+12. DB Maintaince Script : kamdbctl
 
 
-   Use the kamdbctl script for maintaining Kamailio Berkeley DB
-   tables. This script assumes you have DBENGINE and DB_PATH setup
-   correctly in kamctlrc. Note Unsupported commands are- backup,
-   restore, migrate, copy, serweb.
+   Use the kamdbctl script for maintaining SIP-router Berkeley DB tables.
+   This script assumes you have DBENGINE and DB_PATH setup correctly in
+   kamctlrc. Note Unsupported commands are- backup, restore, migrate,
+   copy, serweb.
 
 
    Example 1.9. kamdbctl
    Example 1.9. kamdbctl
 usage: kamdbctl create
 usage: kamdbctl create
@@ -409,37 +430,34 @@ usage: kamdbctl create
        kamdbctl extra
        kamdbctl extra
        kamdbctl drop
        kamdbctl drop
        kamdbctl reinit
        kamdbctl reinit
-       kamdbctl bdb list         (lists the underlying db files in DB_PA
-TH)
-       kamdbctl bdb cat       db (prints the contents of db file to STDO
-UT in plain-text)
-       kamdbctl bdb swap      db (installs db.new by db -> db.old; db.ne
-w -> db)
-       kamdbctl bdb append    db datafile (appends data to a new instanc
-e of db; output DB_PATH/db.new)
-       kamdbctl bdb newappend db datafile (appends data to a new instanc
-e of db; output DB_PATH/db.new)
-
-1.13. DB Recovery : kambdb_recover
+       kamdbctl bdb list         (lists the underlying db files in DB_PATH)
+       kamdbctl bdb cat       db (prints the contents of db file to STDOUT in pl
+ain-text)
+       kamdbctl bdb swap      db (installs db.new by db -> db.old; db.new -> db)
+       kamdbctl bdb append    db datafile (appends data to a new instance of db;
+ output DB_PATH/db.new)
+       kamdbctl bdb newappend db datafile (appends data to a new instance of db;
+ output DB_PATH/db.new)
+
+13. DB Recovery : kambdb_recover
 
 
    The db_berkeley module uses the Concurrent Data Store (CDS)
    The db_berkeley module uses the Concurrent Data Store (CDS)
-   architecture. As such, no transaction or journaling is provided
-   by the DB natively. The application kambdb_recover is
-   specifically written to recover data from journal files that
-   Kamailio creates. The kambdb_recover application requires an
-   additional text file that contains the table schema.
-
-   The schema is loaded with the '-s' option and is required for
-   all operations. Provide the path to the db_berkeley plain-text
-   schema files. By default, these install to
+   architecture. As such, no transaction or journaling is provided by the
+   DB natively. The application kambdb_recover is specifically written to
+   recover data from journal files that SIP-router creates. The
+   kambdb_recover application requires an additional text file that
+   contains the table schema.
+
+   The schema is loaded with the '-s' option and is required for all
+   operations. Provide the path to the db_berkeley plain-text schema
+   files. By default, these install to
    '/usr/local/share/kamailio/db_berkeley/kamailio/'.
    '/usr/local/share/kamailio/db_berkeley/kamailio/'.
 
 
    The '-h' home option is the DB_PATH path. Unlike the Berkeley
    The '-h' home option is the DB_PATH path. Unlike the Berkeley
-   utilities, this application does not look for the DB_PATH
-   environment variable, so you have to specify it. If not
-   specified, it will assume the current working directory. The
-   last argument is the operation. There are fundamentally only
-   two operations- create and recover.
+   utilities, this application does not look for the DB_PATH environment
+   variable, so you have to specify it. If not specified, it will assume
+   the current working directory. The last argument is the operation.
+   There are fundamentally only two operations- create and recover.
 
 
    The following illustrates the four operations available to the
    The following illustrates the four operations available to the
    administrator.
    administrator.
@@ -452,30 +470,24 @@ usage: ./kambdb_recover -s schemadir [-h home] [-C all]
         This will create all the core tables, each with metadata.
         This will create all the core tables, each with metadata.
 
 
 usage: ./kambdb_recover -s schemadir [-h home] [-r journal-file]
 usage: ./kambdb_recover -s schemadir [-h home] [-r journal-file]
-        This will rebuild a DB and populate it with operation from journ
-al-file.
-        The table name is embedded in the journal-file name by conventio
-n.
+        This will rebuild a DB and populate it with operation from journal-file.
+        The table name is embedded in the journal-file name by convention.
 
 
 usage: ./kambdb_recover -s schemadir [-h home] [-R lastN]
 usage: ./kambdb_recover -s schemadir [-h home] [-R lastN]
-        This will iterate over all core tables enumerated. If journal fi
-les exist in 'home',
-        a new DB file will be created and populated with the data found
-in the last N files.
-        The files are 'replayed' in chronological order (oldest to newes
-t). This
-        allows the administrator to rebuild the db with a subset of all
-possible
+        This will iterate over all core tables enumerated. If journal files exis
+t in 'home',
+        a new DB file will be created and populated with the data found in the l
+ast N files.
+        The files are 'replayed' in chronological order (oldest to newest). This
+        allows the administrator to rebuild the db with a subset of all possible
         operations if needed. For example, you may only be interested in
         operations if needed. For example, you may only be interested in
-
         the last hours data in table location.
         the last hours data in table location.
 
 
-   Important note- A corrupted DB file must be moved out of the
-   way before kambdb_recover is executed.
+   Important note- A corrupted DB file must be moved out of the way before
+   kambdb_recover is executed.
 
 
-1.14. Known Limitations
+14. Known Limitations
 
 
-   The Berkeley DB does not nativly support an autoincrement (or
-   sequence) mechanism. Consequently, this version does not
-   support surragate keys in dbschema. These are the id columns in
-   the tables.
+   The Berkeley DB does not nativly support an autoincrement (or sequence)
+   mechanism. Consequently, this version does not support surragate keys
+   in dbschema. These are the id columns in the tables.

+ 9 - 7
modules/db_berkeley/bdb_cmd.c

@@ -1,18 +1,18 @@
 /*
 /*
  * $Id$
  * $Id$
  *
  *
- * BDB Database Driver for SER
+ * BDB Database Driver for SIP-router
  *
  *
  * Copyright (C) 2008 iptelorg GmbH
  * Copyright (C) 2008 iptelorg GmbH
  *
  *
- * This file is part of SER, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * SER is free software; you can redistribute it and/or modify it under the
+ * SIP-router is free software; you can redistribute it and/or modify it under the
  * terms of the GNU General Public License as published by the Free Software
  * terms of the GNU General Public License as published by the Free Software
  * Foundation; either version 2 of the License, or (at your option) any later
  * Foundation; either version 2 of the License, or (at your option) any later
  * version.
  * version.
  *
  *
- * SER is distributed in the hope that it will be useful, but WITHOUT ANY
+ * SIP-router is distributed in the hope that it will be useful, but WITHOUT ANY
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * details.
  * details.
@@ -22,12 +22,14 @@
  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  */
  */
 
 
-/** \addtogroup bdb
+/*! \addtogroup bdb
  * @{
  * @{
  */
  */
 
 
-/** \file
- * Implementation of functions related to database commands.
+/*! \file
+ * Berkeley DB : Implementation of functions related to database commands.
+ *
+ * \ingroup database
  */
  */
 
 
 #include <string.h>
 #include <string.h>

+ 8 - 5
modules/db_berkeley/bdb_cmd.h

@@ -1,18 +1,18 @@
 /*
 /*
  * $Id$
  * $Id$
  *
  *
- * BDB Database Driver for SER
+ * BDB Database Driver for SIP-router
  *
  *
  * Copyright (C) 2008 iptelorg GmbH
  * Copyright (C) 2008 iptelorg GmbH
  *
  *
- * This file is part of SER, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * SER is free software; you can redistribute it and/or modify it under the
+ * SIP-router is free software; you can redistribute it and/or modify it under the
  * terms of the GNU General Public License as published by the Free Software
  * terms of the GNU General Public License as published by the Free Software
  * Foundation; either version 2 of the License, or (at your option) any later
  * Foundation; either version 2 of the License, or (at your option) any later
  * version.
  * version.
  *
  *
- * SER is distributed in the hope that it will be useful, but WITHOUT ANY
+ * SIP-router is distributed in the hope that it will be useful, but WITHOUT ANY
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * details.
  * details.
@@ -29,9 +29,12 @@
  * @{
  * @{
  */
  */
 
 
-/** \file
+/*! \file
+ * Berkeley DB : 
  * Declaration of bdb_cmd data structure that contains BDB specific data
  * Declaration of bdb_cmd data structure that contains BDB specific data
  * stored in db_cmd structures and related functions.
  * stored in db_cmd structures and related functions.
+ *
+ * \ingroup database
  */
  */
 
 
 #include <stdarg.h>
 #include <stdarg.h>

+ 6 - 4
modules/db_berkeley/bdb_con.c

@@ -5,14 +5,14 @@
  *
  *
  * Copyright (C) 2008 iptelorg GmbH
  * Copyright (C) 2008 iptelorg GmbH
  *
  *
- * This file is part of SER, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * SER is free software; you can redistribute it and/or modify it under the
+ * SIP-router is free software; you can redistribute it and/or modify it under the
  * terms of the GNU General Public License as published by the Free Software
  * terms of the GNU General Public License as published by the Free Software
  * Foundation; either version 2 of the License, or (at your option) any later
  * Foundation; either version 2 of the License, or (at your option) any later
  * version.
  * version.
  *
  *
- * SER is distributed in the hope that it will be useful, but WITHOUT ANY
+ * SIP-router is distributed in the hope that it will be useful, but WITHOUT ANY
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * details.
  * details.
@@ -26,8 +26,10 @@
  * @{
  * @{
  */
  */
 
 
-/** \file
+/*! \file
  * Functions related to connections to BDB.
  * Functions related to connections to BDB.
+ *
+ * \ingroup database
  */
  */
 
 
 #include <stdlib.h>
 #include <stdlib.h>

+ 8 - 6
modules/db_berkeley/bdb_con.h

@@ -1,18 +1,18 @@
 /* 
 /* 
  * $Id$ 
  * $Id$ 
  *
  *
- * BDB Database Driver for SER
+ * BDB Database Driver for SIP-router
  *
  *
  * Copyright (C) 2008 iptelorg GmbH
  * Copyright (C) 2008 iptelorg GmbH
  *
  *
- * This file is part of SER, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * SER is free software; you can redistribute it and/or modify it under the
+ * SIP-router is free software; you can redistribute it and/or modify it under the
  * terms of the GNU General Public License as published by the Free Software
  * terms of the GNU General Public License as published by the Free Software
  * Foundation; either version 2 of the License, or (at your option) any later
  * Foundation; either version 2 of the License, or (at your option) any later
  * version.
  * version.
  *
  *
- * SER is distributed in the hope that it will be useful, but WITHOUT ANY
+ * SIP-router is distributed in the hope that it will be useful, but WITHOUT ANY
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * details.
  * details.
@@ -29,8 +29,10 @@
  * @{ 
  * @{ 
  */
  */
 
 
-/** \file 
- * Implementation of BDB per-connection related data structures and functions.
+/*! \file
+ * Berkeley DB : Implementation of BDB per-connection related data structures and functions.
+ *
+ * \ingroup database
  */
  */
 
 
 #include <time.h>
 #include <time.h>

+ 6 - 4
modules/db_berkeley/bdb_fld.c

@@ -1,18 +1,18 @@
 /*
 /*
  * $Id$
  * $Id$
  *
  *
- * BDB Database Driver for SER
+ * BDB Database Driver for SIP-router
  *
  *
  * Copyright (C) 2008 iptelorg GmbH
  * Copyright (C) 2008 iptelorg GmbH
  *
  *
- * This file is part of SER, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * SER is free software; you can redistribute it and/or modify it under the
+ * SIP-router is free software; you can redistribute it and/or modify it under the
  * terms of the GNU General Public License as published by the Free Software
  * terms of the GNU General Public License as published by the Free Software
  * Foundation; either version 2 of the License, or (at your option) any later
  * Foundation; either version 2 of the License, or (at your option) any later
  * version.
  * version.
  *
  *
- * SER is distributed in the hope that it will be useful, but WITHOUT ANY
+ * SIP-router is distributed in the hope that it will be useful, but WITHOUT ANY
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * details.
  * details.
@@ -28,6 +28,8 @@
 
 
 /** \file
 /** \file
  * Data field conversion and type checking functions.
  * Data field conversion and type checking functions.
+ *
+ * \ingroup database
  */
  */
 
 
 #include <stdlib.h>
 #include <stdlib.h>

+ 8 - 5
modules/db_berkeley/bdb_fld.h

@@ -1,18 +1,18 @@
 /*
 /*
  * $Id$
  * $Id$
  *
  *
- * BDB Database Driver for SER
+ * BDB Database Driver for SIP-router
  *
  *
  * Copyright (C) 2008 iptelorg GmbH
  * Copyright (C) 2008 iptelorg GmbH
  *
  *
- * This file is part of SER, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * SER is free software; you can redistribute it and/or modify it under the
+ * SIP-router is free software; you can redistribute it and/or modify it under the
  * terms of the GNU General Public License as published by the Free Software
  * terms of the GNU General Public License as published by the Free Software
  * Foundation; either version 2 of the License, or (at your option) any later
  * Foundation; either version 2 of the License, or (at your option) any later
  * version.
  * version.
  *
  *
- * SER is distributed in the hope that it will be useful, but WITHOUT ANY
+ * SIP-router is distributed in the hope that it will be useful, but WITHOUT ANY
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * details.
  * details.
@@ -29,9 +29,12 @@
  * @{
  * @{
  */
  */
 
 
-/** \file
+/*! \file
+ * Berkeley DB : 
  * Implementation of bdb_fld data structure representing BDB fields and
  * Implementation of bdb_fld data structure representing BDB fields and
  * related functions.
  * related functions.
+ *
+ * \ingroup database
  */
  */
 
 
 #include <db.h>
 #include <db.h>

+ 10 - 3
modules/db_berkeley/bdb_lib.c

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,13 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : Library
+ *
+ * \ingroup database
+ */
+
+
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>

+ 10 - 3
modules/db_berkeley/bdb_lib.h

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of ser, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,13 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : Library
+ *
+ * \ingroup database
+ */
+
+
 
 
 #ifndef _BDB_LIB_H_
 #ifndef _BDB_LIB_H_
 #define _BDB_LIB_H_
 #define _BDB_LIB_H_

+ 10 - 3
modules/db_berkeley/bdb_mod.c

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,13 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : Module interface
+ *
+ * \ingroup database
+ */
+
+
 #include <stdio.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <unistd.h>
 #include <sys/stat.h>
 #include <sys/stat.h>

+ 10 - 3
modules/db_berkeley/bdb_mod.h

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,13 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : Module API
+ *
+ * \ingroup database
+ */
+
+
 #ifndef _BDB_MOD_H
 #ifndef _BDB_MOD_H
 #define _BDB_MOD_H
 #define _BDB_MOD_H
 
 

+ 10 - 8
modules/db_berkeley/bdb_res.c

@@ -4,19 +4,14 @@
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2006-2007 iptelorg GmbH
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
  *
- * This file is part of ser, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * ser is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * For a license to use the ser software under conditions
- * other than those described here, or to purchase support for this
- * software, please contact iptel.org by e-mail at the following addresses:
- *    [email protected]
- *
- * ser is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -26,6 +21,13 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
  */
 
 
+/*! \file
+ * Berkeley DB : 
+ *
+ * \ingroup database
+ */
+
+
 #include <db.h>
 #include <db.h>
 
 
 #include "bdb_res.h"
 #include "bdb_res.h"

+ 10 - 8
modules/db_berkeley/bdb_res.h

@@ -4,19 +4,14 @@
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2001-2003 FhG Fokus
  * Copyright (C) 2006-2007 iptelorg GmbH
  * Copyright (C) 2006-2007 iptelorg GmbH
  *
  *
- * This file is part of ser, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * ser is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * For a license to use the ser software under conditions
- * other than those described here, or to purchase support for this
- * software, please contact iptel.org by e-mail at the following addresses:
- *    [email protected]
- *
- * ser is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -26,6 +21,13 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
  */
 
 
+/*! \file
+ * Berkeley DB : 
+ *
+ * \ingroup database
+ */
+
+
 #ifndef _BDB_RES_H_
 #ifndef _BDB_RES_H_
 #define _BDB_RES_H_
 #define _BDB_RES_H_
 
 

+ 9 - 6
modules/db_berkeley/bdb_uri.c

@@ -1,18 +1,18 @@
 /*
 /*
  * $Id$
  * $Id$
  *
  *
- * BDB Database Driver for SER
+ * BDB Database Driver for SIP-router
  *
  *
  * Copyright (C) 2008 iptelorg GmbH
  * Copyright (C) 2008 iptelorg GmbH
  *
  *
- * This file is part of SER, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * SER is free software; you can redistribute it and/or modify it under the
+ * SIP-router is free software; you can redistribute it and/or modify it under the
  * terms of the GNU General Public License as published by the Free Software
  * terms of the GNU General Public License as published by the Free Software
  * Foundation; either version 2 of the License, or (at your option) any later
  * Foundation; either version 2 of the License, or (at your option) any later
  * version.
  * version.
  *
  *
- * SER is distributed in the hope that it will be useful, but WITHOUT ANY
+ * SIP-router is distributed in the hope that it will be useful, but WITHOUT ANY
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * details.
  * details.
@@ -26,10 +26,13 @@
  * @{
  * @{
  */
  */
 
 
-/** \file
- * The implementation of parser parsing bdb:.. URIs.
+/*! \file
+ * Berkeley DB : The implementation of parser parsing bdb:.. URIs.
+ *
+ * \ingroup database
  */
  */
 
 
+
 #include <string.h>
 #include <string.h>
 
 
 #include "../../mem/mem.h"
 #include "../../mem/mem.h"

+ 12 - 9
modules/db_berkeley/bdb_uri.h

@@ -1,18 +1,18 @@
 /*
 /*
  * $Id$
  * $Id$
  *
  *
- * BDB Database Driver for SER
+ * BDB Database Driver for SIP-router
  *
  *
  * Copyright (C) 2008 iptelorg GmbH
  * Copyright (C) 2008 iptelorg GmbH
  *
  *
- * This file is part of SER, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * SER is free software; you can redistribute it and/or modify it under the
+ * SIP-router is free software; you can redistribute it and/or modify it under the
  * terms of the GNU General Public License as published by the Free Software
  * terms of the GNU General Public License as published by the Free Software
  * Foundation; either version 2 of the License, or (at your option) any later
  * Foundation; either version 2 of the License, or (at your option) any later
  * version.
  * version.
  *
  *
- * SER is distributed in the hope that it will be useful, but WITHOUT ANY
+ * SIP-router is distributed in the hope that it will be useful, but WITHOUT ANY
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  * details.
  * details.
@@ -29,17 +29,20 @@
  * @{
  * @{
  */
  */
 
 
-/** \file
- * The functions parsing and interpreting bdb: URIs.
+/*! \file
+ * Berkeley DB : The functions parsing and interpreting bdb: URIs.
+ *
+ * \ingroup database
  */
  */
 
 
+
 #include "../../lib/srdb2/db_uri.h"
 #include "../../lib/srdb2/db_uri.h"
 #include "../../lib/srdb2/db_drv.h"
 #include "../../lib/srdb2/db_drv.h"
 
 
 #include <db.h>
 #include <db.h>
 
 
-/** LDAP driver specific payload to attach to db_uri structures.
- * This is the LDAP specific structure that will be attached
+/*! BDB driver specific payload to attach to db_uri structures.
+ * This is the BDB specific structure that will be attached
  * to generic db_uri structures in the database API in SER. The
  * to generic db_uri structures in the database API in SER. The
  * structure contains parsed elements of the ldap: URI.
  * structure contains parsed elements of the ldap: URI.
  */
  */
@@ -50,7 +53,7 @@ typedef struct bdb_uri {
 } bdb_uri_t, *bdb_uri_p;
 } bdb_uri_t, *bdb_uri_p;
 
 
 
 
-/** Create a new bdb_uri structure and parse the URI in parameter.
+/*! Create a new bdb_uri structure and parse the URI in parameter.
  * This function builds a new bdb_uri structure from the body of
  * This function builds a new bdb_uri structure from the body of
  * the generic URI given to it in parameter.
  * the generic URI given to it in parameter.
  * @param uri A generic db_uri structure.
  * @param uri A generic db_uri structure.

+ 13 - 13
modules/db_berkeley/doc/db_berkeley_admin.xml

@@ -15,8 +15,8 @@
 	<section>
 	<section>
 	<title>Overview</title>
 	<title>Overview</title>
 	<para>
 	<para>
-		This is a module which integrates the Berkeley DB into Kamailio.
-		It implements the DB API defined in Kamailio.
+		This is a module which integrates the Berkeley DB into SIP-router.
+		It implements the DB API defined in SIP-router.
 	</para>
 	</para>
 	</section>
 	</section>
 
 
@@ -44,7 +44,7 @@
 			<itemizedlist>
 			<itemizedlist>
 			<listitem>
 			<listitem>
 			<para>
 			<para>
-				<emphasis>Berkeley Berkeley DB 4.6</emphasis> - an embedded database.
+				<emphasis>Berkeley Berkeley DB</emphasis> - an embedded database. Version >= 4.6.
 			</para>
 			</para>
 			</listitem>
 			</listitem>
 			</itemizedlist>
 			</itemizedlist>
@@ -167,7 +167,7 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
 		</para>
 		</para>
 		
 		
 		<para>
 		<para>
-		Next, prepare to compile Kamailio with the db_berkeley module. 
+		Next, prepare to compile SIP-router with the db_berkeley module. 
 		In the directory /modules/db_berkeley, modify the Makefile to point 
 		In the directory /modules/db_berkeley, modify the Makefile to point 
 		to your distribution of Berkeley DB. You may also define 'BDB_EXTRA_DEBUG' 
 		to your distribution of Berkeley DB. You may also define 'BDB_EXTRA_DEBUG' 
 		to compile in extra debug logs. However, it is not a recommended 
 		to compile in extra debug logs. However, it is not a recommended 
@@ -196,10 +196,10 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
 		</itemizedlist>
 		</itemizedlist>
 		
 		
 		<para>
 		<para>
-		Installation of Kamailio is performed by simply running make install
+		Installation of SIP-router is performed by simply running make install
 		as root user of the main directory. This will install the binaries 
 		as root user of the main directory. This will install the binaries 
 		in /usr/local/sbin/.
 		in /usr/local/sbin/.
-		If this was successful, openser control engine files should now 
+		If this was successful, SIP-router control engine files should now 
 		be installed as /usr/local/sbin/kamdbctl.
 		be installed as /usr/local/sbin/kamdbctl.
 		</para>
 		</para>
 		
 		
@@ -207,13 +207,13 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
 		Decide where (on the filesystem) you want to install the Berkeley DB files.
 		Decide where (on the filesystem) you want to install the Berkeley DB files.
 		For instance, '/usr/local/etc/kamailio/db_berkeley' directory.
 		For instance, '/usr/local/etc/kamailio/db_berkeley' directory.
 		Make note of this directory as we need to add this path to the kamctlrc file.
 		Make note of this directory as we need to add this path to the kamctlrc file.
-		Note: Kamailio will not startup without these DB files.
+		Note: SIP-router will not startup without these DB files.
 		</para>
 		</para>
 		
 		
 		<para>
 		<para>
 		Edit kamctlrc - There are two parameters in this file that should be 
 		Edit kamctlrc - There are two parameters in this file that should be 
-		configured before openserctrdb script can work properly: DBENGINE and DB_PATH.
-		Edit file: '/usr/local/etc/kamailio/kamctlrc'
+		configured before kamdbctl script can work properly: DBENGINE and DB_PATH.
+		Edit file: '/usr/local/etc/sip-router/kamctlrc'
 		</para>
 		</para>
 	        <programlisting  format="linespecific">
 	        <programlisting  format="linespecific">
 		## database type: MYSQL, PGSQL, DB_BERKELEY, or DBTEXT, by default none is loaded
 		## database type: MYSQL, PGSQL, DB_BERKELEY, or DBTEXT, by default none is loaded
@@ -228,7 +228,7 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
 		The DB files are initially seeded with necessary meta-data. 
 		The DB files are initially seeded with necessary meta-data. 
 		This is a good time to review the meta-data section details,
 		This is a good time to review the meta-data section details,
 		before making modifications to your tables dbschema.
 		before making modifications to your tables dbschema.
-		By default, the files are installed in '/usr/local/share/kamailio/db_berkeley/openser'
+		By default, the files are installed in '/usr/local/share/sip-router/db_berkeley/sip-router'
 		By default these tables are created Read/Write and without any journalling as 
 		By default these tables are created Read/Write and without any journalling as 
 		shown. These settings can be modified on a per table basis.
 		shown. These settings can be modified on a per table basis.
 		Note: If you plan to use kambdb_recover, you must change the LOGFLAGS.
 		Note: If you plan to use kambdb_recover, you must change the LOGFLAGS.
@@ -252,7 +252,7 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
 		</programlisting>
 		</programlisting>
 		
 		
 		<para>
 		<para>
-		Modify the Kamailio configuration file to use db_berkeley module. 
+		Modify the SIP-router configuration file to use db_berkeley module. 
 		The database URL for modules must be the path to the directory where 
 		The database URL for modules must be the path to the directory where 
 		the Berkeley DB table-files are located, prefixed by "berkeley://", 
 		the Berkeley DB table-files are located, prefixed by "berkeley://", 
 		e.g., "berkeley:///usr/local/etc/kamailio/db_berkeley". 
 		e.g., "berkeley:///usr/local/etc/kamailio/db_berkeley". 
@@ -499,7 +499,7 @@ username(str) domain(str) password(str) ha1(str) ha1b(str) first_name(str) last_
 	<title>DB Maintaince Script : kamdbctl </title>
 	<title>DB Maintaince Script : kamdbctl </title>
 	
 	
 	<para>
 	<para>
-	Use the kamdbctl script for maintaining Kamailio Berkeley DB tables.
+	Use the kamdbctl script for maintaining SIP-router Berkeley DB tables.
 	This script assumes you have DBENGINE and DB_PATH setup correctly in kamctlrc.
 	This script assumes you have DBENGINE and DB_PATH setup correctly in kamctlrc.
 	Note Unsupported commands are- backup, restore, migrate, copy, serweb.
 	Note Unsupported commands are- backup, restore, migrate, copy, serweb.
 	<example>
 	<example>
@@ -526,7 +526,7 @@ usage: kamdbctl create
 	The db_berkeley module uses the Concurrent Data Store (CDS) architecture. 
 	The db_berkeley module uses the Concurrent Data Store (CDS) architecture. 
 	As such, no transaction or journaling is provided by the DB natively. 
 	As such, no transaction or journaling is provided by the DB natively. 
 	The application kambdb_recover is specifically written to recover data from 
 	The application kambdb_recover is specifically written to recover data from 
-	journal files that Kamailio creates.  
+	journal files that SIP-router creates.  
 	The kambdb_recover application requires an additional text file that contains 
 	The kambdb_recover application requires an additional text file that contains 
 	the table schema.
 	the table schema.
 	</para>
 	</para>

+ 10 - 3
modules/db_berkeley/km_bdb_lib.c

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,13 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : 
+ *
+ * \ingroup database
+ */
+
+
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <time.h>
 #include <time.h>

+ 10 - 3
modules/db_berkeley/km_bdb_lib.h

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,13 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : 
+ *
+ * \ingroup database
+ */
+
+
 
 
 #ifndef _KM_BDB_LIB_H_
 #ifndef _KM_BDB_LIB_H_
 #define _KM_BDB_LIB_H_
 #define _KM_BDB_LIB_H_

+ 10 - 3
modules/db_berkeley/km_bdb_mi.c

@@ -5,14 +5,14 @@
  *
  *
  * Copyright (C) 2007  Cisco Systems
  * Copyright (C) 2007  Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -26,6 +26,13 @@
  *  2007-11-05  created (wiquan)
  *  2007-11-05  created (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : Management interface
+ *
+ * \ingroup database
+ */
+
+
 
 
 #include "../../dprint.h"
 #include "../../dprint.h"
 #include "../../lib/srdb1/db.h"
 #include "../../lib/srdb1/db.h"

+ 9 - 3
modules/db_berkeley/km_bdb_mi.h

@@ -5,14 +5,14 @@
  *
  *
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -22,6 +22,12 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
  */
 
 
+/*! \file
+ * Berkeley DB : Management interface
+ *
+ * \ingroup database
+ */
+
 
 
 #ifndef _KM_BDB_MI_H_
 #ifndef _KM_BDB_MI_H_
 #define _KM_BDB_MI_H_
 #define _KM_BDB_MI_H_

+ 10 - 3
modules/db_berkeley/km_bdb_res.c

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,13 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : 
+ *
+ * \ingroup database
+ */
+
+
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/types.h>

+ 9 - 3
modules/db_berkeley/km_bdb_res.h

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,12 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : 
+ *
+ * \ingroup database
+ */
+
 
 
 #ifndef _KM_BDB_RES_H_
 #ifndef _KM_BDB_RES_H_
 #define _KM_BDB_RES_H_
 #define _KM_BDB_RES_H_

+ 10 - 3
modules/db_berkeley/km_bdb_util.c

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,13 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : Utilities
+ *
+ * \ingroup database
+ */
+
+
 #include <string.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/types.h>
 #include <dirent.h>
 #include <dirent.h>

+ 9 - 3
modules/db_berkeley/km_bdb_util.h

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,12 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : 
+ *
+ * \ingroup database
+ */
+
 
 
 #ifndef _KM_BDB_UTIL_H_
 #ifndef _KM_BDB_UTIL_H_
 #define _KM_BDB_UTIL_H_
 #define _KM_BDB_UTIL_H_

+ 9 - 3
modules/db_berkeley/km_bdb_val.c

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,12 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
  
  
+/*! \file
+ * Berkeley DB : 
+ *
+ * \ingroup database
+ */
+
 
 
 #include "../../lib/srdb1/db_val.h"
 #include "../../lib/srdb1/db_val.h"
 #include "../../lib/srdb1/db_ut.h"
 #include "../../lib/srdb1/db_ut.h"

+ 9 - 3
modules/db_berkeley/km_bdb_val.h

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,12 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : 
+ *
+ * \ingroup database
+ */
+
 
 
 #ifndef _KM_BDB_VAL_H_
 #ifndef _KM_BDB_VAL_H_
 #define _KM_BDB_VAL_H_
 #define _KM_BDB_VAL_H_

+ 10 - 3
modules/db_berkeley/km_db_berkeley.c

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,13 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : 
+ *
+ * \ingroup database
+ */
+
+
 #include <stdio.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <unistd.h>
 #include <sys/stat.h>
 #include <sys/stat.h>

+ 8 - 3
modules/db_berkeley/km_db_berkeley.h

@@ -6,14 +6,14 @@
 
 
  * Copyright (C) 2007 Cisco Systems
  * Copyright (C) 2007 Cisco Systems
  *
  *
- * This file is part of Kamailio, a free SIP server.
+ * This file is part of SIP-router, a free SIP server.
  *
  *
- * Kamailio is free software; you can redistribute it and/or modify
+ * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  * (at your option) any later version
  *
  *
- * Kamailio is distributed in the hope that it will be useful,
+ * SIP-router is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
@@ -27,6 +27,11 @@
  * 2007-09-19  genesis (wiquan)
  * 2007-09-19  genesis (wiquan)
  */
  */
 
 
+/*! \file
+ * Berkeley DB : 
+ *
+ * \ingroup database
+ */
 
 
 #ifndef _KM_BDB_H_
 #ifndef _KM_BDB_H_
 #define _KM_BDB_H_
 #define _KM_BDB_H_