774056846 4 months ago
parent
commit
24dce28448
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/core/callcenter/cache.py
  2. 1 1
      src/core/voip/bot.py

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

@@ -61,7 +61,7 @@ def add_agent_info(call_info: CallInfo = None, agent: AgentInfo = None, call_id=
 def add_call_info(call: CallInfo):
     for k, v in call.device_info_map.items():
         add_device(k, call.call_id)
-    print('add_call_info', call.call_id, call.to_json_string())
+    # print('add_call_info', call.call_id, call.to_json_string())
     redis_handler.set(CALL_INFO + call.call_id, call.to_json_string(), cacheDay * 24 * 60 * 60)
 
 

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

@@ -355,7 +355,7 @@ class MyCall(pj.Call):
             self.agent.hangup(self.user_part)
         elif action_code == 'transfer':  # 转人工
             print('todo 转人工')
-            sip_headers = {'P-LIBRA-HangUpReason':'transferToAgent'}
+            sip_headers = {'P-LIBRA-HangUpReason':'transferToAgent', 'P-LIBRA-ServiceId':'00000000000000000'}
             self.agent.hangup(self.user_part, **sip_headers)
 
 class ToTextBotAgent: