|
@@ -31,12 +31,11 @@ class ChannelParkHandler(EslEventHandler):
|
|
|
need_hold_music = getVariableNeedHoldMusic(event)
|
|
|
print("park播放等待音标识 callId: %s deviceId: %s needHoldMusic:%s"%(call_id,device_id,need_hold_music), flush=True)
|
|
|
if need_hold_music:
|
|
|
- self.play_hold_music(event)
|
|
|
+ call_id = call_id if call_id else need_hold_music
|
|
|
+ self.play_hold_music(call_id, device_id, event)
|
|
|
return
|
|
|
|
|
|
- def play_hold_music(self, event):
|
|
|
- call_id = getCallId(event)
|
|
|
- device_id = getUniqueId(event)
|
|
|
+ def play_hold_music(self, call_id, device_id, event):
|
|
|
print('debugger, ChannelParkHandler, call_id=%s, device_id=%s'%(call_id, device_id), flush=True)
|
|
|
if not call_id or not device_id:
|
|
|
return
|