MT#62863 fix2 transform_billing_mappings() for debian/trixie

* use coalesce for _effective_start_time as the previous approach
  did not work correctly.

Change-Id: I62e53a2fef5399286c4d00ebb0bca56d65679af6
mr13.4
Kirill Solomko 9 months ago committed by Sipwise Jenkins Builder
parent 57b924cce0
commit 39e6d65add

@ -51,7 +51,7 @@ create procedure transform_billing_mappings() begin
order by bm2.start_date desc limit 1) order by bm1.id asc;
declare continue handler for not found set _mappings_done = true;
set _effective_start_time = (select unix_timestamp(if(_is_end,_t + 1.001,_t + 1)) - 1);
set _effective_start_time = coalesce((select unix_timestamp(if(_is_end,_t + 0.001,_t))),0);
set _bm_ids = "";
set _mappings_done = false;
open mappings_cur;

@ -673,17 +673,52 @@ CREATE TABLE `prepaid_costs` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*M!999999\- enable the sandbox mode */
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `cdr_cash_balance` VALUES (1,'cash_balance');
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `cdr_direction` VALUES (1,'source');
INSERT INTO `cdr_direction` VALUES (2,'destination');
commit;
set autocommit=0;
INSERT INTO `cdr_export_status` VALUES (2,'ama_ccs');
INSERT INTO `cdr_export_status` VALUES (1,'default');
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `cdr_provider` VALUES (1,'carrier');
INSERT INTO `cdr_provider` VALUES (2,'reseller');
INSERT INTO `cdr_provider` VALUES (3,'customer');
commit;
set autocommit=0;
INSERT INTO `cdr_relation` VALUES (1,'profile_package_id');
INSERT INTO `cdr_relation` VALUES (2,'contract_balance_id');
INSERT INTO `cdr_relation` VALUES (3,'prev_fragment_id');
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `cdr_tag` VALUES (10,'balance_delta');
INSERT INTO `cdr_tag` VALUES (1,'calling_party_category');
INSERT INTO `cdr_tag` VALUES (7,'concurrent_calls_count');
@ -699,7 +734,17 @@ INSERT INTO `cdr_tag` VALUES (5,'header=User-to-User');
INSERT INTO `cdr_tag` VALUES (12,'hg_ext_response');
INSERT INTO `cdr_tag` VALUES (14,'r_ua');
INSERT INTO `cdr_tag` VALUES (13,'r_user');
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `cdr_time_balance` VALUES (1,'free_time_balance');
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `events_relation` VALUES (1,'primary_number_id');
INSERT INTO `events_relation` VALUES (2,'subscriber_profile_id');
INSERT INTO `events_relation` VALUES (3,'subscriber_profile_set_id');
@ -707,6 +752,10 @@ INSERT INTO `events_relation` VALUES (4,'pilot_subscriber_id');
INSERT INTO `events_relation` VALUES (5,'pilot_primary_number_id');
INSERT INTO `events_relation` VALUES (6,'pilot_subscriber_profile_id');
INSERT INTO `events_relation` VALUES (7,'pilot_subscriber_profile_set_id');
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `events_tag` VALUES (1,'primary_number_cc');
INSERT INTO `events_tag` VALUES (2,'primary_number_ac');
INSERT INTO `events_tag` VALUES (3,'primary_number_sn');
@ -726,6 +775,29 @@ INSERT INTO `events_tag` VALUES (16,'primary_alias_username_before');
INSERT INTO `events_tag` VALUES (17,'primary_alias_username_after');
INSERT INTO `events_tag` VALUES (18,'pilot_primary_alias_username_before');
INSERT INTO `events_tag` VALUES (19,'pilot_primary_alias_username_after');
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
/*M!999999\- enable the sandbox mode */
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;

