|
@@ -288,7 +288,6 @@ class MyCall(pj.Call):
|
|
|
self.logger.info("通话结束:%s", self.user_part)
|
|
|
self.release()
|
|
|
|
|
|
-
|
|
|
def onCallMediaState(self, prm):
|
|
|
call_info = self.getInfo()
|
|
|
# print("Call Media state: ", call_info.stateText)
|
|
@@ -337,8 +336,6 @@ class MyCall(pj.Call):
|
|
|
self.logger.info(f"Status is not {message['header']['status']}")
|
|
|
registry.ASR_ERRORS.labels(message['header']['status']).inc()
|
|
|
|
|
|
-
|
|
|
-
|
|
|
def on_media_player_complete(self, player_id):
|
|
|
self.logger.info('player complete')
|
|
|
self.player_complete_dict[player_id] = True
|
|
@@ -365,6 +362,7 @@ class MyCall(pj.Call):
|
|
|
self.end_statistics()
|
|
|
#更新通话记录
|
|
|
self.agent.dataHandleServer.update_record(self.session_id, service_category=2)
|
|
|
+
|
|
|
def end_statistics(self):
|
|
|
if not self.statistics_lock:
|
|
|
self.statistics_lock = True
|