Forráskód Böngészése

- renaming: openser -> kamailio

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4585 689a6050-402a-0410-94f2-e92a70836424
Klaus Darilion 17 éve
szülő
commit
f204ae6c29

+ 14 - 14
modules/db_berkeley/km_README

@@ -62,8 +62,8 @@ Chapter 1. Admin Guide
 
 
 1.1. Overview
 1.1. Overview
 
 
-   This is a module which integrates the Berkeley DB into OpenSER.
-   It implements the DB API defined in OpenSER.
+   This is a module which integrates the Berkeley DB into Kamailio.
+   It implements the DB API defined in Kamailio.
 
 
 1.2. Dependencies
 1.2. Dependencies
 
 
@@ -155,7 +155,7 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
    outside the scope of this document. Documentation for this
    outside the scope of this document. Documentation for this
    procedure is available on the Internet.
    procedure is available on the Internet.
 
 
-   Next, prepare to compile OpenSER with the db_berkeley module.
+   Next, prepare to compile Kamailio with the db_berkeley module.
    In the directory /modules/db_berkeley, modify the Makefile to
    In the directory /modules/db_berkeley, modify the Makefile to
    point to your distribution of Berkeley DB. You may also define
    point to your distribution of Berkeley DB. You may also define
    'BDB_EXTRA_DEBUG' to compile in extra debug logs. However, it
    'BDB_EXTRA_DEBUG' to compile in extra debug logs. However, it
@@ -171,7 +171,7 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
        include_modules="db_berkeley"; make install
        include_modules="db_berkeley"; make install
        include_modules="db_berkeley"'.
        include_modules="db_berkeley"'.
 
 
-   Installation of OpenSER is performed by simply running make
+   Installation of Kamailio is performed by simply running make
    install as root user of the main directory. This will install
    install as root user of the main directory. This will install
    the binaries in /usr/local/sbin/. If this was successful,
    the binaries in /usr/local/sbin/. If this was successful,
    openser control engine files should now be installed as
    openser control engine files should now be installed as
@@ -179,27 +179,27 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
 
 
    Decide where (on the filesystem) you want to install the
    Decide where (on the filesystem) you want to install the
    Berkeley DB files. For instance,
    Berkeley DB files. For instance,
-   '/usr/local/etc/openser/db_berkeley' directory. Make note of
+   '/usr/local/etc/kamailio/db_berkeley' directory. Make note of
    this directory as we need to add this path to the kamctlrc
    this directory as we need to add this path to the kamctlrc
-   file. Note: OpenSER will not startup without these DB files.
+   file. Note: Kamailio will not startup without these DB files.
 
 
    Edit kamctlrc - There are two parameters in this file that
    Edit kamctlrc - There are two parameters in this file that
    should be configured before openserctrdb script can work
    should be configured before openserctrdb script can work
    properly: DBENGINE and DB_PATH. Edit file:
    properly: DBENGINE and DB_PATH. Edit file:
-   '/usr/local/etc/openser/kamctlrc'
+   '/usr/local/etc/kamailio/kamctlrc'
                 ## database type: MYSQL, PGSQL, DB_BERKELEY, or DBTEXT,
                 ## database type: MYSQL, PGSQL, DB_BERKELEY, or DBTEXT,
 by default none is loaded
 by default 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/openser/db_berkeley"
+                # DB_PATH="/usr/local/etc/kamailio/db_berkeley"
 
 
    (Optional) Pre creation step- Customize your meta-data. The DB
    (Optional) Pre creation step- Customize your meta-data. The DB
    files are initially seeded with necessary meta-data. This is a
    files are initially seeded with necessary meta-data. This is a
    good time to review the meta-data section details, before
    good time to review the meta-data section details, before
    making modifications to your tables dbschema. By default, the
    making modifications to your tables dbschema. By default, the
    files are installed in
    files are installed in
-   '/usr/local/share/openser/db_berkeley/openser' By default these
+   '/usr/local/share/kamailio/db_berkeley/openser' By default these
    tables are created Read/Write and without any journalling as
    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 bdb_recover, you must change the
    Note: If you plan to use bdb_recover, you must change the
@@ -215,11 +215,11 @@ by default none is loaded
                 kamdbctl presence           (optional)
                 kamdbctl presence           (optional)
                 kamdbctl extra              (optional)
                 kamdbctl extra              (optional)
 
 
-   Modify the OpenSER configuration file to use db_berkeley
+   Modify the Kamailio configuration file to use db_berkeley
    module. The database URL for modules must be the path to the
    module. The database URL for modules must be the path to the
    directory where the Berkeley DB table-files are located,
    directory where the Berkeley DB table-files are located,
    prefixed by "berkeley://", e.g.,
    prefixed by "berkeley://", e.g.,
-   "berkeley:///usr/local/etc/openser/db_berkeley".
+   "berkeley:///usr/local/etc/kamailio/db_berkeley".
 
 
    A couple other IMPORTANT things to consider are the 'db_mode'
    A couple other IMPORTANT things to consider are the 'db_mode'
    and the 'use_domain' modparams. The description of these
    and the 'use_domain' modparams. The description of these
@@ -398,7 +398,7 @@ r) last_name(str) email_address(str) datetime_created(datetime) timezone
 
 
 1.12. DB Maintaince Script : kamdbctl
 1.12. DB Maintaince Script : kamdbctl
 
 
