Module: kamailio
Branch: master
Commit: 57087e42f1b1cae86132c558aa9497f4839af7e0
URL:
https://github.com/kamailio/kamailio/commit/57087e42f1b1cae86132c558aa9497f…
Author: H.Yavari <hyavari(a)senasoftware.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-17T15:52:08+02:00
ims_icscf: add missing documents for database params
- Adding missing ims_icscf database parameters to admin documents.
- Change the default value for ims_icscf db_url to Kamailio default db_url value.
---
Modified: src/modules/ims_icscf/doc/ims_icscf_admin.xml
Modified: src/modules/ims_icscf/ims_icscf_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/57087e42f1b1cae86132c558aa9497f…
Patch:
https://github.com/kamailio/kamailio/commit/57087e42f1b1cae86132c558aa9497f…
---
diff --git a/src/modules/ims_icscf/doc/ims_icscf_admin.xml
b/src/modules/ims_icscf/doc/ims_icscf_admin.xml
index 9ae046e6794..e3c552a1c57 100644
--- a/src/modules/ims_icscf/doc/ims_icscf_admin.xml
+++ b/src/modules/ims_icscf/doc/ims_icscf_admin.xml
@@ -111,6 +111,106 @@ modparam("ims_icscf","scscf_entry_expiry", 300)
</example>
</section>
+ <section>
+ <title><varname>db_url</varname> (string)</title>
+
+ <para>
+ &url; of the database to be used.
+ </para>
+
+ <para>
+ If the db_url string is empty, the default database URL
+ will be used.
+ </para>
+
+ <para>
+ <emphasis>
+ Default value is <quote>&defaultrodb;</quote>.
+ </emphasis>
+ </para>
+
+ <example>
+ <title>Set <varname>db_url</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("ims_icscf", "db_url", "&exampledb;")
+...
+ </programlisting>
+ </example>
+ </section>
+
+ <section>
+ <title>
+ <varname>db_nds_table</varname> (string)</title>
+
+ <para>
+ NDS (Network Domain Security) table name in database to be used.
+ </para>
+
+ <para>
+ <emphasis>
+ Default value is <quote>nds_trusted_domains</quote>.
+ </emphasis>
+ </para>
+
+ <example>
+ <title>Set <varname>db_nds_table</varname>
parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("ims_icscf", "db_nds_table",
"nds_trusted_domains")
+...
+ </programlisting>
+ </example>
+ </section>
+
+ <section>
+ <title>
+ <varname>db_scscf_table</varname> (string)</title>
+
+ <para>
+ S-CSCF table name in database to be used.
+ </para>
+
+ <para>
+ <emphasis>
+ Default value is <quote>s_cscf</quote>.
+ </emphasis>
+ </para>
+
+ <example>
+ <title>Set <varname>db_scscf_table</varname>
parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("ims_icscf", "db_scscf_table", "s_cscf")
+...
+ </programlisting>
+ </example>
+ </section>
+
+ <section>
+ <title>
+ <varname>db_capabilities_table</varname> (string)</title>
+
+ <para>
+ S-CSCF capabilities table name in database to be used.
+ </para>
+
+ <para>
+ <emphasis>
+ Default value is <quote>s_cscf_capabilities</quote>.
+ </emphasis>
+ </para>
+
+ <example>
+ <title>Set <varname>db_capabilities_table</varname>
parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("ims_icscf", "db_capabilities_table",
"s_cscf_capabilities")
+...
+ </programlisting>
+ </example>
+ </section>
+
<section>
<title><varname>cxdx_forced_peer</varname>
(string)</title>
diff --git a/src/modules/ims_icscf/ims_icscf_mod.c
b/src/modules/ims_icscf/ims_icscf_mod.c
index 502fcf68174..a690891ee46 100644
--- a/src/modules/ims_icscf/ims_icscf_mod.c
+++ b/src/modules/ims_icscf/ims_icscf_mod.c
@@ -71,7 +71,7 @@ stat_var *uar_replies_response_time = NULL;
stat_var *lir_replies_response_time = NULL;
//module parameters
-char *ims_icscf_db_url = "mysql://icscf:heslo@localhost/hssdata"; /**< DB
URL */
+char *ims_icscf_db_url = DEFAULT_RODB_URL; /**< DB URL */
char *ims_icscf_db_nds_table = "nds_trusted_domains"; /**< NDS table in DB
*/
char *ims_icscf_db_scscf_table = "s_cscf"; /**< S-CSCF table in db */
char *ims_icscf_db_capabilities_table =