mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
Merge branch 'master' of https://github.com/cgrates/cgrates
This commit is contained in:
@@ -160,6 +160,10 @@ func (self DiameterAgent) processCCR(ccr *CCR, reqProcessor *config.DARequestPro
|
||||
processorVars[CGRError] = utils.ErrInsufficientCredit.Error()
|
||||
case strings.HasSuffix(err.Error(), utils.ErrAccountDisabled.Error()):
|
||||
processorVars[CGRError] = utils.ErrAccountDisabled.Error()
|
||||
case strings.HasSuffix(err.Error(), utils.ErrRatingPlanNotFound.Error()):
|
||||
processorVars[CGRError] = utils.ErrRatingPlanNotFound.Error()
|
||||
case strings.HasSuffix(err.Error(), utils.ErrUnauthorizedDestination.Error()):
|
||||
processorVars[CGRError] = utils.ErrUnauthorizedDestination.Error()
|
||||
default: // Unknown error
|
||||
processorVars[CGRError] = err.Error()
|
||||
processorVars[CGRResultCode] = strconv.Itoa(DiameterRatingFailed)
|
||||
|
||||
Reference in New Issue
Block a user