|
@@ -49,11 +49,12 @@ class CallService:
|
|
|
|
|
|
def hold(self, call_info: CallInfo, device_id):
|
|
def hold(self, call_info: CallInfo, device_id):
|
|
devices = call_info.device_list
|
|
devices = call_info.device_list
|
|
- try:
|
|
|
|
- devices.remove(device_id)
|
|
|
|
- except:
|
|
|
|
- pass
|
|
|
|
- custom_device_id = devices[0]
|
|
|
|
|
|
+ # try:
|
|
|
|
+ # devices.remove(device_id)
|
|
|
|
+ # except:
|
|
|
|
+ # pass
|
|
|
|
+ # custom_device_id = devices[0]
|
|
|
|
+ custom_device_id = device_id
|
|
print('debugger::hold, custom_device_id=%s'%custom_device_id, flush=True)
|
|
print('debugger::hold, custom_device_id=%s'%custom_device_id, flush=True)
|
|
# self.client.sync_invoke_method("bridge_break", method_args=(custom_device_id,))
|
|
# self.client.sync_invoke_method("bridge_break", method_args=(custom_device_id,))
|
|
# self.client.sync_invoke_method("hold_play", method_args=(custom_device_id,HOLD_MUSIC_PATH))
|
|
# self.client.sync_invoke_method("hold_play", method_args=(custom_device_id,HOLD_MUSIC_PATH))
|