<?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="acc_cdrs" xmlns:db="http://docbook.org/ns/docbook">
    <name>acc_cdrs</name>
    <version>2</version>
    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
    <description>
		<db:para>This table is used by the ACC module to report on CDRs relying
			on dialog callbacks. 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 id="start_time">
        <name>start_time</name>
        <type>datetime</type>
        <description>Start date and time</description>
        <default>2000-01-01 00:00:00</default>
    </column>

    <column>
        <name>end_time</name>
        <type>datetime</type>
        <description>End date and time</description>
        <default>2000-01-01 00:00:00</default>
    </column>

    <column>
        <name>duration</name>
        <type>float</type>
        <size>10,3</size>
        <description>Duration</description>
        <default>0</default>
    </column>

    <index>
        <name>start_time_idx</name>
        <colref linkend="start_time"/>
    </index>
</table>
