PJSIP: PJSIPNotify - Strip content-length headers and add documentation
authorJonathan Rose <jrose@digium.com>
Tue, 10 Jun 2014 16:06:12 +0000 (16:06 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 10 Jun 2014 16:06:12 +0000 (16:06 +0000)
commita0adb8a26b1bdba999e1afad0419169e592ef403
tree47d30ba073bf51a0ce29a9b1f85eb27b2f08d542
parentc63bf80c384729157d4b8650379fda381f451b41
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/
........

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

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