Module: kamailio
Branch: 5.1
Commit: 6e85e29f96fe0bafc3fafb815dc8b9e82ff0bee0
URL:
https://github.com/kamailio/kamailio/commit/6e85e29f96fe0bafc3fafb815dc8b9e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2018-01-02T17:53:12+01:00
Merge pull request #1388 from oyvindkolbu/5.1
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/6e85e29f96fe0bafc3fafb815dc8b9e…
Patch:
https://github.com/kamailio/kamailio/commit/6e85e29f96fe0bafc3fafb815dc8b9e…
---
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 },