mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add tests for *sipcid case from ParseAttribute function
This commit is contained in:
committed by
Dan Christian Bogos
parent
86037c07ac
commit
b18467fdc3
@@ -547,11 +547,11 @@ func ParseAttribute(dp utils.DataProvider, attrType, path string, value config.R
|
||||
}
|
||||
return usedCCTime + time.Duration(debitItvl.Nanoseconds()*reqNr), nil
|
||||
case utils.MetaSIPCID:
|
||||
values := make([]string, 1, len(value))
|
||||
if len(value) < 1 {
|
||||
return nil, fmt.Errorf("invalid number of arguments <%s> to %s",
|
||||
utils.ToJSON(value), utils.MetaSIPCID)
|
||||
}
|
||||
values := make([]string, 1, len(value))
|
||||
if values[0], err = value[0].ParseDataProvider(dp); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user