|
@@ -18,6 +18,7 @@ from apscheduler.schedulers.background import BackgroundScheduler
|
|
|
|
|
|
from src.core.callcenter import registry
|
|
|
from src.core.callcenter.cache import Cache
|
|
|
+from src.core.callcenter.enumeration import HangupDir
|
|
|
from src.core.datasource import SIP_SERVER, SERVE_HOST
|
|
|
from src.core.voip.constant import *
|
|
|
|
|
@@ -379,6 +380,8 @@ class MyCall(pj.Call):
|
|
|
if action_code == 'hang': # 挂断
|
|
|
self.agent.hangup(self.user_part)
|
|
|
self.end_statistics()
|
|
|
+ # 更新通话记录
|
|
|
+ self.agent.dataHandleServer.update_record(self.session_id, hangup_dir=HangupDir.ROBOT_HANGUP.code)
|
|
|
elif action_code == 'transfer': # 转人工
|
|
|
self.agent.transfer(user_part=self.user_part, call_id=self.session_id, device_id=self.device_id)
|
|
|
self.end_statistics()
|