mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
added *http attribute type
This commit is contained in:
committed by
Dan Christian Bogos
parent
584a55ab25
commit
6f6374abb9
@@ -560,6 +560,10 @@ func ParseAttribute(dp utils.DataProvider, attrType, path string, value config.R
|
||||
sort.Strings(values[1:])
|
||||
out = strings.Join(values, utils.InfieldSep)
|
||||
default:
|
||||
if strings.HasPrefix(attrType, utils.MetaHTTP) {
|
||||
out, err = externalAttributeAPI(attrType, dp)
|
||||
break
|
||||
}
|
||||
return utils.EmptyString, fmt.Errorf("unsupported type: <%s>", attrType)
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user