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