fix a few regressions from the last commit

This commit is contained in:
Anthony Minessale committed 2012-10-25 14:06:05 -05:00
1 parent b29412054a
commit 7e2110abf7
2 files changed
+19 -6

No files matched your search

+2
View File
@@ -759,6 +759,8 @@ void sofia_reg_check_expire(sofia_profile_t *profile, time_t now, int reboot)
sofia_glue_execute_sql(profile, &sql, SWITCH_TRUE);
sofia_presence_check_subscriptions(profile, now);
if (now) {
sql = switch_mprintf("delete from sip_dialogs where (expires = -1 or (expires > 0 and expires <= %ld)) and hostname='%q'",
(long) now, mod_sofia_globals.hostname);