|
@@ -130,7 +130,7 @@ class CallService:
|
|
return
|
|
return
|
|
self.logger.info("hangup_all, call_id:%s, devices=%s, case=%s"%(call_info.call_id, json.dumps(devices), case_enum))
|
|
self.logger.info("hangup_all, call_id:%s, devices=%s, case=%s"%(call_info.call_id, json.dumps(devices), case_enum))
|
|
for device in devices:
|
|
for device in devices:
|
|
- self.client.hangup_call(call_info.call_id, device, case_enum)
|
|
|
|
|
|
+ self.client.kill_call(call_info.call_id, device, case_enum)
|
|
|
|
|
|
def hangup_call(self, call_id):
|
|
def hangup_call(self, call_id):
|
|
call_info = self.cache.get_call_info(call_id)
|
|
call_info = self.cache.get_call_info(call_id)
|
|
@@ -143,7 +143,7 @@ class CallService:
|
|
return
|
|
return
|
|
self.logger.info("hangup_all, call_id:%s, devices=%s" % (call_info.call_id, json.dumps(devices)))
|
|
self.logger.info("hangup_all, call_id:%s, devices=%s" % (call_info.call_id, json.dumps(devices)))
|
|
for device in devices:
|
|
for device in devices:
|
|
- self.client.hangup_call(call_info.call_id, device, CallCause.RESTART)
|
|
|
|
|
|
+ self.client.kill_call(call_info.call_id, device, CallCause.RESTART)
|
|
|
|
|
|
def checkin_call(self, request: CheckInCallRequest):
|
|
def checkin_call(self, request: CheckInCallRequest):
|
|
agent = self.cache.get_agent_info(request.saas_id, request.agent_number)
|
|
agent = self.cache.get_agent_info(request.saas_id, request.agent_number)
|