774056846 4 months ago
parent
commit
489d0f5851
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/core/callcenter/esl/client.py

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

@@ -434,8 +434,8 @@ class InboundClient:
             _con = ESL.ESLconnection(self.host, self.port, self.password)
             if _con.connected():
                 print('debugger::bridge_break, arg=%s'%arg, flush=True)
-                _con.api(TRANSFER, arg)
-                print('debugger::bridge_break success, arg=%s'%arg, flush=True)
+                e = _con.api(TRANSFER, arg)
+                print('debugger::bridge_break success, arg=%s, event=%s' % (arg, e.serialize('json')), flush=True)
         except:
             traceback.print_exc()
         finally:
@@ -479,8 +479,8 @@ class InboundClient:
             _con = ESL.ESLconnection(self.host, self.port, self.password)
             if _con.connected():
                 print('debugger::hold_play, arg=%s' % arg, flush=True)
-                _con.bgapi(UUID_BROADCAST, arg)
-                print('debugger::hold_play success, arg=%s' % arg, flush=True)
+                e = _con.api(UUID_BROADCAST, arg)
+                print('debugger::hold_play success, arg=%s, event=%s' % (arg, e.serialize('json')), flush=True)
         except:
             traceback.print_exc()
         finally: