Handle default body types for SIP event packages in res_pjsip_pubsub
authorMark Michelson <mmichelson@digium.com>
Thu, 22 Aug 2013 17:42:37 +0000 (17:42 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 22 Aug 2013 17:42:37 +0000 (17:42 +0000)
commit8049bf94f70edd405b59b4a2ed5aa8119fd9d62b
treef05decc2638c641eabdbf3beaac550f0cdc5b9a0
parentae7fb07092e8c2f24e9a8cddc497106f5b05ce75
Handle default body types for SIP event packages in res_pjsip_pubsub

Prior to this change, we would reject SUBSCRIBE requests that had no Accept
headers. Now event package handlers that handle the default type for the
event package indicate that they do so. Therefore, if we have a handler that
can handle the default type, we can allow SUBSCRIBEs for the handler's event
package that have no Accept headers.

(closes issue ASTERISK-22067)
reported by Mark Michelson

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397441 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/res_pjsip_pubsub.h
res/res_pjsip_exten_state.c
res/res_pjsip_mwi.c
res/res_pjsip_pubsub.c