|
@@ -252,18 +252,15 @@ class InboundClient:
|
|
|
msg.addHeader("call-command", EXECUTE)
|
|
|
msg.addHeader("execute-app-name", HANGUP)
|
|
|
msg.addHeader("execute-app-arg", NORMAL_CLEARING)
|
|
|
- msg.addHeader("async", "true")
|
|
|
+ # msg.addHeader("async", "true")
|
|
|
_con = None
|
|
|
try:
|
|
|
_con = ESL.ESLconnection(self.host, self.port, self.password)
|
|
|
if _con.connected():
|
|
|
- self.logger.info("hangup_call挂机1 hangup call: %s, device: %s, ctiCauseEnum: %s" % (call_id, device_id, case_enum))
|
|
|
arg = ''.join([EslEventUtil.SIP_H_P_LIBRA_HANGUP_CAUSE, "=", case_enum.description])
|
|
|
- self.logger.info("hangup_call挂机2 hangup call: %s, device: %s, arg: %s" % (call_id, device_id, arg))
|
|
|
self.send_args(device_id, SET, arg, con=_con)
|
|
|
- self.logger.info("hangup_call挂机3 hangup call: %s, device: %s, arg: %s" % (call_id, device_id, arg))
|
|
|
_con.sendEvent(msg)
|
|
|
- self.logger.info("hangup_call挂机4 hangup call: %s, device: %s, arg: %s" % (call_id, device_id, arg))
|
|
|
+ self.logger.info("hangup_call挂机 hangup call: %s, device: %s, arg: %s" % (call_id, device_id, arg))
|
|
|
except:
|
|
|
traceback.print_exc()
|
|
|
finally:
|