diff --git a/main/config.c b/main/config.c index 28e9708a74..659cfe0ebb 100644 --- a/main/config.c +++ b/main/config.c @@ -1103,7 +1103,7 @@ int read_config_maps(void) { struct ast_config *config, *configtmp; struct ast_variable *v; - char *driver, *table, *database, *stringp; + char *driver, *table, *database, *stringp, *tmp; clear_config_maps(); @@ -1119,6 +1119,9 @@ int read_config_maps(void) stringp = v->value; driver = strsep(&stringp, ","); + if ((tmp = strchr(stringp, '\"'))) + stringp = tmp; + /* check if the database text starts with a double quote */ if (*stringp == '"') { stringp++;