Don't skip the query field on a realtime multi query
[asterisk/asterisk.git] / res / res_config_sqlite.c
index fbeeac2..b5b8de4 100644 (file)
@@ -1154,8 +1154,9 @@ static int add_rt_multi_cfg_entry(void *arg, int argc, char **argv, char **colum
        ast_category_append(args->cfg, cat);
 
        for (i = 0; i < argc; i++) {
-               if (!argv[i] || !strcmp(args->initfield, columnNames[i]))
+               if (!argv[i]) {
                        continue;
+               }
 
                if (!(var = ast_variable_new(columnNames[i], argv[i], ""))) {
                        ast_log(LOG_WARNING, "Unable to allocate variable\n");