@ -11349,7 +11349,7 @@
"key_col" : "schedule_contract_billing_profile_network"
},
"transform_billing_mappings" : {
"ROUTINE_DEFINITION" : "begin\n\n declare _contracts_done, _events_done, _mappings_done, _is_end boolean default false;\n declare _contract_id, _bm_id, _default_bm_id, _profile_id, _network_id int(11) unsigned;\n declare _t, _start_date, _end_date datetime;\n declare _effective_start_time decimal(13,3);\n declare _bm_ids, _old_bm_ids varchar(65535);\n\n declare contracts_cur cursor for select bm.contract_id\n from billing_mappings bm left join contracts_billing_profile_network cbpn on bm.contract_id = cbpn.contract_id\n where cbpn.id is null group by bm.contract_id;\n declare continue handler for not found set _contracts_done = true;\n\n set _old_bm_ids = \"\";\n\n open contracts_cur;\n contracts_loop: loop\n fetch contracts_cur into _contract_id;\n if _contracts_done then\n leave contracts_loop;\n end if;\n nested1: begin\n\n declare events_cur cursor for select t,is_end from (\n (select coalesce(bm.start_date,from_unixtime(0)) as t, 0 as is_end\n from billing_mappings bm join contracts c on bm.contract_id = c.id where contract_id = _contract_id)\n union all\n (select coalesce(end_date,from_unixtime(2147483647) - 0.001) as t, 1 as is_end from billing_mappings where contract_id = _contract_id)\n ) as events group by t, is_end order by t, is_end;\n declare continue handler for not found set _events_done = true;\n\n set _events_done = false;\n open events_cur;\n events_loop: loop\n fetch events_cur into _t, _is_end;\n if _events_done then\n leave events_loop;\n end if;\n\n nested2: begin\n\n declare mappings_cur cursor for select bm1.id, bm1.start_date, bm1.end_date, bm1.billing_profile_id, bm1.network_id from\n billing_mappings bm1 where bm1.contract_id = _contract_id and bm1.start_date <=> (select bm2.start_date\n from billing_mappings bm2 where\n bm2.contract_id = _contract_id\n and (bm2.start_date <= _t or bm2.start_date is null)\n and (if(_is_end,bm2.end_date > _t,bm2.end_date >= _t) or bm2.end_date is null)\n order by bm2.start_date desc limit 1) order by bm1.id asc;\n declare continue handler for not found set _mappings_done = true;\n\n set _effective_start_time = (select unix_timestamp(if(_is_end,_t + 0.001,_t)));\n set _bm_ids = \"\";\n set _mappings_done = false;\n open mappings_cur;\n mappings_loop1: loop\n fetch mappings_cur into _bm_id, _start_date, _end_date, _profile_id, _network_id;\n if _mappings_done then\n leave mappings_loop1;\n end if;\n set _bm_ids = (select concat(_bm_ids,\"-\",_bm_id));\n set _default_bm_id = _bm_id;\n end loop mappings_loop1;\n close mappings_cur;\n\n if _old_bm_ids != _bm_ids then\n set _mappings_done = false;\n open mappings_cur;\n mappings_loop2: loop\n fetch mappings_cur into _bm_id, _start_date, _end_date, _profile_id, _network_id;\n if _mappings_done then\n leave mappings_loop2;\n end if;\n\n call add_contract_billing_profile_network_schedule(_contract_id,if(_bm_id = _default_bm_id,1,0),_start_date,_end_date,\n _effective_start_time,_profile_id,_network_id);\n\n end loop mappings_loop2;\n close mappings_cur;\n end if;\n set _old_bm_ids = _bm_ids;\n end nested2;\n end loop events_loop;\n close events_cur;\n end nested1;\n end loop contracts_loop;\n close contracts_cur;\nend",
"ROUTINE_DEFINITION" : "begin\n\n declare _contracts_done, _events_done, _mappings_done, _is_end boolean default false;\n declare _contract_id, _bm_id, _default_bm_id, _profile_id, _network_id int(11) unsigned;\n declare _t, _start_date, _end_date datetime;\n declare _effective_start_time decimal(13,3);\n declare _bm_ids, _old_bm_ids varchar(65535);\n\n declare contracts_cur cursor for select bm.contract_id\n from billing_mappings bm left join contracts_billing_profile_network cbpn on bm.contract_id = cbpn.contract_id\n where cbpn.id is null group by bm.contract_id;\n declare continue handler for not found set _contracts_done = true;\n\n set _old_bm_ids = \"\";\n\n open contracts_cur;\n contracts_loop: loop\n fetch contracts_cur into _contract_id;\n if _contracts_done then\n leave contracts_loop;\n end if;\n nested1: begin\n\n declare events_cur cursor for select t,is_end from (\n (select coalesce(bm.start_date,from_unixtime(0)) as t, 0 as is_end\n from billing_mappings bm join contracts c on bm.contract_id = c.id where contract_id = _contract_id)\n union all\n (select coalesce(end_date,from_unixtime(2147483647) - 0.001) as t, 1 as is_end from billing_mappings where contract_id = _contract_id)\n ) as events group by t, is_end order by t, is_end;\n declare continue handler for not found set _events_done = true;\n\n set _events_done = false;\n open events_cur;\n events_loop: loop\n fetch events_cur into _t, _is_end;\n if _events_done then\n leave events_loop;\n end if;\n\n nested2: begin\n\n declare mappings_cur cursor for select bm1.id, bm1.start_date, bm1.end_date, bm1.billing_profile_id, bm1.network_id from\n billing_mappings bm1 where bm1.contract_id = _contract_id and bm1.start_date <=> (select bm2.start_date\n from billing_mappings bm2 where\n bm2.contract_id = _contract_id\n and (bm2.start_date <= _t or bm2.start_date is null)\n and (if(_is_end,bm2.end_date > _t,bm2.end_date >= _t) or bm2.end_date is null)\n order by bm2.start_date desc limit 1) order by bm1.id asc;\n declare continue handler for not found set _mappings_done = true;\n\n set _effective_start_time = coalesce((select unix_timestamp(if(_is_end,_t + 0.001,_t))),0);\n set _bm_ids = \"\";\n set _mappings_done = false;\n open mappings_cur;\n mappings_loop1: loop\n fetch mappings_cur into _bm_id, _start_date, _end_date, _profile_id, _network_id;\n if _mappings_done then\n leave mappings_loop1;\n end if;\n set _bm_ids = (select concat(_bm_ids,\"-\",_bm_id));\n set _default_bm_id = _bm_id;\n end loop mappings_loop1;\n close mappings_cur;\n\n if _old_bm_ids != _bm_ids then\n set _mappings_done = false;\n open mappings_cur;\n mappings_loop2: loop\n fetch mappings_cur into _bm_id, _start_date, _end_date, _profile_id, _network_id;\n if _mappings_done then\n leave mappings_loop2;\n end if;\n\n call add_contract_billing_profile_network_schedule(_contract_id,if(_bm_id = _default_bm_id,1,0),_start_date,_end_date,\n _effective_start_time,_profile_id,_network_id);\n\n end loop mappings_loop2;\n close mappings_cur;\n end if;\n set _old_bm_ids = _bm_ids;\n end nested2;\n end loop events_loop;\n close events_cur;\n end nested1;\n end loop contracts_loop;\n close contracts_cur;\nend",
"ROUTINE_TYPE" : "PROCEDURE",
"key_col" : "transform_billing_mappings"
}

