]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix sip_dialogs table drop on schema change
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 2 Oct 2008 15:01:38 +0000 (15:01 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 2 Oct 2008 15:01:38 +0000 (15:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9784 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 5f2b970d87328f28ff7921f084ebf901c95b513d..a0a50b4d3310f32e8d33bec0944b461dd80ba388 100644 (file)
@@ -2881,7 +2881,7 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
                free(test_sql);
                
                test_sql = switch_mprintf("delete from sip_dialogs where hostname='%q'", mod_sofia_globals.hostname);
-               switch_core_db_test_reactive(profile->master_db, "delete from sip_dialogs", test_sql, dialog_sql);
+               switch_core_db_test_reactive(profile->master_db, test_sql, "DROP TABLE sip_dialogs", dialog_sql);
                free(test_sql);
                test_sql = switch_mprintf("delete from sip_authentication where hostname='%q'", mod_sofia_globals.hostname);
                switch_core_db_test_reactive(profile->master_db, test_sql, "DROP TABLE sip_authentication", auth_sql);