From 66cec884baae60692f041aab6f73806b4a906a3d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 13 Sep 2010 12:51:30 -0500 Subject: [PATCH] fix small presence status bug --- 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 73d930314b..f88920294c 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -1442,7 +1442,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * op = switch_event_get_header(helper->event, "Caller-Callee-ID-Number"); } - if (!op) { + if (zstr(op)) { op = switch_event_get_header(helper->event, "Caller-Destination-Number"); } @@ -1452,7 +1452,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * if (!strcmp(astate, "early")) { if (zstr(op)) { - switch_snprintf(status_line, sizeof(status_line), "%s %s", what, status); + switch_snprintf(status_line, sizeof(status_line), "%sing", what); } else { switch_snprintf(status_line, sizeof(status_line), "%s %s", what, op); }