774056846 4 months ago
parent
commit
7caa568654
2 changed files with 1 additions and 2 deletions
  1. 0 1
      src/core/callcenter/call.py
  2. 1 1
      src/core/voip/bot.py

+ 0 - 1
src/core/callcenter/call.py

@@ -50,7 +50,6 @@ class CallService:
     def hold(self, call_info: CallInfo, device_id):
         devices = call_info.device_list
         try:
-            self.client.hangup_call(call_info.call_id, device_id, case_enum=CallCause.HANGUP_EVENT)
             devices.remove(device_id)
         except:
             pass

+ 1 - 1
src/core/voip/bot.py

@@ -546,7 +546,7 @@ class BotAgent:
         if self.acd_service:
             self.acd_service.transfer_to_agent(call_id, device_id, service_id)
         # sip_headers = {'P-LIBRA-HangUpReason': 'transferToAgent', 'P-LIBRA-ServiceId': service_id}
-        # self.hangup(user_part, **sip_headers)
+        self.hangup(user_part)
 
     def hangup(self, user_part, reason="NORMAL_CLEARING", **sip_headers):
         call_op_param = pj.CallOpParam(True)