From 853a303ef98d8b8d306362ea5a912a44aefa3c3c Mon Sep 17 00:00:00 2001 From: DanB Date: Thu, 17 Mar 2016 12:40:09 +0100 Subject: [PATCH] DiameterAgent pretify ACCOUNT_DISABLED error --- agents/dmtagent.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agents/dmtagent.go b/agents/dmtagent.go index 026fc0306..2b5466bac 100644 --- a/agents/dmtagent.go +++ b/agents/dmtagent.go @@ -159,6 +159,8 @@ func (self DiameterAgent) processCCR(ccr *CCR, reqProcessor *config.DARequestPro processorVars[CGRError] = utils.ErrUserNotFound.Error() case strings.HasSuffix(err.Error(), utils.ErrInsufficientCredit.Error()): processorVars[CGRError] = utils.ErrInsufficientCredit.Error() + case strings.HasSuffix(err.Error(), utils.ErrAccountDisabled.Error()): + processorVars[CGRError] = utils.ErrAccountDisabled.Error() default: // Unknown error processorVars[CGRError] = err.Error() processorVars[CGRResultCode] = strconv.Itoa(DiameterRatingFailed)