]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix sql error due to wrong field name (MODENDP-50)
authorMichael Jerris <mike@jerris.com>
Mon, 3 Dec 2007 16:12:04 +0000 (16:12 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 3 Dec 2007 16:12:04 +0000 (16:12 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6476 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_presence.c

index df73c0519dcdff34d0fa8e42d83577de37df3cb7..05c61d13a70a9d3b1ae228c1ed02db65298684c4 100644 (file)
@@ -784,7 +784,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
                switch_mutex_lock(profile->ireg_mutex);
 
                sql = switch_mprintf("delete from sip_subscriptions where "
-                                                        "proto='%q' and user='%q' and host='%q' and sub_to_user='%q' and sub_to_host='%q' and event='%q'",
+                                                        "proto='%q' and sip_user='%q' and sip_host='%q' and sub_to_user='%q' and sub_to_host='%q' and event='%q'",
                                                         proto,
                                                         from_user,
                                                         from_host,