diff options
author | Mark Michelson <mmichelson@digium.com> | 2013-08-22 17:42:37 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2013-08-22 17:42:37 +0000 |
commit | 8049bf94f70edd405b59b4a2ed5aa8119fd9d62b (patch) | |
tree | f05decc2638c641eabdbf3beaac550f0cdc5b9a0 /res/res_pjsip_mwi.c | |
parent | ae7fb07092e8c2f24e9a8cddc497106f5b05ce75 (diff) |
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
Diffstat (limited to 'res/res_pjsip_mwi.c')
-rw-r--r-- | res/res_pjsip_mwi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_pjsip_mwi.c b/res/res_pjsip_mwi.c index faf0a07b6..e2b9b630d 100644 --- a/res/res_pjsip_mwi.c +++ b/res/res_pjsip_mwi.c @@ -64,6 +64,7 @@ static int mwi_refresh_subscription(struct ast_sip_subscription *sub); static struct ast_sip_subscription_handler mwi_handler = { .event_name = "message-summary", .accept = { "application/simple-message-summary", }, + .handles_default_accept = 1, .subscription_shutdown = mwi_subscription_shutdown, .new_subscribe = mwi_new_subscribe, .resubscribe = mwi_resubscribe, |