|
@@ -53,9 +53,10 @@ class CallService:
|
|
|
devices.remove(device_id)
|
|
|
except:
|
|
|
pass
|
|
|
- print('debugger::hold, custom_device_id=%s'%devices.get(0))
|
|
|
- self.client.bridge_break(devices.get(0))
|
|
|
- self.client.hold_play(devices.get(0), HOLD_MUSIC_PATH)
|
|
|
+ custom_device_id = devices[0]
|
|
|
+ print('debugger::hold, custom_device_id=%s'%custom_device_id)
|
|
|
+ self.client.bridge_break(custom_device_id)
|
|
|
+ self.client.hold_play(custom_device_id, HOLD_MUSIC_PATH)
|
|
|
|
|
|
def cancel_hold(self, call_info: CallInfo, device_id):
|
|
|
self.client.bridge_call(call_info.call_id, call_info.device_list[0], call_info.device_list[1])
|