Parcourir la source

increased location table contact field size from 255 to 512

Juha Heinanen il y a 8 ans
Parent
commit
62ea33a6e9

+ 1 - 0
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">

+ 2 - 2
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>

+ 2 - 2
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>

+ 1 - 1
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");

+ 1 - 1
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;