Sanitize XML output for PIDF bodies.
authorMark Michelson <mmichelson@digium.com>
Fri, 30 Aug 2013 00:11:22 +0000 (00:11 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 30 Aug 2013 00:11:22 +0000 (00:11 +0000)
commiteb955dad9adbf76c3e0ff68cfd1c794989af1941
tree15c608ca7744e84418f35560c98a5b171ad60bfb
parentb5f61b560894bb632665828ce1809cd873446433
Sanitize XML output for PIDF bodies.

PJSIP's PIDF API does not replace angle brackets with
their appropriate counterparts for XML. So we have to
do it ourself. In this particular case, the problem had
to do with attempting to place an unsanitized SIP URI
into an XML node. Now we don't get a 488 from recipients
of our PIDF NOTIFYs.
........

Merged revisions 397968 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_pidf.c