DavidLiu před 3 měsíci
rodič
revize
8b84bc95aa

+ 5 - 5
src/core/callcenter/esl/client.py

@@ -561,11 +561,11 @@ class OutboundClient:
                     registry.CALL_INCOMING_REQUESTS.labels(f"{_bucket_call_type}").inc()
                     self.server.dataHandleServer.create_record(call_id, caller_number, _bucket_call_type, service_category=service_category, destination=destination)
 
-                    try:
-                        con.disconnect()
-                        self.server.logger.info("connection disconnected !!!")
-                    except:
-                        traceback.print_exc()
+                    # try:
+                    #     con.disconnect()
+                    #     self.server.logger.info("connection disconnected !!!")
+                    # except:
+                    #     traceback.print_exc()
                 else:
                     self.server.logger.info("Failed to connect to FreeSWITCH")
             except:

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

@@ -20,11 +20,6 @@ class ChannelParkHandler(EslEventHandler):
 
     def handle(self, address, event, coreUUID):
         # self.logger.info("ChannelParkHandler, event=%s", json.loads(event.serialize('json')))
-        service = event.getHeader("variable_service")
-        if service:
-            self.process_fxo_calling(event)
-            return
-
         call_id = getCallId(event)
         device_id = getUniqueId(event)
         need_hold_music = getVariableNeedHoldMusic(event)
@@ -34,6 +29,11 @@ class ChannelParkHandler(EslEventHandler):
             self.play_hold_music(call_id, device_id, event)
             return
 
+        service = event.getHeader("variable_service")
+        if service:
+            self.process_fxo_calling(event)
+            return
+
     def play_hold_music(self, call_id, device_id, event):
         self.logger.info('debugger, ChannelParkHandler, call_id=%s, device_id=%s'%(call_id, device_id))
         if not call_id or not device_id: