774056846 4 months ago
parent
commit
7ef9d9dabe
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/core/callcenter/esl/handler/channel_park_handler.py

+ 3 - 4
src/core/callcenter/esl/handler/channel_park_handler.py

@@ -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