|
@@ -550,7 +550,7 @@ class OutboundClient:
|
|
|
# 传统服务
|
|
|
self.hold(con, call_id, device_id)
|
|
|
self.build_call_info(call_id, device_id, new_device_id, destination=None, bucket_type=_bucket_call_type, **kwargs)
|
|
|
- # self.server.agent.acd_service.transfer_to_agent(call_id, new_device_id)
|
|
|
+ self.server.agent.acd_service.transfer_to_agent(call_id, new_device_id)
|
|
|
|
|
|
registry.CALL_INCOMING_REQUESTS.labels(f"{_bucket_call_type}").inc()
|
|
|
self.server.dataHandleServer.create_record(call_id, caller_number, _bucket_call_type, service_category=service_category, destination=destination)
|
|
@@ -636,13 +636,13 @@ class OutboundClient:
|
|
|
e = con.sendMSG(msg)
|
|
|
self.server.logger.info("hold.answer::complete::e=%s", e)
|
|
|
|
|
|
- msg = ESL.ESLevent("sendmsg", device_id)
|
|
|
- msg.addHeader("call-command", EXECUTE)
|
|
|
- msg.addHeader("execute-app-name", PLAYBACK)
|
|
|
- msg.addHeader("execute-app-arg", HOLD_MUSIC_PATH)
|
|
|
- msg.addHeader("async", "true")
|
|
|
- e = con.sendMSG(msg)
|
|
|
- self.server.logger.info("hold.hold_play::complete::e=%s", e)
|
|
|
+ # msg = ESL.ESLevent("sendmsg", device_id)
|
|
|
+ # msg.addHeader("call-command", EXECUTE)
|
|
|
+ # msg.addHeader("execute-app-name", PLAYBACK)
|
|
|
+ # msg.addHeader("execute-app-arg", HOLD_MUSIC_PATH)
|
|
|
+ # msg.addHeader("async", "true")
|
|
|
+ # e = con.sendMSG(msg)
|
|
|
+ # self.server.logger.info("hold.hold_play::complete::e=%s", e)
|
|
|
|
|
|
# self.bridge_break(con, call_id, device_id)
|
|
|
# self.server.cache.set_need_play_hold_music(call_id)
|