Merged revisions 72272 via svnmerge from
[asterisk/asterisk.git] / pbx / pbx_config.c
index be125dd..507a960 100644 (file)
@@ -1401,6 +1401,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';