[sr-dev] git:3.1: srdb1: added definition of pipelimit module db table

Daniel-Constantin Mierla miconda at gmail.com
Wed Jul 27 19:31:03 CEST 2011


Module: sip-router
Branch: 3.1
Commit: 55e4811d4d0620d1dcbb94b1462f443195564594
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=55e4811d4d0620d1dcbb94b1462f443195564594

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Jul 20 23:35:01 2011 +0200

srdb1: added definition of pipelimit module db table
(cherry picked from commit e8a949e3032b9cadf40ce2be0027c780b29637a7)

---

 lib/srdb1/schema/kamailio-pipelimit.xml |   12 ++++++
 lib/srdb1/schema/pipelimit.xml          |   61 +++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+), 0 deletions(-)

diff --git a/lib/srdb1/schema/kamailio-pipelimit.xml b/lib/srdb1/schema/kamailio-pipelimit.xml
new file mode 100644
index 0000000..5fd7d2d
--- /dev/null
+++ b/lib/srdb1/schema/kamailio-pipelimit.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE database PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
+
+  <!ENTITY % entities SYSTEM "entities.xml">
+  %entities;
+]>
+
+<database xmlns:xi="http://www.w3.org/2001/XInclude">
+    <name>Pipelimit</name>
+    <xi:include href="pipelimit.xml"/>
+</database>
diff --git a/lib/srdb1/schema/pipelimit.xml b/lib/srdb1/schema/pipelimit.xml
new file mode 100644
index 0000000..5ae2bb6
--- /dev/null
+++ b/lib/srdb1/schema/pipelimit.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE table PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN" 
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
+
+<!ENTITY % entities SYSTEM "entities.xml">
+%entities;
+
+]>
+
+<table id="pl_pipes" xmlns:db="http://docbook.org/ns/docbook">
+    <name>pl_pipes</name>
+    <version>1</version>
+    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
+    <description>
+		<db:para> This table us used by the pipelimit module to keep the definition of pipes.
+			More information about the pipelimit module can be found at: &KAMAILIO_MOD_DOC;pipelimit.html
+        </db:para>
+    </description>
+
+    <column id="id">
+        <name>id</name>
+        <type>unsigned int</type>
+        <size>&table_id_len;</size>
+        <autoincrement/>
+        <primary/>
+        <type db="dbtext">int,auto</type>
+        <description>unique ID</description>
+    </column>
+
+    <column>
+        <name>pipeid</name>
+        <type>string</type>
+        <size>64</size>
+        <default/>
+        <description>Unique ID for pipe</description>
+    </column>
+
+    <column>
+        <name>algorithm</name>
+        <type>string</type>
+        <size>32</size>
+        <default/>
+		<description>Algorithm to be used for pipe limits. See the readme of the
+		module for description of available options: NOP, RED, TAILDROP, FEEDBACK, NETWORK
+		</description>
+    </column>
+
+    <column>
+        <name>plimit</name>
+        <type>int</type>
+        <default>0</default>
+        <description>Pipe limit (hits per second)</description>
+    </column>
+
+    <index>
+        <name>account_idx</name>
+        <colref linkend="username"/>
+        <colref linkend="domain"/>
+    </index>
+
+</table>




More information about the sr-dev mailing list