-   Use the kamdbctl script for maintaining OpenSER Berkeley DB
+   Use the kamdbctl script for maintaining Kamailio Berkeley DB
    tables. This script assumes you have DBENGINE and DB_PATH setup
    tables. This script assumes you have DBENGINE and DB_PATH setup
    correctly in kamctlrc. Note Unsupported commands are-
    correctly in kamctlrc. Note Unsupported commands are-
    backup, restore, migrate, copy, serweb.
    backup, restore, migrate, copy, serweb.
@@ -425,14 +425,14 @@ tance of db; output DB_PATH/db.new)
    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
    architecture. As such, no transaction or journaling is provided
    by the DB natively. The application bdb_recover is specifically
    by the DB natively. The application bdb_recover is specifically
-   written to recover data from journal files that OpenSER
+   written to recover data from journal files that Kamailio
    creates. The bdb_recover application requires an additional
    creates. The bdb_recover application requires an additional
    text file that contains the table schema.
    text file that contains the table schema.
 
 
    The schema is loaded with the '-s' option and is required for
    The schema is loaded with the '-s' option and is required for
    all operations. Provide the path to the db_berkeley plain-text
    all operations. Provide the path to the db_berkeley plain-text
    schema files. By default, these install to
    schema files. By default, these install to
-   '/usr/local/share/openser/db_berkeley/openser/'.
+   '/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
    utilities, this application does not look for the DB_PATH

+ 1 - 1
modules/db_berkeley/km_bdb_lib.c

@@ -726,7 +726,7 @@ int bdblib_create_journal(table_p _tp)
 	
 	
 	if(! _db_p || ! _tp) return -1;
 	if(! _db_p || ! _tp) return -1;
 	if(! _db_parms->log_enable) return 0;
 	if(! _db_parms->log_enable) return 0;
-	/* journal filename ; e.g. '/var/openser/db/location-YYYYMMDDhhmmss.jnl' */
+	/* journal filename ; e.g. '/var/kamailio/db/location-YYYYMMDDhhmmss.jnl' */
 	s=fn;
 	s=fn;
 	strncpy(s, _db_p->name.s, _db_p->name.len);
 	strncpy(s, _db_p->name.s, _db_p->name.len);
 	s+=_db_p->name.len;
 	s+=_db_p->name.len;

+ 14 - 14
modules/db_berkeley/km_doc/db_berkeley_admin.xml

@@ -7,8 +7,8 @@
 	<section>
 	<section>
 	<title>Overview</title>
 	<title>Overview</title>
 	<para>
 	<para>
-		This is a module which integrates the Berkeley DB into OpenSER.
-		It implements the DB API defined in OpenSER.
+		This is a module which integrates the Berkeley DB into Kamailio.
+		It implements the DB API defined in Kamailio.
 	</para>
 	</para>
 	</section>
 	</section>
 
 
@@ -159,7 +159,7 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
 		</para>
 		</para>
 		
 		
 		<para>
 		<para>
-		Next, prepare to compile OpenSER with the db_berkeley module. 
+		Next, prepare to compile Kamailio 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 
@@ -188,7 +188,7 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
 		</itemizedlist>
 		</itemizedlist>
 		
 		
 		<para>
 		<para>
-		Installation of OpenSER is performed by simply running make install
+		Installation of Kamailio 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, openser control engine files should now 
@@ -197,22 +197,22 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
 		
 		
 		<para>
 		<para>
 		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/openser/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: OpenSER will not startup without these DB files.
+		Note: Kamailio 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.
 		configured before openserctrdb script can work properly: DBENGINE and DB_PATH.
-		Edit file: '/usr/local/etc/openser/kamctlrc'
+		Edit file: '/usr/local/etc/kamailio/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
 		# 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/openser/db_berkeley"
+		# DB_PATH="/usr/local/etc/kamailio/db_berkeley"
 		</programlisting>
 		</programlisting>
 		
 		
 		<para>
 		<para>
@@ -220,7 +220,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/openser/db_berkeley/openser'
+		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 
 		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 bdb_recover, you must change the LOGFLAGS.
 		Note: If you plan to use bdb_recover, you must change the LOGFLAGS.
@@ -244,10 +244,10 @@ modparam("db_berkeley", "journal_roll_interval", 3600)
 		</programlisting>
 		</programlisting>
 		
 		
 		<para>
 		<para>
-		Modify the OpenSER configuration file to use db_berkeley module. 
+		Modify the Kamailio 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/openser/db_berkeley". 
+		e.g., "berkeley:///usr/local/etc/kamailio/db_berkeley". 
 		</para>
 		</para>
 		
 		
 		<para>
 		<para>
@@ -491,7 +491,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 OpenSER Berkeley DB tables.
+	Use the kamdbctl script for maintaining Kamailio 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>
@@ -518,7 +518,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 bdb_recover is specifically written to recover data from 
 	The application bdb_recover is specifically written to recover data from 
-	journal files that OpenSER creates.  
+	journal files that Kamailio creates.  
 	The bdb_recover application requires an additional text file that contains 
 	The bdb_recover application requires an additional text file that contains 
 	the table schema.
 	the table schema.
 	</para>
 	</para>
@@ -526,7 +526,7 @@ usage: kamdbctl create
 	<para>
 	<para>
 	The schema is loaded with the '-s' option and is required for all operations.
 	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
 	Provide the path to the db_berkeley plain-text schema files. By default, these
-	install to '/usr/local/share/openser/db_berkeley/openser/'.
+	install to '/usr/local/share/kamailio/db_berkeley/kamailio/'.
 	</para>
 	</para>
 	
 	
 	<para>
 	<para>