add on to proto mapping patch

This commit is contained in:
Anthony Minessale committed 2011-10-24 09:49:34 -05:00
1 parent d6d187486c
commit 9f93820c07
2 files changed
+89 -22

No files matched your search

+3 -2
View File
@@ -5849,7 +5849,8 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
" hostname VARCHAR(255),\n"
" network_port VARCHAR(6),\n"
" network_ip VARCHAR(255),\n"
" version INTEGER DEFAULT 0 NOT NULL\n"
" version INTEGER DEFAULT 0 NOT NULL,\n"
" orig_proto VARCHAR(255)\n"
");\n";
char auth_sql[] =
@@ -5969,7 +5970,7 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
free(test_sql);
test_sql = switch_mprintf("delete from sip_subscriptions where hostname='%q' and version < 0 and network_ip like '%%' and network_port like '%%'",
test_sql = switch_mprintf("delete from sip_subscriptions where hostname='%q' and version < 0 orig_proto like '%%' and network_ip like '%%' and network_port like '%%'",
mod_sofia_globals.hostname);
switch_cache_db_test_reactive(dbh, test_sql, "DROP TABLE sip_subscriptions", sub_sql);