[sr-dev] git:master: lib/srdb1: initial db schema for acc_cdrs table
Daniel-Constantin Mierla
miconda at gmail.com
Thu Sep 5 10:57:12 CEST 2013
Module: sip-router
Branch: master
Commit: dd3c6f19c18cf0c2844f2b2ce155e3f5d7af447a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=dd3c6f19c18cf0c2844f2b2ce155e3f5d7af447a
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Thu Sep 5 10:02:01 2013 +0200
lib/srdb1: initial db schema for acc_cdrs table
---
lib/srdb1/schema/acc_cdrs.xml | 57 +++++++++++++++++++++++++++++++++++++
lib/srdb1/schema/kamailio-acc.xml | 1 +
2 files changed, 58 insertions(+), 0 deletions(-)
diff --git a/lib/srdb1/schema/acc_cdrs.xml b/lib/srdb1/schema/acc_cdrs.xml
new file mode 100644
index 0000000..ed893e5
--- /dev/null
+++ b/lib/srdb1/schema/acc_cdrs.xml
@@ -0,0 +1,57 @@
+<?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>1</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: &KAMAILIO_MOD_DOC;acc.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>start_time</name>
+ <type>string</type>
+ <size>32</size>
+ <description>Start time</description>
+ <default/>
+ </column>
+
+ <column>
+ <name>end_time</name>
+ <type>string</type>
+ <size>32</size>
+ <description>End time</description>
+ <default/>
+ </column>
+
+ <column>
+ <name>duration</name>
+ <type>string</type>
+ <size>32</size>
+ <description>Duration</description>
+ <default/>
+ </column>
+
+ <index>
+ <name>start_time_idx</name>
+ <colref linkend="start_time"/>
+ </index>
+</table>
diff --git a/lib/srdb1/schema/kamailio-acc.xml b/lib/srdb1/schema/kamailio-acc.xml
index 86ed8f0..eea6a06 100644
--- a/lib/srdb1/schema/kamailio-acc.xml
+++ b/lib/srdb1/schema/kamailio-acc.xml
@@ -10,5 +10,6 @@
<database xmlns:xi="http://www.w3.org/2001/XInclude">
<name>Accounting</name>
<xi:include href="acc.xml"/>
+ <xi:include href="acc_cdrs.xml"/>
<xi:include href="missed_calls.xml"/>
</database>
More information about the sr-dev
mailing list