<?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="missed_calls" xmlns:db="http://docbook.org/ns/docbook">
    <name>missed_calls</name>
    <version>4</version>
    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
    <description>
		<db:para>This table is used by the ACC module for keeping track of
			missed calls. This table is similar to the 'acc' table. More
			information is available at:
			<itemizedlist>
			<listitem>
			<ulink url="&KAMAILIO_MOD_DOC;acc.html">&KAMAILIO_MOD_DOC;acc.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>
        <name>method</name>
        <type>string</type>
        <size>&method_len;</size>
		<description>A method is the primary function that a request is meant
			to invoke on a server.</description>
        <default/>
    </column>

    <column>
        <name>from_tag</name>
        <type>string</type>
        <size>&from_tag_len;</size>
        <default/>
		<description>The tag parameter serves as a general mechanism to identify
			a dialog, which is the combination of the Call-ID along with two
			tags, one from participant in the dialog.</description>
    </column>

    <column>
        <name>to_tag</name>
        <type>string</type>
        <size>&to_tag_len;</size>
        <default/>
		<description>The tag parameter serves as a general mechanism to identify
			a dialog, which is the combination of the Call-ID along with two
			tags, one from participant in the dialog.</description>
    </column>

    <column id="callid">
        <name>callid</name>
        <type>string</type>
        <size>&callid_len;</size>
        <default/>
		<description>Call-ID header field uniquely identifies a particular
			invitation or all registrations of a particular client.</description>
        <natural/>
    </column>

    <column>
        <name>sip_code</name>
        <type>string</type>
        <size>&sip_code_len;</size>
        <default/>
        <description>SIP reply code</description>
    </column>

    <column>
        <name>sip_reason</name>
        <type>string</type>
        <size>&sip_reason_len;</size>
        <default/>
        <description>SIP reply reason</description>
    </column>

    <column>
        <name>time</name>
        <type>datetime</type>
        <description>Date and time when this record was written.</description>
    </column>

    <index>
        <name>callid_idx</name>
        <colref linkend="callid"/>
    </index>
</table>
