]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 30 Nov 2012 21:01:16 +0000 (15:01 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 30 Nov 2012 21:01:16 +0000 (15:01 -0600)
src/mod/applications/mod_fifo/mod_fifo.c

index 00b411572cddaba789a66c779abb95004c06245b..ae462809000e454cfe65d10c5e370ea5f2f67076 100644 (file)
@@ -4040,6 +4040,21 @@ static switch_status_t load_config(int reload, int del_all)
        }
 
        if (!reload) {
+
+
+               switch_sql_queue_manager_init_name("fifo",
+                                                                                  &globals.qm,
+                                                                                  2,
+                                                                                  globals.odbc_dsn ? globals.odbc_dsn : globals.dbname,
+                                                                                  SWITCH_MAX_TRANS,
+                                                                                  globals.pre_trans_execute,
+                                                                                  globals.post_trans_execute,
+                                                                                  globals.inner_pre_trans_execute,
+                                                                                  globals.inner_post_trans_execute);
+
+
+
+
                switch_cache_db_test_reactive(dbh, "delete from fifo_outbound where static = 1 or taking_calls < 0 or stop_time < 0",
                                                                          "drop table fifo_outbound", outbound_sql);
                switch_cache_db_test_reactive(dbh, "delete from fifo_bridge", "drop table fifo_bridge", bridge_sql);
@@ -4485,18 +4500,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_fifo_load)
                return status;
        }
 
-       if (globals.odbc_dsn || globals.dbname) {
-               switch_sql_queue_manager_init_name("fifo",
-                                                                                  &globals.qm,
-                                                                                  2,
-                                                                                  globals.odbc_dsn ? globals.odbc_dsn : globals.dbname,
-                                                                                  SWITCH_MAX_TRANS,
-                                                                                  globals.pre_trans_execute,
-                                                                                  globals.post_trans_execute,
-                                                                                  globals.inner_pre_trans_execute,
-                                                                                  globals.inner_post_trans_execute);
-       }
-
 
        /* connect my internal structure to the blank pointer passed to me */
        *module_interface = switch_loadable_module_create_module_interface(pool, modname);