/usr/share/opensips/sqlite/emergency-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 | INSERT INTO version (table_name, table_version) values ('emergency_routing','1');
CREATE TABLE emergency_routing (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
selectiveRoutingID CHAR(11) NOT NULL,
routingESN INTEGER DEFAULT 0 NOT NULL,
npa INTEGER DEFAULT 0 NOT NULL,
esgwri CHAR(50) NOT NULL
);
INSERT INTO version (table_name, table_version) values ('emergency_report','1');
CREATE TABLE emergency_report (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
callid CHAR(25) NOT NULL,
selectiveRoutingID CHAR(11) NOT NULL,
routingESN INTEGER DEFAULT 0 NOT NULL,
npa INTEGER DEFAULT 0 NOT NULL,
esgwri CHAR(50) NOT NULL,
lro CHAR(20) NOT NULL,
VPC_organizationName CHAR(50) NOT NULL,
VPC_hostname CHAR(50) NOT NULL,
VPC_timestamp CHAR(30) NOT NULL,
result CHAR(4) NOT NULL,
disposition CHAR(10) NOT NULL
);
INSERT INTO version (table_name, table_version) values ('emergency_service_provider','1');
CREATE TABLE emergency_service_provider (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
organizationName CHAR(50) NOT NULL,
hostId CHAR(30) NOT NULL,
nenaId CHAR(50) NOT NULL,
contact CHAR(20) NOT NULL,
certUri CHAR(50) NOT NULL,
nodeIP CHAR(20) NOT NULL,
attribution INTEGER NOT NULL
);
|