diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index a844cfc2b7..4ca3841a0b 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -2238,6 +2238,8 @@ static int pbx_load_config(const char *config_file) pri = strsep(&stringp, ","); if (!pri) pri=""; + pri = ast_skip_blanks(pri); + pri = ast_trim_blanks(pri); label = strchr(pri, '('); if (label) { *label++ = '\0';