more presence and not the kind with bows and ribbons

This commit is contained in:
Anthony Minessale 2010-12-20 14:36:03 -06:00
parent a1a710482b
commit cfd6876c21
1 changed files with 3 additions and 2 deletions

View File

@ -840,10 +840,11 @@ static void actual_sofia_presence_event_handler(switch_event_t *event)
"where sip_subscriptions.expires > -1 and " "where sip_subscriptions.expires > -1 and "
"(event='%q' or event='%q') and sub_to_user='%q' " "(event='%q' or event='%q') and sub_to_user='%q' "
"and (sub_to_host='%q' or presence_hosts like '%%%q%%') " "and (sub_to_host='%q' or presence_hosts like '%%%q%%') "
"and (sip_subscriptions.profile_name = '%q' or sip_subscriptions.presence_hosts != sip_subscriptions.sub_to_host)", "and (sip_subscriptions.profile_name = '%q' or sip_subscriptions.presence_hosts != sip_subscriptions.sub_to_host) "
"and (presence_id is null or presence_id = '%q@%q')",
switch_str_nil(status), switch_str_nil(rpid), host, switch_str_nil(status), switch_str_nil(rpid), host,
dh.status,dh.rpid, dh.status,dh.rpid,
event_type, alt_event_type, euser, host, host, profile->name))) { event_type, alt_event_type, euser, host, host, profile->name, euser, host))) {
struct presence_helper helper = { 0 }; struct presence_helper helper = { 0 };