Skip to content
Snippets Groups Projects
Commit 65388d4e authored by David Vossel's avatar David Vossel
Browse files

sip option flags handled incorrectly

(closes issue #15376)
Reported by: Takehiko Ooshima
Tested by: dvossel, Takehiko_Ooshima


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 82703399
Branches
Tags
No related merge requests found
...@@ -20062,7 +20062,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int ...@@ -20062,7 +20062,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
required = get_header(req, "Require"); required = get_header(req, "Require");
if (!ast_strlen_zero(required)) { if (!ast_strlen_zero(required)) {
required_profile = parse_sip_options(NULL, required); required_profile = parse_sip_options(NULL, required);
if (required_profile && required_profile != SIP_OPT_REPLACES && required_profile != SIP_OPT_TIMER) { if (required_profile && !(required_profile & (SIP_OPT_REPLACES | SIP_OPT_TIMER))) {
/* At this point we only support REPLACES and Session-Timer */ /* At this point we only support REPLACES and Session-Timer */
transmit_response_with_unsupported(p, "420 Bad extension (unsupported)", req, required); transmit_response_with_unsupported(p, "420 Bad extension (unsupported)", req, required);
ast_log(LOG_WARNING, "Received SIP INVITE with unsupported required extension: %s\n", required); ast_log(LOG_WARNING, "Received SIP INVITE with unsupported required extension: %s\n", required);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment