From: Anthony Minessale Date: Sat, 27 Oct 2012 17:34:35 +0000 (-0500) Subject: fix id-less bug from mailing list .. USE JIRA DANG IT X-Git-Tag: v1.3.1~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=652da36862cf005c88e1dda5af5c6c362b652de1;p=thirdparty%2Ffreeswitch.git fix id-less bug from mailing list .. USE JIRA DANG IT --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 181bd24a0a..17ab6b6efa 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -4132,7 +4132,6 @@ void sofia_presence_handle_sip_i_publish(nua_t *nua, sofia_profile_t *profile, n char *pd_dup = NULL; int count = 1, sub_count = 1; char *contact_str; - int open = 1; sofia_nat_parse_t np = { { 0 } }; if (!sip) { @@ -4199,11 +4198,10 @@ void sofia_presence_handle_sip_i_publish(nua_t *nua, sofia_profile_t *profile, n if (!strcasecmp(open_closed, "closed")) { rpid = note_txt = "Unregistered"; - } - - if (sofia_test_pflag(profile, PFLAG_MULTIREG) && !open) { - count = sofia_reg_reg_count(profile, from_user, from_host); - sub_count = sofia_presence_contact_count(profile, contact_str); + if (sofia_test_pflag(profile, PFLAG_MULTIREG)) { + count = sofia_reg_reg_count(profile, from_user, from_host); + sub_count = sofia_presence_contact_count(profile, contact_str); + } } /* if (count > 1) let's not and say we did or all the clients who subscribe to their own presence will think they selves is offline */