<?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:
			<itemizedlist>
			<listitem>
			<ulink url="&KAMAILIO_MOD_DOC;rtpengine.html">&KAMAILIO_MOD_DOC;rtpengine.html</ulink>.
			</listitem>
			</itemizedlist>
        </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 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>

    <column id="stamp">
        <name>stamp</name>
        <type>datetime</type>
        <description>RTPEngine instance add timestamp</description>
        <default>1900-01-01 00:00:01</default>
        <natural/>
    </column>

    <index>
        <name>rtpengine_nodes</name>
        <colref linkend="setid"/>
        <colref linkend="url"/>
        <unique/>
    </index>

</table>
