Module: kamailio
Branch: 5.1
Commit: edbfa1eae2df1b932dff0bf5b7182ef09592a37d
URL:
https://github.com/kamailio/kamailio/commit/edbfa1eae2df1b932dff0bf5b7182ef…
Author: Oyvind Kolbu <oyvind.kolbu(a)usit.uio.no>
Committer: Ãyvind Kolbu <oyvind.kolbu(a)usit.uio.no>
Date: 2018-01-02T13:30:54+01:00
usrloc: partion column name can be set via modparam
(cherry picked from commit b933b2a7bf631b157bf81b86afffe6b8a43a0308)
---
Modified: src/modules/usrloc/doc/usrloc_admin.xml
Modified: src/modules/usrloc/usrloc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/edbfa1eae2df1b932dff0bf5b7182ef…
Patch:
https://github.com/kamailio/kamailio/commit/edbfa1eae2df1b932dff0bf5b7182ef…
---
diff --git a/src/modules/usrloc/doc/usrloc_admin.xml
b/src/modules/usrloc/doc/usrloc_admin.xml
index f7ac066c29..96ff750f97 100644
--- a/src/modules/usrloc/doc/usrloc_admin.xml
+++ b/src/modules/usrloc/doc/usrloc_admin.xml
@@ -516,6 +516,26 @@ modparam("usrloc", "keepalive_column",
"kalive")
</example>
</section>
+ <section id="usrloc.p.partition_column">
+ <title><varname>partition_column</varname> (string)</title>
+ <para>
+ Name of database table column containing the value for partition id.
+ </para>
+ <para>
+ <emphasis>
+ Default value is <quote>partition</quote>.
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>partitioncolumn</varname>
parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("usrloc", "partition_column", "part")
+...
+</programlisting>
+ </example>
+ </section>
+
<section id="usrloc.p.use_domain">
<title><varname>use_domain</varname> (integer)</title>
<para>
diff --git a/src/modules/usrloc/usrloc_mod.c b/src/modules/usrloc/usrloc_mod.c
index 3191e1bb1e..2eb9037f24 100644
--- a/src/modules/usrloc/usrloc_mod.c
+++ b/src/modules/usrloc/usrloc_mod.c
@@ -218,6 +218,7 @@ static param_export_t params[] = {
{"server_id_column", PARAM_STR, &srv_id_col },
{"connection_id_column",PARAM_STR, &con_id_col },
{"keepalive_column", PARAM_STR, &keepalive_col },
+ {"partition_column", PARAM_STR, &partition_col },
{"matching_mode", INT_PARAM, &matching_mode },
{"cseq_delay", INT_PARAM, &cseq_delay },
{"fetch_rows", INT_PARAM, &ul_fetch_rows },