Add constant '@' and fix typo

This commit is contained in:
arberkatellari
2025-06-26 08:32:10 +02:00
committed by Dan Christian Bogos
parent 2385597155
commit d7254ff73c
4 changed files with 5 additions and 4 deletions

View File

@@ -2333,7 +2333,7 @@ func dynamicRoute(_ *Account, act *Action, _ Actions, _ *FilterS, ev any,
}
}
// Take only the string after @, for cases when the RouteProfileID is gotten from a switch agents event
routeFieldParts := strings.Split(params[1], "@")
routeFieldParts := strings.Split(params[1], utils.AtChar)
routeProfileFound := new(RouteProfile)
if len(routeFieldParts) > 2 {
return fmt.Errorf("more than 1 \"@\" character for RouteProfileID: <%s>", params[1])