|
@@ -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()
|