[sr-dev] git:master:62ea33a6: increased location table contact field size from 255 to 512

Juha Heinanen jh at tutpro.com
Thu Sep 14 13:48:06 CEST 2017


Module: kamailio
Branch: master
Commit: 62ea33a6e9585e25362bd669c2f1cd11321dc119
URL: https://github.com/kamailio/kamailio/commit/62ea33a6e9585e25362bd669c2f1cd11321dc119

Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at tutpro.com>
Date: 2017-09-14T14:44:41+03:00

increased location table contact field size from 255 to 512

---

Modified: src/lib/srdb1/schema/entities.xml
Modified: src/lib/srdb1/schema/location.xml
Modified: src/modules/registrar/doc/registrar_admin.xml
Modified: src/modules/registrar/registrar.c
Modified: src/modules/usrloc/usrloc_mod.h

---

Diff:  https://github.com/kamailio/kamailio/commit/62ea33a6e9585e25362bd669c2f1cd11321dc119.diff
Patch: https://github.com/kamailio/kamailio/commit/62ea33a6e9585e25362bd669c2f1cd11321dc119.patch

---

diff --git a/src/lib/srdb1/schema/entities.xml b/src/lib/srdb1/schema/entities.xml
index 3fb0bd16cd..506771361b 100644
--- a/src/lib/srdb1/schema/entities.xml
+++ b/src/lib/srdb1/schema/entities.xml
@@ -8,6 +8,7 @@
 <!ENTITY id_len "64">
 <!ENTITY table_id_len "10">
 <!ENTITY hf_len "255">
+<!ENTITY contact_len "512">
 <!ENTITY long_hf_len "512">
 <!ENTITY rule_len "255">
 <!ENTITY method_len "16">
diff --git a/src/lib/srdb1/schema/location.xml b/src/lib/srdb1/schema/location.xml
index 1786f4a75c..01f66fe6ce 100644
--- a/src/lib/srdb1/schema/location.xml
+++ b/src/lib/srdb1/schema/location.xml
@@ -9,7 +9,7 @@
 
 <table id="location" xmlns:db="http://docbook.org/ns/docbook">
     <name>location</name>
-    <version>8</version>
+    <version>9</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
 		<db:para>Persistent user location information for the usrloc module.
@@ -63,7 +63,7 @@
     <column id="contact">
         <name>contact</name>
         <type>string</type>
-        <size>&hf_len;</size>
+        <size>&contact_len;</size>
         <default/>
         <description>Contact header field value provides a URI whoses meaning depends on the type of request or response it is in.</description>
     </column>
diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml
index 58ea0346d1..00b68018b8 100644
--- a/src/modules/registrar/doc/registrar_admin.xml
+++ b/src/modules/registrar/doc/registrar_admin.xml
@@ -948,14 +948,14 @@ modparam("registrar", "flow_timer", 25)
 		</para>
 		<para>
 		<emphasis>
-			Default value is 255.
+			Default value is 512.
 		</emphasis>
 		</para>
 		<example>
 		<title>Set <varname>contact_max_size</varname> parameter</title>
 		<programlisting format="linespecific">
 ...
-modparam("registrar", "contact_max_size", 500)
+modparam("registrar", "contact_max_size", 1024)
 ...
 		</programlisting>
 		</example>
diff --git a/src/modules/registrar/registrar.c b/src/modules/registrar/registrar.c
index fbd2465f4c..4a8d245ac2 100644
--- a/src/modules/registrar/registrar.c
+++ b/src/modules/registrar/registrar.c
@@ -106,7 +106,7 @@ int reg_outbound_mode = 0;
 int reg_regid_mode = 0;
 int reg_flow_timer = 0;
 
-int contact_max_size = 255; /* max size of contact URIs */
+int contact_max_size = 512; /* max size of contact URIs */
 
 str match_callid_name = str_init("match_callid");
 str match_received_name = str_init("match_received");
diff --git a/src/modules/usrloc/usrloc_mod.h b/src/modules/usrloc/usrloc_mod.h
index ccd9540ecf..5ac67d67ed 100644
--- a/src/modules/usrloc/usrloc_mod.h
+++ b/src/modules/usrloc/usrloc_mod.h
@@ -39,7 +39,7 @@
  */
 
 
-#define UL_TABLE_VERSION 8
+#define UL_TABLE_VERSION 9
 
 extern str ruid_col;
 extern str user_col;




More information about the sr-dev mailing list