]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4525 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Aug 2012 18:34:14 +0000 (13:34 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Aug 2012 18:34:14 +0000 (13:34 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 474cf02161f96b493269a4fae4770aeab13cfae1..21400eaf8e89ca46ece8385a8fa471cfac484fc5 100644 (file)
@@ -3832,7 +3832,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
                if ((sql = switch_mprintf("select proto,sip_user,'%q',sub_to_user,sub_to_host,event,contact,call_id,full_from,"
                                                                  "full_via,expires,user_agent,accept,profile_name,network_ip"
                                                                  " from sip_subscriptions where hostname='%q' and profile_name='%q' and "
-                                                                 "event='message-summary' and sip_user='%q' "
+                                                                 "event='message-summary' and sub_to_user='%q' "
                                                                  "and (sip_host='%q' or presence_hosts like '%%%q%%')", 
                                                                  to_host, mod_sofia_globals.hostname, profile->name,
                                                                  to_user, to_host, to_host))) {