774056846 4 months ago
parent
commit
5897ea7f16
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/voip/bot.py

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

@@ -359,7 +359,7 @@ class MyCall(pj.Call):
         elif action_code == 'transfer':  # 转人工
             print('todo 转人工')
             sip_headers = {'bye_h_X-CIN-HangUpReason':'transferToAgent'}
-            self.agent.hangup(self.user_part, sip_headers=sip_headers)
+            self.agent.hangup(self.user_part, **sip_headers)
 
 class ToTextBotAgent:
     def __init__(self, user_asr_text, call_agent):