From: Anthony Minessale Date: Wed, 24 Oct 2007 01:39:52 +0000 (+0000) Subject: worth a shot X-Git-Tag: v1.0-beta2~325 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cc27563ab73ece4bce21a6bad07e773dc1fe626;p=thirdparty%2Ffreeswitch.git worth a shot git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6045 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 779719331a..4f019e8552 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -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("%s", status); open = "open"; @@ -554,7 +559,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * "\r\n" "\r\n" "\r\n" "\r\n" "%s\r\n" "", id, - id, profile->url, note, rpid, + id, profile->url, status, prpid, open, rpid, note);