SessionS returning NO_SESSION if ChargerS are not returning any charger profile, diameter integration test for init voice calls, AttributeS properly rejecting non modified *attributes fields

This commit is contained in:
DanB
2018-10-04 20:31:39 +02:00
parent 60a80fc8f1
commit e5299d97b1
10 changed files with 154 additions and 22 deletions

View File

@@ -201,13 +201,14 @@ func (alS *AttributeService) processEvent(args *AttrArgsProcessEvent) (
}
rply.AlteredFields = append(rply.AlteredFields, fldName)
}
for _, valIface := range rply.CGREvent.Event {
if valIface == interface{}(utils.MetaAttributes) {
return nil, utils.NewCGRError(utils.AttributeSv1ProcessEvent,
utils.AttributesNotFoundCaps,
utils.AttributesNotFound,
utils.AttributesNotFound)
}
}
for _, valIface := range rply.CGREvent.Event {
if valIface == interface{}(utils.MetaAttributes) {
return nil, utils.NewCGRError(
utils.AttributeSv1ProcessEvent,
utils.AttributesNotFound,
utils.AttributesNotFound,
utils.AttributesNotFound)
}
}
return