Browse Source

调整配置为佳木斯生产环境

Davidliu 2 months ago
parent
commit
65e9092301

+ 1 - 1
docker-compose.yml

@@ -10,7 +10,7 @@ services:
       - /root/aibot/dm/voice:/root/aibot/dm/voice
       - /home/hongshan/freeswitch:/freeswitch
     environment:
-      - SERVE_HOST=192.168.100.159
+      - SERVE_HOST=192.168.120.161
       - TZ=Asia/Shanghai
     ports:
       - 8084:8084/udp

File diff suppressed because it is too large
+ 0 - 15
logs/flask.log.1


+ 1 - 1
sql/_localhost-2024_10_26_17_20_04-dump.sql

@@ -208,7 +208,7 @@ CREATE TABLE `c_phone` (
 
 LOCK TABLES `c_phone` WRITE;
 /*!40000 ALTER TABLE `c_phone` DISABLE KEYS */;
-INSERT INTO `c_phone` VALUES (1,'mdj','1000','slibra@#123456','sip:1000@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(2,'mdj','1001','slibra@#123456','sip:1001@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(3,'mdj','1002','slibra@#123456','sip:1002@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(4,'mdj','1003','slibra@#123456','sip:1003@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(5,'mdj','1004','slibra@#123456','sip:1004@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(6,'mdj','1005','slibra@#123456','sip:1005@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(7,'mdj','1006','slibra@#123456','sip:1006@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(8,'mdj','1007','slibra@#123456','sip:1007@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(9,'mdj','1008','slibra@#123456','sip:1008@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(10,'mdj','1009','slibra@#123456','sip:1009@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56');
+INSERT INTO `c_phone` VALUES (1,'mdj','1000','slibra@#123456','sip:1000@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(2,'mdj','1001','slibra@#123456','sip:1001@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(3,'mdj','1002','slibra@#123456','sip:1002@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(4,'mdj','1003','slibra@#123456','sip:1003@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(5,'mdj','1004','slibra@#123456','sip:1004@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(6,'mdj','1005','slibra@#123456','sip:1005@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(7,'mdj','1006','slibra@#123456','sip:1006@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(8,'mdj','1007','slibra@#123456','sip:1007@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(9,'mdj','1008','slibra@#123456','sip:1008@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(10,'mdj','1009','slibra@#123456','sip:1009@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56');
 /*!40000 ALTER TABLE `c_phone` ENABLE KEYS */;
 UNLOCK TABLES;
 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

+ 1 - 1
sql/_localhost-2024_10_27_16_08_25-dump.sql

@@ -288,7 +288,7 @@ CREATE TABLE `c_phone` (
 
 LOCK TABLES `c_phone` WRITE;
 /*!40000 ALTER TABLE `c_phone` DISABLE KEYS */;
-INSERT INTO `c_phone` VALUES (1,'mdj','1000','slibra@#123456','sip:1000@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(2,'mdj','1001','slibra@#123456','sip:1001@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(3,'mdj','1002','slibra@#123456','sip:1002@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(4,'mdj','1003','slibra@#123456','sip:1003@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(5,'mdj','1004','slibra@#123456','sip:1004@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(6,'mdj','1005','slibra@#123456','sip:1005@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(7,'mdj','1006','slibra@#123456','sip:1006@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(8,'mdj','1007','slibra@#123456','sip:1007@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(9,'mdj','1008','slibra@#123456','sip:1008@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(10,'mdj','1009','slibra@#123456','sip:1009@pbx.fuxicarbon.com:5060','wss://pbx.fuxicarbon.com:7443','stun:pbx.fuxicarbon.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56');
+INSERT INTO `c_phone` VALUES (1,'mdj','1000','slibra@#123456','sip:1000@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(2,'mdj','1001','slibra@#123456','sip:1001@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(3,'mdj','1002','slibra@#123456','sip:1002@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(4,'mdj','1003','slibra@#123456','sip:1003@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(5,'mdj','1004','slibra@#123456','sip:1004@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(6,'mdj','1005','slibra@#123456','sip:1005@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(7,'mdj','1006','slibra@#123456','sip:1006@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(8,'mdj','1007','slibra@#123456','sip:1007@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(9,'mdj','1008','slibra@#123456','sip:1008@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56'),(10,'mdj','1009','slibra@#123456','sip:1009@jms.sqlibra.com:5060','wss://jms.sqlibra.com:7443','stun:jms.sqlibra.com:3478',1,'2024-10-08 08:43:56','2024-10-08 08:43:56');
 /*!40000 ALTER TABLE `c_phone` ENABLE KEYS */;
 UNLOCK TABLES;
 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

+ 10 - 10
sql/libra_bot_c_phone.sql

@@ -17,13 +17,13 @@ create table c_phone
 create index idx_vcc_id_phone_num
     on c_phone (saas_id, phone_num);
 
-INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (1, 'mdj', '1000', 'slibra@#123456', 'sip:1000@pbx.fuxicarbon.com:5060', 'wss://pbx.fuxicarbon.com:7443', 'stun:pbx.fuxicarbon.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
-INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (2, 'mdj', '1001', 'slibra@#123456', 'sip:1001@pbx.fuxicarbon.com:5060', 'wss://pbx.fuxicarbon.com:7443', 'stun:pbx.fuxicarbon.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
-INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (3, 'mdj', '1002', 'slibra@#123456', 'sip:1002@pbx.fuxicarbon.com:5060', 'wss://pbx.fuxicarbon.com:7443', 'stun:pbx.fuxicarbon.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
-INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (4, 'mdj', '1003', 'slibra@#123456', 'sip:1003@pbx.fuxicarbon.com:5060', 'wss://pbx.fuxicarbon.com:7443', 'stun:pbx.fuxicarbon.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
-INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (5, 'mdj', '1004', 'slibra@#123456', 'sip:1004@pbx.fuxicarbon.com:5060', 'wss://pbx.fuxicarbon.com:7443', 'stun:pbx.fuxicarbon.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
-INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (6, 'mdj', '1005', 'slibra@#123456', 'sip:1005@pbx.fuxicarbon.com:5060', 'wss://pbx.fuxicarbon.com:7443', 'stun:pbx.fuxicarbon.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
-INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (7, 'mdj', '1006', 'slibra@#123456', 'sip:1006@pbx.fuxicarbon.com:5060', 'wss://pbx.fuxicarbon.com:7443', 'stun:pbx.fuxicarbon.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
-INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (8, 'mdj', '1007', 'slibra@#123456', 'sip:1007@pbx.fuxicarbon.com:5060', 'wss://pbx.fuxicarbon.com:7443', 'stun:pbx.fuxicarbon.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
-INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (9, 'mdj', '1008', 'slibra@#123456', 'sip:1008@pbx.fuxicarbon.com:5060', 'wss://pbx.fuxicarbon.com:7443', 'stun:pbx.fuxicarbon.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
-INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (10, 'mdj', '1009', 'slibra@#123456', 'sip:1009@pbx.fuxicarbon.com:5060', 'wss://pbx.fuxicarbon.com:7443', 'stun:pbx.fuxicarbon.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
+INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (1, 'mdj', '1000', 'slibra@#123456', 'sip:1000@jms.sqlibra.com:5060', 'wss://jms.sqlibra.com:7443', 'stun:jms.sqlibra.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
+INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (2, 'mdj', '1001', 'slibra@#123456', 'sip:1001@jms.sqlibra.com:5060', 'wss://jms.sqlibra.com:7443', 'stun:jms.sqlibra.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
+INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (3, 'mdj', '1002', 'slibra@#123456', 'sip:1002@jms.sqlibra.com:5060', 'wss://jms.sqlibra.com:7443', 'stun:jms.sqlibra.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
+INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (4, 'mdj', '1003', 'slibra@#123456', 'sip:1003@jms.sqlibra.com:5060', 'wss://jms.sqlibra.com:7443', 'stun:jms.sqlibra.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
+INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (5, 'mdj', '1004', 'slibra@#123456', 'sip:1004@jms.sqlibra.com:5060', 'wss://jms.sqlibra.com:7443', 'stun:jms.sqlibra.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
+INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (6, 'mdj', '1005', 'slibra@#123456', 'sip:1005@jms.sqlibra.com:5060', 'wss://jms.sqlibra.com:7443', 'stun:jms.sqlibra.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
+INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (7, 'mdj', '1006', 'slibra@#123456', 'sip:1006@jms.sqlibra.com:5060', 'wss://jms.sqlibra.com:7443', 'stun:jms.sqlibra.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
+INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (8, 'mdj', '1007', 'slibra@#123456', 'sip:1007@jms.sqlibra.com:5060', 'wss://jms.sqlibra.com:7443', 'stun:jms.sqlibra.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
+INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (9, 'mdj', '1008', 'slibra@#123456', 'sip:1008@jms.sqlibra.com:5060', 'wss://jms.sqlibra.com:7443', 'stun:jms.sqlibra.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');
+INSERT INTO libra_bot.c_phone (id, saas_id, phone_num, phone_pwd, sip_server, wss_server, ice_server, is_delete, update_time, create_time) VALUES (10, 'mdj', '1009', 'slibra@#123456', 'sip:1009@jms.sqlibra.com:5060', 'wss://jms.sqlibra.com:7443', 'stun:jms.sqlibra.com:3478', 1, '2024-10-08 16:43:56', '2024-10-08 16:43:56');

+ 1 - 1
src/core/callcenter/cache.py

@@ -142,7 +142,7 @@ class Cache:
         return RouteGateway(id=1,
                             saas_id=saas_id,
                             name='63366692',
-                            media_host='192.168.20.99',
+                            media_host='192.168.120.162',
                             media_port=5060,
                             caller_prefix='',
                             called_prefix='',

+ 1 - 1
src/core/callcenter/esl/handler/channel_park_handler.py

@@ -64,7 +64,7 @@ class ChannelParkHandler(EslEventHandler):
         device_id = event.getHeader("Unique-ID")
         service = event.getHeader("variable_service")
         self.logger.info(f"Incoming call with UUID: {device_id}  {service} is transfer to {destination}")
-        #self.inbound_client.con.execute("transfer", f"{destination} XML pbx.fuxicarbon.com", device_id)
+        #self.inbound_client.con.execute("transfer", f"{destination} XML jms.sqlibra.com", device_id)
         # self.con.execute("answer", "", call_uuid)
         self.cache.add_device_user_part(device_id, destination)
         self.inbound_client.con.execute("bridge", f"user/{destination}", device_id)

+ 1 - 1
src/core/callcenter/views.py

@@ -36,7 +36,7 @@ def index():
 <body>
     <h1>SocketIO Test</h1>
     <script>
-        var socket = io('ws://192.168.100.159:8091/ws/cs-im');
+        var socket = io('ws://192.168.120.161:8091/ws/cs-im');
         socket.on('response', function(msg) {
             alert(msg);
         });

+ 5 - 5
src/core/datasource.py

@@ -16,15 +16,15 @@ from redis import StrictRedis, ConnectionPool
 from time import sleep
 
 SERVE_HOST = os.environ.get("SERVE_HOST")
-# SERVE_HOST = "192.168.100.159"
+# SERVE_HOST = "192.168.120.161"
 MYSQL_PASSWORD = 'EKoAe3H8xybQKrFPApXM'
 
-if SERVE_HOST != "192.168.100.159":
+if SERVE_HOST != "192.168.120.161":
     SIP_SERVER = SERVE_HOST
     MYSQL_PASSWORD = "12345678"
-    # SIP_SERVER = "pbx.fuxicarbon.com"
+    # SIP_SERVER = "jms.sqlibra.com"
 else:
-    SIP_SERVER = "pbx.fuxicarbon.com"
+    SIP_SERVER = "jms.sqlibra.com"
 
 # RADIS_HOST = os.environ.get("REDIS_HOST", "10.0.0.24")
 #
@@ -47,7 +47,7 @@ class MysqlHandler:
     """
 
     def __init__(self,
-                #  host='192.168.100.159',
+                #  host='192.168.120.161',
                 #  user='root',
                 #  passwd='12345678',
 

Some files were not shown because too many files changed in this diff