فهرست منبع

modules/ims_charging: added sql script to create ims_charging tables

Richard Good 10 سال پیش
والد
کامیت
ea7c58fd9b
1فایلهای تغییر یافته به همراه24 افزوده شده و 0 حذف شده
  1. 24 0
      utils/kamctl/mysql/ims_charging_create.sql

+ 24 - 0
utils/kamctl/mysql/ims_charging_create.sql

@@ -0,0 +1,24 @@
+INSERT INTO version (table_name, table_version) values ('ro_session','6');
+CREATE TABLE `ro_session` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+  `hash_entry` int(10) unsigned NOT NULL,
+  `hash_id` int(10) unsigned NOT NULL,
+  `session_id` varchar(100) NOT NULL,
+  `dlg_hash_entry` int(10) unsigned NOT NULL,
+  `dlg_hash_id` int(10) unsigned NOT NULL,
+  `direction` int(1) unsigned NOT NULL,
+  `asserted_identity` varchar(100) NOT NULL,
+  `callee` varchar(100) NOT NULL,
+  `start_time` datetime DEFAULT NULL,
+  `last_event_timestamp` datetime DEFAULT NULL,
+  `reserved_secs` int(10) DEFAULT NULL,
+  `valid_for` int(10) DEFAULT NULL,
+  `state` int(1) DEFAULT NULL,
+  `incoming_trunk_id` varchar(20) DEFAULT NULL,
+  `outgoing_trunk_id` varchar(20) DEFAULT NULL,
+  `rating_group` int(11) DEFAULT NULL,
+  `service_identifier` int(11) DEFAULT NULL,
+  PRIMARY KEY (`id`),
+  KEY `hash_idx` (`hash_entry`,`hash_id`)
+);
+