774056846 4 months ago
parent
commit
d4a94682a1
2 changed files with 3 additions and 2 deletions
  1. 1 0
      src/core/callcenter/call.py
  2. 2 2
      src/core/callcenter/esl/client.py

+ 1 - 0
src/core/callcenter/call.py

@@ -57,6 +57,7 @@ class CallService:
         print('debugger::hold, custom_device_id=%s'%custom_device_id, flush=True)
         self.client.bridge_break(custom_device_id)
         self.client.hold_play(custom_device_id, HOLD_MUSIC_PATH)
+        print('debugger::hold success custom_device_id=%s'%custom_device_id, flush=True)
 
     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])

+ 2 - 2
src/core/callcenter/esl/client.py

@@ -434,7 +434,7 @@ class InboundClient:
             " on"
         ]
         arg = ''.join(builder)
-        return self.con.api(PAUSE, arg)
+        self.con.api(PAUSE, arg)
 
     def hold_play(self, device_id, play):
         """向a-leg插播tts音乐(无限播放)"""
@@ -448,7 +448,7 @@ class InboundClient:
         print('debugger::hold_play, device_id=%s, play=%s' % (device_id, play), flush=True)
         arg = ''.join(builder)
         print('debugger::hold_play, arg=%s' % arg, flush=True)
-        return self.con.api(UUID_BROADCAST, arg)
+        self.con.api(UUID_BROADCAST, arg)
 
     def play_timeout(self, call_id, timeout):
         """播放超时主动挂机"""