/usr/share/kamailio/mysql/sca-create.sql is in kamailio-mysql-modules 5.1.2-1ubuntu2.
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 | CREATE TABLE `sca_subscriptions` (
`id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
`subscriber` VARCHAR(255) NOT NULL,
`aor` VARCHAR(255) NOT NULL,
`event` INT DEFAULT 0 NOT NULL,
`expires` INT(11) DEFAULT 0 NOT NULL,
`state` INT DEFAULT 0 NOT NULL,
`app_idx` INT DEFAULT 0 NOT NULL,
`call_id` VARCHAR(255) NOT NULL,
`from_tag` VARCHAR(64) NOT NULL,
`to_tag` VARCHAR(64) NOT NULL,
`record_route` TEXT,
`notify_cseq` INT(11) NOT NULL,
`subscribe_cseq` INT(11) NOT NULL,
`server_id` INT(11) DEFAULT 0 NOT NULL,
CONSTRAINT sca_subscriptions_idx UNIQUE (`subscriber`, `call_id`, `from_tag`, `to_tag`)
);
CREATE INDEX sca_expires_idx ON sca_subscriptions (`server_id`, `expires`);
CREATE INDEX sca_subscribers_idx ON sca_subscriptions (`subscriber`, `event`);
INSERT INTO version (table_name, table_version) values ('sca_subscriptions','2');
|