[sr-dev] git:master:c0166c03: lib/srdb1: uacreg table has two new columns - flags, reg_delay

Daniel-Constantin Mierla miconda at gmail.com
Mon Jan 18 10:04:17 CET 2016


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-01-18T09:05:39+01:00

lib/srdb1: uacreg table has two new columns - flags, reg_delay

- store the flags for runtime behavior
- delay intial registration (allow to spread registrations over an
  interval of time, not to flood the registrar at the same time)

---

Modified: lib/srdb1/schema/uacreg.xml

---

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

---

diff --git a/lib/srdb1/schema/uacreg.xml b/lib/srdb1/schema/uacreg.xml
index 7f690b6..18baeff 100644
--- a/lib/srdb1/schema/uacreg.xml
+++ b/lib/srdb1/schema/uacreg.xml
@@ -9,7 +9,7 @@
 
 <table id="uacreg" xmlns:db="http://docbook.org/ns/docbook">
     <name>uacreg</name>
-    <version>1</version>
+    <version>2</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
         <db:para>This table is used by theuac module to load user details for remote server registration: &KAMAILIO_MOD_DOC;uac.html
@@ -105,6 +105,20 @@
         <description>Expiration time (in seconds, 0 means disabled)</description>
     </column>
 
+    <column id="flags">
+        <name>flags</name>
+        <type>int</type>
+        <default>0</default>
+        <description>Flags to control the behavior</description>
+    </column>
+
+    <column id="reg_delay">
+        <name>reg_delay</name>
+        <type>int</type>
+        <default>0</default>
+        <description>Initial registration delay</description>
+    </column>
+
 	<index>
         <name>l_uuid_idx</name>
         <colref linkend="l_uuid"/>




More information about the sr-dev mailing list