]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
sip option flags handled incorrectly
authorDavid Vossel <dvossel@digium.com>
Fri, 17 Jul 2009 18:00:38 +0000 (18:00 +0000)
committerDavid Vossel <dvossel@digium.com>
Fri, 17 Jul 2009 18:00:38 +0000 (18:00 +0000)
(issue #15376)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@207033 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 63b303211bbb85e7f88b9a32cc202ea82d0647cc..ca8e38473a3df2dec760872d74c2318b309402c1 100644 (file)
@@ -14515,7 +14515,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
        required = get_header(req, "Require");
        if (!ast_strlen_zero(required)) {
                required_profile = parse_sip_options(NULL, required);
-               if (required_profile && required_profile != SIP_OPT_REPLACES) {
+               if (required_profile && !(required_profile & SIP_OPT_REPLACES)) {
                        /* At this point we only support REPLACES */
                        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);