提交 652da368 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix id-less bug from mailing list .. USE JIRA DANG IT

上级 96550e89
...@@ -4132,7 +4132,6 @@ void sofia_presence_handle_sip_i_publish(nua_t *nua, sofia_profile_t *profile, n ...@@ -4132,7 +4132,6 @@ void sofia_presence_handle_sip_i_publish(nua_t *nua, sofia_profile_t *profile, n
char *pd_dup = NULL; char *pd_dup = NULL;
int count = 1, sub_count = 1; int count = 1, sub_count = 1;
char *contact_str; char *contact_str;
int open = 1;
sofia_nat_parse_t np = { { 0 } }; sofia_nat_parse_t np = { { 0 } };
if (!sip) { if (!sip) {
...@@ -4199,11 +4198,10 @@ void sofia_presence_handle_sip_i_publish(nua_t *nua, sofia_profile_t *profile, n ...@@ -4199,11 +4198,10 @@ void sofia_presence_handle_sip_i_publish(nua_t *nua, sofia_profile_t *profile, n
if (!strcasecmp(open_closed, "closed")) { if (!strcasecmp(open_closed, "closed")) {
rpid = note_txt = "Unregistered"; rpid = note_txt = "Unregistered";
} if (sofia_test_pflag(profile, PFLAG_MULTIREG)) {
count = sofia_reg_reg_count(profile, from_user, from_host);
if (sofia_test_pflag(profile, PFLAG_MULTIREG) && !open) { sub_count = sofia_presence_contact_count(profile, contact_str);
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 */ /* 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 */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论