summaryrefslogtreecommitdiff
path: root/res/res_pjsip
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2014-07-07 16:08:47 +0000
committerJoshua Colp <jcolp@digium.com>2014-07-07 16:08:47 +0000
commit534ffd8481341da6c7539163d7f575e98173cae0 (patch)
tree8e3544fd1d29ea55ba15063a865db97f8e3d0138 /res/res_pjsip
parentd4b436d0ea766d51d7743a874df441d40fdcd226 (diff)
res_pjsip_dialog_info_body_generator: Add dialog-info+xml support for presence.
This module implements dialog-info+xml for the purposes of presence. This means that phones such as Grandstreams can now subscribe to receive presence information for an extension. ASTERISK-21443 #close Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/3705/ ........ Merged revisions 418116 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip')
-rw-r--r--res/res_pjsip/presence_xml.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/res/res_pjsip/presence_xml.c b/res/res_pjsip/presence_xml.c
index 9ed07caa1..2fe6bdc00 100644
--- a/res/res_pjsip/presence_xml.c
+++ b/res/res_pjsip/presence_xml.c
@@ -152,7 +152,10 @@ pj_xml_node *ast_sip_presence_xml_create_node(pj_pool_t *pool,
node->content.ptr = NULL;
node->content.slen = 0;
- pj_xml_add_node(parent, node);
+ if (parent) {
+ pj_xml_add_node(parent, node);
+ }
+
return node;
}