DavidLiu 3 months ago
parent
commit
92dee62bbc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/voip/bot.py

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

@@ -368,8 +368,7 @@ class MyCall(pj.Call):
             registry.BOT_INTERACTION_ROUNDS.labels(self.taskId).observe(self.inter_action_total)
 
     def release(self):
-        self.asr.close()
-        self.agent.hangup(self.user_part)
+        # self.agent.hangup(self.user_part)
 
         if self.audio_port:
             # self.audio_port.stopTransmit()
@@ -381,6 +380,7 @@ class MyCall(pj.Call):
             # self.audio_media.stopTransmit()
             self.aud_media = None
 
+        self.asr.close()
         # 远程挂机之后要将分机号回收
         self.agent.release(self.user_part)
         self.end_statistics()