/usr/share/opensips/sqlite/call_center-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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | INSERT INTO version (table_name, table_version) values ('cc_flows','1');
CREATE TABLE cc_flows (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
flowid CHAR(64) NOT NULL,
priority INTEGER DEFAULT 256 NOT NULL,
skill CHAR(64) NOT NULL,
prependcid CHAR(32) NOT NULL,
message_welcome CHAR(128) DEFAULT NULL,
message_queue CHAR(128) NOT NULL,
CONSTRAINT cc_flows_unique_flowid UNIQUE (flowid)
);
INSERT INTO version (table_name, table_version) values ('cc_agents','1');
CREATE TABLE cc_agents (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
agentid CHAR(128) NOT NULL,
location CHAR(128) NOT NULL,
logstate INTEGER DEFAULT 0 NOT NULL,
skills CHAR(255) NOT NULL,
last_call_end INTEGER DEFAULT 0 NOT NULL,
CONSTRAINT cc_agents_unique_agentid UNIQUE (agentid)
);
INSERT INTO version (table_name, table_version) values ('cc_cdrs','1');
CREATE TABLE cc_cdrs (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
caller CHAR(64) NOT NULL,
received_timestamp DATETIME NOT NULL,
wait_time INTEGER DEFAULT 0 NOT NULL,
pickup_time INTEGER DEFAULT 0 NOT NULL,
talk_time INTEGER DEFAULT 0 NOT NULL,
flow_id CHAR(128) NOT NULL,
agent_id CHAR(128) DEFAULT NULL,
call_type INTEGER DEFAULT -1 NOT NULL,
rejected INTEGER DEFAULT 0 NOT NULL,
fstats INTEGER DEFAULT 0 NOT NULL,
cid INTEGER DEFAULT 0
);
CREATE TABLE cc_calls (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
state INTEGER NOT NULL,
ig_cback INTEGER NOT NULL,
no_rej INTEGER NOT NULL,
setup_time INTEGER NOT NULL,
eta INTEGER NOT NULL,
last_start INTEGER NOT NULL,
recv_time INTEGER NOT NULL,
caller_dn CHAR(128) NOT NULL,
caller_un CHAR(128) NOT NULL,
b2buaid CHAR(128) DEFAULT '' NOT NULL,
flow CHAR(128) NOT NULL,
agent CHAR(128) NOT NULL,
CONSTRAINT cc_calls_unique_id UNIQUE (b2buaid)
);
CREATE INDEX cc_calls_b2buaid_idx ON cc_calls (b2buaid);
|