mod_sofia: add sla indexes and fix where clause

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12075 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2009-02-17 00:30:11 +00:00
1 parent 10ce6f6bbd
commit 06099874da
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -3173,7 +3173,9 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
free(test_sql);
switch_core_db_exec(profile->master_db, "create index if not exists ssa_hostname on sip_shared_appearance_subscriptions (hostname)", NULL, NULL, NULL);
/* XXX MTK create additional index for shared_appearance if necessary */
switch_core_db_exec(profile->master_db, "create index if not exists ssa_subscriber on sip_shared_appearance_subscriptions (subscriber)", NULL, NULL, NULL);
switch_core_db_exec(profile->master_db, "create index if not exists ssa_profile_name on sip_shared_appearance_subscriptions (profile_name)", NULL, NULL, NULL);
switch_core_db_exec(profile->master_db, "create index if not exists ssa_aor on sip_shared_appearance_subscriptions (aor)", NULL, NULL, NULL);
}