From c460c00b55f63ae5ea6f8c6de81d62b06b30230e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 6 Jan 2015 10:27:10 -0600 Subject: [PATCH] FS-7134 #resolve --- src/mod/endpoints/mod_sofia/sofia_presence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index cfa900264b..550d0e874a 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -4283,9 +4283,9 @@ void sofia_presence_handle_sip_i_subscribe(int status, "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 sub_to_user='%q' " - "and (sip_host='%q' or presence_hosts like '%%%q%%')", + "and (sip_host='%q' or presence_hosts like '%%%q%%') and call_id='%q'", to_host, mod_sofia_globals.hostname, profile->name, - to_user, to_host, to_host))) { + to_user, to_host, to_host, call_id))) { if (mod_sofia_globals.debug_presence > 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,