]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove 'online' element from rpid
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 3 Aug 2010 18:55:08 +0000 (13:55 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 3 Aug 2010 18:55:08 +0000 (13:55 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 0e23d55622a6f26b670e3ae440f4bdbef70ad56a..95f22205d1d7439f5dabdc8c11f24cd4919181cc 100644 (file)
@@ -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 {