worth a shot

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6045 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-10-24 01:39:52 +00:00
parent f1627ed9e9
commit 4cc27563ab
1 changed files with 6 additions and 1 deletions

View 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);