|
@@ -302,9 +302,13 @@ class InboundClient:
|
|
|
msg.addHeader("call-command", EXECUTE)
|
|
|
msg.addHeader("execute-app-name", HANGUP)
|
|
|
msg.addHeader("execute-app-arg", NORMAL_CLEARING)
|
|
|
- print("hangup_call挂机 hangup call: %s, device: %s, ctiCauseEnum: %s"% (call_id, device_id, case_enum), flush=True)
|
|
|
- self.send_args(device_id, SET, EslEventUtil.SIP_H_P_LIBRA_HANGUP_CAUSE + "=" + case_enum.description)
|
|
|
+ print("hangup_call挂机1 hangup call: %s, device: %s, ctiCauseEnum: %s"% (call_id, device_id, case_enum), flush=True)
|
|
|
+ arg = ''.join([EslEventUtil.SIP_H_P_LIBRA_HANGUP_CAUSE,"=", case_enum.description])
|
|
|
+ print("hangup_call挂机2 hangup call: %s, device: %s, arg: %s"% (call_id, device_id, arg), flush=True)
|
|
|
+ self.send_args(device_id, SET, arg)
|
|
|
+ print("hangup_call挂机3 hangup call: %s, device: %s, arg: %s"% (call_id, device_id, arg), flush=True)
|
|
|
self.con.sendEvent(msg)
|
|
|
+ print("hangup_call挂机4 hangup call: %s, device: %s, arg: %s"% (call_id, device_id, arg), flush=True)
|
|
|
|
|
|
def broadcast(self, uuid, path, smf):
|
|
|
builder = [
|