From: Anthony Minessale Date: Tue, 3 Aug 2010 18:55:08 +0000 (-0500) Subject: remove 'online' element from rpid X-Git-Tag: v1.2-rc1~526^2~47^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d058402dfbb0d15701bab54f92e463de9b3c02d;p=thirdparty%2Ffreeswitch.git remove 'online' element from rpid --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 0e23d55622..95f22205d1 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -1026,7 +1026,7 @@ static char *translate_rpid(char *in) } if (!strcasecmp(in, "unknown")) { - r = "online"; + r = NULL; goto end; } @@ -1238,8 +1238,6 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * rpid = "unknown"; } - prpid = translate_rpid(rpid); - if (!strcasecmp(proto, SOFIA_CHAT_PROTO)) { clean_id = switch_mprintf("sip:%s@%s", sub_to_user, sub_to_host); } else {