/usr/share/opensips/sqlite/acc-create.sql is in opensips-sqlite-module 2.2.2-3build4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | INSERT INTO version (table_name, table_version) values ('acc','7');
CREATE TABLE acc (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
method CHAR(16) DEFAULT '' NOT NULL,
from_tag CHAR(64) DEFAULT '' NOT NULL,
to_tag CHAR(64) DEFAULT '' NOT NULL,
callid CHAR(64) DEFAULT '' NOT NULL,
sip_code CHAR(3) DEFAULT '' NOT NULL,
sip_reason CHAR(32) DEFAULT '' NOT NULL,
time DATETIME NOT NULL,
duration INTEGER DEFAULT 0 NOT NULL,
ms_duration INTEGER DEFAULT 0 NOT NULL,
setuptime INTEGER DEFAULT 0 NOT NULL,
created DATETIME DEFAULT NULL
);
CREATE INDEX acc_callid_idx ON acc (callid);
INSERT INTO version (table_name, table_version) values ('missed_calls','5');
CREATE TABLE missed_calls (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
method CHAR(16) DEFAULT '' NOT NULL,
from_tag CHAR(64) DEFAULT '' NOT NULL,
to_tag CHAR(64) DEFAULT '' NOT NULL,
callid CHAR(64) DEFAULT '' NOT NULL,
sip_code CHAR(3) DEFAULT '' NOT NULL,
sip_reason CHAR(32) DEFAULT '' NOT NULL,
time DATETIME NOT NULL,
setuptime INTEGER DEFAULT 0 NOT NULL,
created DATETIME DEFAULT NULL
);
CREATE INDEX missed_calls_callid_idx ON missed_calls (callid);
|