]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
worth a shot
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 24 Oct 2007 01:39:52 +0000 (01:39 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 24 Oct 2007 01:39:52 +0000 (01:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6045 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_presence.c

index 779719331a357c3cebda7bb94e1eb009f1019266..4f019e85528f9dd19ebf14ebe5976c6700dc9666 100644 (file)
@@ -508,11 +508,16 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
        char *to;
        char *open;
        char *tmp;
+       char *prpid = rpid;
 
        if (!rpid) {
                rpid = "unknown";
        }
 
+       if (!prpid) {
+               prpid = "onthephone";
+       }
+
        if (in) {
                note = switch_mprintf("<dm:note>%s</dm:note>", status);
                open = "open";
@@ -554,7 +559,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
                                                "</tuple>\r\n"
                                                "<dm:person id='p06360c4a'>\r\n"
                                                "<rpid:activities>\r\n" "<rpid:%s/>\r\n" "</rpid:activities>%s</dm:person>\r\n" "</presence>", id, 
-                                               id, profile->url, note, rpid,
+                                               id, profile->url, status, prpid,
                                                open, rpid, note);