Parcourir la source

db_redis: Align schema with usrloc expires_type default

Since expires_type is DATETIME by default, use "time" type in
upstream schema for location table.
Andreas Granig il y a 7 ans
Parent
commit
c9f2aa71b2

+ 13 - 0
src/modules/db_redis/doc/db_redis_admin.xml

@@ -189,4 +189,17 @@ modparam("auth_db", "db_url", DBURL_AUTH)
 			</programlisting>
 		</example>
 	</section>
+
+	<section>
+		<title>Module specific considerations</title>
+		<section>
+			<title>usrloc</title>
+			<para>
+				If you set "expires_type" to "1" in order to use BIGINT instead of DATETIME,
+				make sure to update your location schema file and change the type of "expires"
+				and "last_modified" from "time" to "int".
+			</para>
+		</section>
+	</section>
+
 </chapter>

+ 1 - 1
utils/kamctl/db_redis/kamailio/location

@@ -1,2 +1,2 @@
-id/int,ruid/string,username/string,domain/string,contact/string,received/string,path/string,expires/int,q/double,callid/string,cseq/int,last_modified/int,flags/int,cflags/int,user_agent/string,socket/string,methods/int,instance/string,reg_id/int,server_id/int,connection_id/int,keepalive/int,partition/int,
+id/int,ruid/string,username/string,domain/string,contact/string,received/string,path/string,expires/time,q/double,callid/string,cseq/int,last_modified/time,flags/int,cflags/int,user_agent/string,socket/string,methods/int,instance/string,reg_id/int,server_id/int,connection_id/int,keepalive/int,partition/int,
 9