|
@@ -49,12 +49,12 @@ class CallService:
|
|
|
|
|
|
def hold(self, call_info: CallInfo, device_id):
|
|
|
devices = call_info.device_list
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- custom_device_id = device_id
|
|
|
+ try:
|
|
|
+ self.client.hangup_call(call_info.call_id, device_id, case_enum=CallCause.HANGUP_EVENT)
|
|
|
+ devices.remove(device_id)
|
|
|
+ except:
|
|
|
+ pass
|
|
|
+ custom_device_id = devices[0]
|
|
|
print('debugger::hold, custom_device_id=%s'%custom_device_id, flush=True)
|
|
|
|
|
|
|