char *pd_dup = NULL;
int count = 1, sub_count = 1;
char *contact_str;
- int open = 1;
sofia_nat_parse_t np = { { 0 } };
if (!sip) {
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 */