DavidLiu vor 3 Monaten
Ursprung
Commit
43ef962c2f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/core/callcenter/esl/handler/channel_hangup_handler.py

+ 1 - 1
src/core/callcenter/esl/handler/channel_hangup_handler.py

@@ -83,7 +83,7 @@ class ChannelHangupHandler(EslEventHandler):
             hangup_cause = EslEventUtil.getVariableSipHPLIBRAHangupCause(event)
             hangup_reason = EslEventUtil.getLIBRAHangupReason(event)
 
-            device_info.hangup_cause = cause +"###"+ sip_invite_failure_phrase
+            device_info.hangup_cause = cause +"###"+ sip_invite_failure_phrase if sip_invite_failure_phrase else cause
             device_info.sip_protocol = sip_protocol
             device_info.sip_status = sip_status if sip_status else sip_invite_failure_status if sip_invite_failure_status else "EMPTY"
             device_info.channel_name = channel_name