Fixes for DispatcherS tests

This commit is contained in:
Trial97
2019-02-14 12:05:29 +02:00
committed by Dan Christian Bogos
parent cf72c0aac3
commit bb2d874319
11 changed files with 279 additions and 218 deletions

View File

@@ -2821,7 +2821,9 @@ func APItoDispatcherProfile(tpDPP *utils.TPDispatcherProfile, timezone string) (
dpp.Subsystems[i] = sub
}
for i, param := range tpDPP.StrategyParams {
dpp.StrategyParams[string(i)] = param
if param != "" {
dpp.StrategyParams[strconv.Itoa(i)] = param
}
}
for i, conn := range tpDPP.Conns {
dpp.Conns[i] = &DispatcherConn{
@@ -2835,7 +2837,9 @@ func APItoDispatcherProfile(tpDPP *utils.TPDispatcherProfile, timezone string) (
dpp.Conns[i].FilterIDs[j] = fltr
}
for j, param := range conn.Params {
dpp.Conns[i].Params[string(j)] = param
if param != "" {
dpp.Conns[i].Params[strconv.Itoa(j)] = param
}
}
}
if tpDPP.ActivationInterval != nil {