FS-4420 --resolve

This commit is contained in:
Anthony Minessale 2012-07-20 11:17:22 -05:00
parent a8019d803c
commit e3a6366782
1 changed files with 10 additions and 2 deletions

View File

@ -2846,8 +2846,12 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
if (!zstr(op)) { if (!zstr(op)) {
//switch_snprintf(status_line, sizeof(status_line), "%sing", what); //switch_snprintf(status_line, sizeof(status_line), "%sing", what);
//} else { //} else {
if (sofia_test_pflag(profile, PFLAG_PRESENCE_PRIVACY)) {
switch_snprintf(status_line, sizeof(status_line), "%s", what);
} else {
switch_snprintf(status_line, sizeof(status_line), "%s %s", what, op); switch_snprintf(status_line, sizeof(status_line), "%s %s", what, op);
} }
}
rpid = "on-the-phone"; rpid = "on-the-phone";
force_status = 1; force_status = 1;
@ -2875,7 +2879,11 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
if (!term && !strcmp(status, "hold")) { if (!term && !strcmp(status, "hold")) {
rpid = "on-the-phone"; rpid = "on-the-phone";
if (!zstr(op)) { if (!zstr(op)) {
if (sofia_test_pflag(profile, PFLAG_PRESENCE_PRIVACY)) {
switch_snprintf(status_line, sizeof(status_line), "Hold");
} else {
switch_snprintf(status_line, sizeof(status_line), "Hold %s", op); switch_snprintf(status_line, sizeof(status_line), "Hold %s", op);
}
force_status = 1; force_status = 1;
} }
} }