]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
revert these two queries
authorBrian West <brian@freeswitch.org>
Sat, 9 Jan 2010 16:56:11 +0000 (16:56 +0000)
committerBrian West <brian@freeswitch.org>
Sat, 9 Jan 2010 16:56:11 +0000 (16:56 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16224 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_presence.c

index 067ce3edb96815f03427bb807d0912b666b500f9..22d46d2024e962ea13f291a35cfb7729fa22020c 100644 (file)
@@ -1885,7 +1885,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
                switch_snprintf(exp_delta_str, sizeof(exp_delta_str), "%ld", exp_delta);
                
                if (sofia_test_pflag(profile, PFLAG_MULTIREG)) {
-                       sql = switch_mprintf("update sip_subscriptions set expires=-1 where call_id='%q' "
+                       sql = switch_mprintf("delete from sip_subscriptions where call_id='%q' "
                                                                 "or (proto='%q' and sip_user='%q' and sip_host='%q' "
                                                                 "and sub_to_user='%q' and sub_to_host='%q' and event='%q' and hostname='%q' "
                                                                 "and contact='%q')",
@@ -1893,7 +1893,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
                                                                 contact_str);
 
                } else {
-                       sql = switch_mprintf("update sip_subscriptions set expires=-1 where "
+                       sql = switch_mprintf("delete from sip_subscriptions where "
                                                                 "proto='%q' and sip_user='%q' and sip_host='%q' and sub_to_user='%q' and sub_to_host='%q' and event='%q' and hostname='%q'",
                                                                 proto, from_user, from_host, to_user, to_host, event, mod_sofia_globals.hostname);
                }