@ -2264,7 +2264,7 @@ begin
order by bm2.start_date desc limit 1) order by bm1.id asc;
declare continue handler for not found set _mappings_done = true;
set _effective_start_time = (select unix_timestamp(if(_is_end,_t + 0.001,_t)));
set _effective_start_time = coalesce((select unix_timestamp(if(_is_end,_t + 0.001,_t))),0);
set _bm_ids = "";
set _mappings_done = false;
open mappings_cur;
@ -2463,6 +2463,7 @@ DELIMITER ;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
/*M!999999\- enable the sandbox mode */
set autocommit=0;
INSERT INTO `acl_role_mappings` VALUES (1,1);
INSERT INTO `acl_role_mappings` VALUES (1,2);
INSERT INTO `acl_role_mappings` VALUES (1,3);
@ -2479,26 +2480,86 @@ INSERT INTO `acl_role_mappings` VALUES (3,5);
INSERT INTO `acl_role_mappings` VALUES (4,4);
INSERT INTO `acl_role_mappings` VALUES (4,5);
INSERT INTO `acl_role_mappings` VALUES (5,5);
commit;
set autocommit=0;
INSERT INTO `acl_roles` VALUES (1,'system',0);
INSERT INTO `acl_roles` VALUES (2,'admin',0);
INSERT INTO `acl_roles` VALUES (3,'reseller',0);
INSERT INTO `acl_roles` VALUES (4,'ccareadmin',0);
INSERT INTO `acl_roles` VALUES (5,'ccare',0);
INSERT INTO `acl_roles` VALUES (6,'lintercept',0);
INSERT INTO `admins` VALUES (1,1,'administrator',NULL,'AtAFGhepIuEaQ.dSfdJ6b.$TNfqchYY76HTh2FAgD3l4r9JFYmFr9i',1,1,0,1,0,1,1,1,0,NULL,NULL,NULL,1,1,1,'2025-05-14 13:28:29',0,'local',0,0,NULL,'0000-00-00 00:00:00',NULL);
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `admins` VALUES (1,1,'administrator',NULL,'AtAFGhepIuEaQ.dSfdJ6b.$TNfqchYY76HTh2FAgD3l4r9JFYmFr9i',1,1,0,1,0,1,1,1,0,NULL,NULL,NULL,1,1,1,'2025-05-20 17:01:33',0,'local',0,0,NULL,'0000-00-00 00:00:00',NULL);
commit;
set autocommit=0;
INSERT INTO `billing_fees` VALUES (1,1,1,'.','.*','out','call',0,600,0,600,0,600,0,600,0,'regex_longest_pattern',0,NULL,0,NULL,0,0);
commit;
set autocommit=0;
INSERT INTO `billing_fees_history` VALUES (1,NULL,1,1,'.','.*','out','call',0,600,0,600,0,600,0,600,0,'regex_longest_pattern',0,NULL,0,NULL,0,0);
INSERT INTO `billing_fees_history` VALUES (1000,1,1,1,'.','.*','out','call',0,600,0,600,0,600,0,600,0,'regex_longest_pattern',0,NULL,0,NULL,0,0);
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `billing_mappings` VALUES (1,NULL,NULL,1,1,3,NULL);
INSERT INTO `billing_profiles` VALUES (1,1,'default','Default Billing Profile',0,0,0,0,'month',1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'active','2025-05-14 13:27:09','0000-00-00 00:00:00','0000-00-00 00:00:00',0,'libswrate',0);
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `billing_profiles` VALUES (1,1,'default','Default Billing Profile',0,0,0,0,'month',1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'active','2025-05-20 17:01:09','0000-00-00 00:00:00','0000-00-00 00:00:00',0,'libswrate',0);
commit;
set autocommit=0;
INSERT INTO `billing_zones` VALUES (1,1,'Free Default Zone','All Destinations');
commit;
set autocommit=0;
INSERT INTO `billing_zones_history` VALUES (1,1,1,'Free Default Zone','All Destinations');
INSERT INTO `contacts` VALUES (1,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'default-customer@default.invalid',0,'2025-05-14 13:24:20','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'active',NULL,NULL);
INSERT INTO `contacts` VALUES (2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'default-system@default.invalid',0,'2025-05-14 13:24:45','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'active',NULL,NULL);
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `contacts` VALUES (1,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'default-customer@default.invalid',0,'2025-05-20 17:00:19','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'active',NULL,NULL);
INSERT INTO `contacts` VALUES (2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'default-system@default.invalid',0,'2025-05-20 17:00:23','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'active',NULL,NULL);
commit;
set autocommit=0;
INSERT INTO `contract_balances` VALUES (1,1,0,0,0,0,0,0,'2014-01-01 00:00:00','2014-01-31 23:59:59',NULL,NULL,NULL,NULL,NULL);
INSERT INTO `contracts` VALUES (1,NULL,2,NULL,NULL,'active',NULL,'2025-05-14 13:26:41','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,1,NULL,NULL,NULL,NULL,0.000000,0,3);
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `contracts` VALUES (1,NULL,2,NULL,NULL,'active',NULL,'2025-05-20 17:01:01','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,1,NULL,NULL,NULL,NULL,0.000000,0,3);
commit;
set autocommit=0;
INSERT INTO `contracts_billing_profile_network` VALUES (1,1,1,NULL,NULL,NULL,1);
commit;
set autocommit=0;
INSERT INTO `contracts_billing_profile_network_schedule` VALUES (1,1,0.000);
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `email_templates` VALUES (1,NULL,'subscriber_default_email','default@sipwise.com','Subscriber created','Dear Customer,\n\nA new subscriber [% subscriber %] has been created for you.\n\nYour faithful Sipwise system\n\n-- \nThis is an automatically generated message. Do not reply.','');
INSERT INTO `email_templates` VALUES (2,NULL,'passreset_default_email','default@sipwise.com','Password reset email','Dear Customer,\n\nPlease go to [% url %] to set your password and log into your self-care interface.\n\nYour faithful Sipwise system\n\n-- \nThis is an automatically generated message. Do not reply.','');
INSERT INTO `email_templates` VALUES (3,NULL,'invoice_default_email','default@sipwise.com','Invoice #[%invoice.serial%] from [%invoice.period_start_obj.ymd%] to [%invoice.period_end_obj.ymd%]','Dear Customer,\n\nPlease find your invoice #[%invoice.serial%] for [%invoice.period_start_obj.month_name%], [%invoice.period_start_obj.year%] in attachment of this letter.\n\nYour faithful Sipwise system\n\n--\nThis is an automatically generated message. Do not reply.','');
@ -2511,12 +2572,73 @@ INSERT INTO `email_templates` VALUES (9,NULL,'fax_notify_ok_default_email','[% m
INSERT INTO `email_templates` VALUES (10,NULL,'fax_notify_error_default_email','[% mail_from %]','Fax transmission to [% callee %] has failed',' Fax from [% caller %] to [% callee %] has failed.\n\n Status: [% status %]\n Attempts: [% attempts %]\n Sent pages: [% sent_pages %] of [% pages %]\n Reason: [% reason %]\n\n--\nPlease do not reply to this auto-generated E-Mail.','');
INSERT INTO `email_templates` VALUES (11,NULL,'fax_notify_secret_update_default_email','[% mail_from %]','Preferences update notification',' Secret key for subscriber [% subscriber %] has been updated.\n\n New secret key: [% secret_key %]\n\n--\nPlease do not reply to this auto-generated E-Mail.','');
INSERT INTO `email_templates` VALUES (12,NULL,'admin_passreset_default_email','default@sipwise.com','Password reset email','Dear Customer,\n\nPlease go to [% url %] to set your password and log into your admin interface.\n\nYour faithful Sipwise system\n\n-- \nThis is an automatically generated message. Do not reply.','');
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `products` VALUES (1,NULL,'pstnpeering','PSTN_PEERING','PSTN Peering',1,NULL,NULL,NULL);
INSERT INTO `products` VALUES (2,NULL,'sippeering','SIP_PEERING','SIP Peering',1,NULL,NULL,NULL);
INSERT INTO `products` VALUES (3,NULL,'reseller','VOIP_RESELLER','VoIP Reseller',1,NULL,NULL,NULL);
INSERT INTO `products` VALUES (4,NULL,'sipaccount','SIP_ACCOUNT','Basic SIP Account',1,NULL,NULL,NULL);
INSERT INTO `products` VALUES (5,NULL,'pbxaccount','PBX_ACCOUNT','Cloud PBX Account',1,NULL,NULL,NULL);
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `resellers` VALUES (1,1,'default','active');
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
/*M!999999\- enable the sandbox mode */
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;

@ -109,5 +109,21 @@ CREATE TABLE `subscribers` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*M!999999\- enable the sandbox mode */
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
/*M!999999\- enable the sandbox mode */
COMMIT;

@ -59,5 +59,11 @@ CREATE TABLE `uploads` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*M!999999\- enable the sandbox mode */
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
/*M!999999\- enable the sandbox mode */
COMMIT;

@ -552,5 +552,43 @@ CREATE TABLE `tasks` (
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
/*M!999999\- enable the sandbox mode */
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
/*M!999999\- enable the sandbox mode */
COMMIT;

@ -1128,11 +1128,40 @@ CREATE TABLE `xcap` (
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
/*M!999999\- enable the sandbox mode */
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `dispatcher` VALUES (1,2,'sip:127.0.0.1:5070',0,0,'','Voicemail servers');
INSERT INTO `dispatcher` VALUES (2,3,'sip:127.0.0.1:5080',0,0,'','Application servers');
INSERT INTO `dispatcher` VALUES (3,4,'sip:127.0.0.1:5090',0,0,'','Fax2Mail servers');
INSERT INTO `dispatcher` VALUES (4,5,'sip:127.0.0.1:5085',0,0,'','Cloud PBX servers');
INSERT INTO `dispatcher` VALUES (5,5,'sip:127.0.0.1:5085',0,0,'','Cloud PBX servers');
commit;
set autocommit=0;
INSERT INTO `dom_preferences` VALUES (1,'','0','voip.sipwise.local','sst_enable',0,'no','1900-01-01 00:00:01');
INSERT INTO `dom_preferences` VALUES (2,'','0','voip.sipwise.local','sst_refresh_method',0,'UPDATE_FALLBACK_INVITE','1900-01-01 00:00:01');
INSERT INTO `dom_preferences` VALUES (3,'','0','voip.sipwise.local','use_rtpproxy',0,'ice_strip_candidates','1900-01-01 00:00:01');
@ -1163,11 +1192,91 @@ INSERT INTO `dom_preferences` VALUES (29,'','0','voip.sipwise.local','busy_hg_me
INSERT INTO `dom_preferences` VALUES (30,'','0','voip.sipwise.local','announce_conn_type',0,'early','1900-01-01 00:00:01');
INSERT INTO `dom_preferences` VALUES (31,'','0','voip.sipwise.local','record_call',0,'0','1900-01-01 00:00:01');
INSERT INTO `dom_preferences` VALUES (32,'','0','voip.sipwise.local','aa_extensions_dial_mode',0,'disabled','1900-01-01 00:00:01');
commit;
set autocommit=0;
INSERT INTO `domain` VALUES (1,'voip.sipwise.local','1900-01-01 00:00:01',NULL);
INSERT INTO `subscriber` VALUES (1,'no_such_number','voip.sipwise.local','54f79c331daddcca9045c347b4bdd402','fe2f7deb1f88d545d649a147662fa63f','78797b5e91eff683bb1bce7e6b4c2ded','9bcb88b6-541a-43da-8fdc-816f5557ff93','','0000-00-00 00:00:00');
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `subscriber` VALUES (1,'no_such_number','voip.sipwise.local','c8b4035043b999e1ea044c01fc5b9068','bb5190f8e89b1f262c2f8a85ac76bd1c','fc97813ec8bdbb421201f317695a9020','9bcb88b6-541a-43da-8fdc-816f5557ff93','','0000-00-00 00:00:00');
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
INSERT INTO `usr_preferences` VALUES (1,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','cloud_pbx_hunt_policy',0,'none','1900-01-01 00:00:01');
INSERT INTO `usr_preferences` VALUES (5,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','emergency_location_format',0,'cirpack','1900-01-01 00:00:01');
INSERT INTO `usr_preferences` VALUES (6,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','play_announce_before_recording',0,'never','1900-01-01 00:00:01');
commit;
set autocommit=0;
INSERT INTO `version` VALUES ('acc',5);
INSERT INTO `version` VALUES ('acc_cdrs',2);
INSERT INTO `version` VALUES ('active_watchers',12);
@ -1201,6 +1310,15 @@ INSERT INTO `version` VALUES ('trusted',6);
INSERT INTO `version` VALUES ('usr_preferences',2);
INSERT INTO `version` VALUES ('watchers',3);
INSERT INTO `version` VALUES ('xcap',4);
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
/*M!999999\- enable the sandbox mode */
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;

@ -102,13 +102,17 @@ SET character_set_client = @saved_cs_client;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
/*M!999999\- enable the sandbox mode */
set autocommit=0;
INSERT INTO `ldap_attr_mappings` VALUES (1,1,'uidNumber','users.id',NULL,'users',NULL,NULL,NULL,3,0);
INSERT INTO `ldap_attr_mappings` VALUES (2,1,'uid','users.uuid',NULL,'users',NULL,NULL,NULL,3,0);
INSERT INTO `ldap_attr_mappings` VALUES (3,1,'userPassword','users.password',NULL,'users',NULL,NULL,NULL,3,0);
INSERT INTO `ldap_attr_mappings` VALUES (4,1,'cn','users.username',NULL,'users',NULL,NULL,NULL,3,0);
INSERT INTO `ldap_attr_mappings` VALUES (5,1,'telephoneNumber','users.phone',NULL,'users',NULL,NULL,NULL,3,0);
INSERT INTO `ldap_attr_mappings` VALUES (6,1,'displayName','users.displayname',NULL,'users',NULL,NULL,NULL,3,0);
commit;
set autocommit=0;
INSERT INTO `ldap_oc_mappings` VALUES (1,'inetOrgPerson','users','id',NULL,NULL,0);
INSERT INTO `ldap_oc_mappings` VALUES (3,'organization','org','id',NULL,NULL,0);
commit;
/*M!999999\- enable the sandbox mode */
COMMIT;

File diff suppressed because it is too large Load Diff

@ -92,5 +92,11 @@ DELIMITER ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*M!999999\- enable the sandbox mode */
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
/*M!999999\- enable the sandbox mode */
COMMIT;

File diff suppressed because it is too large Load Diff

@ -108,5 +108,15 @@ CREATE TABLE `statistics` (
(PARTITION `p_old` VALUES LESS THAN (600) ENGINE = InnoDB);
/*!40101 SET character_set_client = @saved_cs_client */;
/*M!999999\- enable the sandbox mode */
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
/*M!999999\- enable the sandbox mode */
COMMIT;

@ -42,5 +42,9 @@ CREATE TABLE `cdr_info` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*M!999999\- enable the sandbox mode */
set autocommit=0;
commit;
set autocommit=0;
commit;
/*M!999999\- enable the sandbox mode */
COMMIT;

@ -876,5 +876,61 @@ CREATE TABLE `se9` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*M!999999\- enable the sandbox mode */
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
set autocommit=0;
commit;
/*M!999999\- enable the sandbox mode */
COMMIT;

Loading…
Cancel
Save