浏览代码

rtpengine: Update kamailio-db-devel .xml

Add rtpengine .xml table documentation. Update version files.
Stefan Mititelu 9 年之前
父节点
当前提交
174c7ab05e

+ 12 - 0
lib/srdb1/schema/kamailio-rtpengine.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>RTPEngine</name>
+    <xi:include href="rtpengine.xml"/>
+</database>

+ 60 - 0
lib/srdb1/schema/rtpengine.xml

@@ -0,0 +1,60 @@
+<?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="rtpengine" xmlns:db="http://docbook.org/ns/docbook">
+    <name>rtpengine</name>
+    <version>1</version>
+    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
+    <description>
+        <db:para>This table is used by the rtpengine module. It contains the sets of rtpengine instances used for proxying media between endpoints. More information about the rtpengine module can be found at: &KAMAILIO_MOD_DOC;rtpengine.html
+        </db:para>
+    </description>
+
+    <column id="setid">
+        <name>setid</name>
+        <type>unsigned int</type>
+	<size>10</size>
+        <description>RTPEngine instance set ID</description>
+        <default>0</default>
+        <natural/>
+    </column>
+
+    <column id="url">
+        <name>url</name>
+        <type>string</type>
+        <size>64</size>
+        <description>RTPEngine instance socket URL</description>
+    </column>
+
+    <column id="weight">
+        <name>weight</name>
+        <type>unsigned int</type>
+	<size>10</size>
+        <description>RTPEngine instance weight</description>
+        <default>1</default>
+        <natural/>
+    </column>
+
+    <column id="disabled">
+        <name>disabled</name>
+        <type>int</type>
+	<size>1</size>
+        <description>RTPEngine instance state</description>
+        <default>0</default>
+        <natural/>
+    </column>
+
+    <index>
+        <name>rtpengine_nodes</name>
+        <colref linkend="setid"/>
+        <colref linkend="url"/>
+        <primary/>
+    </index>
+
+</table>

+ 2 - 0
utils/kamctl/db_berkeley/kamailio/version

@@ -102,6 +102,8 @@ rls_presentity|
 rls_presentity|1
 rls_presentity|1
 rls_watchers|
 rls_watchers|
 rls_watchers|3
 rls_watchers|3
+rtpengine|
+rtpengine|1
 rtpproxy|
 rtpproxy|
 rtpproxy|1
 rtpproxy|1
 sca_subscriptions|
 sca_subscriptions|

+ 1 - 0
utils/kamctl/dbtext/kamailio/version

@@ -46,6 +46,7 @@ purplemap:1
 re_grp:1
 re_grp:1
 rls_presentity:1
 rls_presentity:1
 rls_watchers:3
 rls_watchers:3
+rtpengine:1
 rtpproxy:1
 rtpproxy:1
 sca_subscriptions:1
 sca_subscriptions:1
 silo:8
 silo:8

+ 32 - 0
utils/kamctl/xhttp_pi/pi_framework.xml

@@ -669,6 +669,15 @@
 		<column><field>from_domain</field><type>DB1_STR</type></column>
 		<column><field>from_domain</field><type>DB1_STR</type></column>
 		<column><field>updated</field><type>DB1_INT</type></column>
 		<column><field>updated</field><type>DB1_INT</type></column>
 	</db_table>
 	</db_table>
+	<!-- Declaration of rtpengine table-->
+	<db_table id="rtpengine">
+		<table_name>rtpengine</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>setid</field><type>DB1_INT</type></column>
+		<column><field>url</field><type>DB1_STR</type></column>
+		<column><field>weight</field><type>DB1_INT</type></column>
+		<column><field>disabled</field><type>DB1_INT</type></column>
+	</db_table>
 	<!-- Declaration of rtpproxy table-->
 	<!-- Declaration of rtpproxy table-->
 	<db_table id="rtpproxy">
 	<db_table id="rtpproxy">
 		<table_name>rtpproxy</table_name>
 		<table_name>rtpproxy</table_name>
@@ -3531,6 +3540,29 @@
 			</clause_cols>
 			</clause_cols>
 		</cmd>
 		</cmd>
 	</mod>
 	</mod>
+	<!-- rtpengine provisionning -->
+	<mod><mod_name>rtpengine</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>rtpengine</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>setid</field></col>
+				<col><field>url</field></col>
+				<col><field>weight</field></col>
+				<col><field>disabled</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>rtpengine</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>setid</field></col>
+				<col><field>url</field></col>
+				<col><field>weight</field></col>
+				<col><field>disabled</field></col>
+			</query_cols>
+		</cmd>
+	</mod>
 	<!-- rtpproxy provisionning -->
 	<!-- rtpproxy provisionning -->
 	<mod><mod_name>rtpproxy</mod_name>
 	<mod><mod_name>rtpproxy</mod_name>
 		<cmd><cmd_name>show</cmd_name>
 		<cmd><cmd_name>show</cmd_name>