]> git.ipfire.org Git - thirdparty/asterisk.git/commit
PJSIP: PJSIPNotify - Strip content-length headers and add documentation
authorJonathan Rose <jrose@digium.com>
Tue, 10 Jun 2014 15:46:25 +0000 (15:46 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 10 Jun 2014 15:46:25 +0000 (15:46 +0000)
commitc2daa620aee36f32a83133db7adb2c0c426895e6
tree99dcfe97834f09d7d178dc2cfe531b8efe6561cf
parentaffd8271b2b8d0eab2a3d9acdf53ff568b387bdf
PJSIP: PJSIPNotify - Strip content-length headers and add documentation

Documentation for how to add custom headers/content to notifies created
with the PJSIPNotify manager action was a little sparse and it also
wasn't vetting application of Content-length headers like its chan_sip
equivalent was (so two Content-length headers could be applied... and
PJSIP determines the content length anyway, so it just opens people up
for error). This patch also flips the variable order so that the
variables are interpreted in the same order as they are put in the AMI
action.

Review: https://reviewboard.asterisk.org/r/3587/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@415658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/message.c
res/res_pjsip_notify.c