From 22968ce31124d88c25644a4512daac93f0e8fd0d Mon Sep 17 00:00:00 2001 From: Trevor Hemsley Date: Sun, 22 Oct 2023 17:49:19 +0000 Subject: [PATCH] [mod_sofia] clean up passive presence database entries --- 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 579cea83e2..9754289d6e 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -5070,9 +5070,9 @@ void sofia_presence_check_subscriptions(sofia_profile_t *profile, time_t now) if (now) { struct pres_sql_cb cb = {profile, 0}; - if (profile->pres_type != PRES_TYPE_FULL) { + if (profile->pres_type == PRES_TYPE_NONE) { if (mod_sofia_globals.debug_presence > 0) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "check_subs: %s is passive, skipping\n", (char *) profile->name); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "check_subs: %s is not presence enabled, skipping\n", (char *) profile->name); } return; }