Module: kamailio
Branch: master
Commit: b933b2a7bf631b157bf81b86afffe6b8a43a0308
URL:
https://github.com/kamailio/kamailio/commit/b933b2a7bf631b157bf81b86afffe6b…
Author: Oyvind Kolbu <oyvind.kolbu(a)usit.uio.no>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-12-15T12:11:04+01:00
usrloc: partion column name can be set via modparam
---
Modified: src/modules/usrloc/doc/usrloc_admin.xml
Modified: src/modules/usrloc/usrloc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b933b2a7bf631b157bf81b86afffe6b…
Patch:
https://github.com/kamailio/kamailio/commit/b933b2a7bf631b157bf81b86afffe6b…
---
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 },