From: David Vossel Date: Fri, 17 Jul 2009 18:00:38 +0000 (+0000) Subject: sip option flags handled incorrectly X-Git-Tag: 1.4.26.2~4^2~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98a68207372b7dc5e862e39daf31c6337d5004c1;p=thirdparty%2Fasterisk.git sip option flags handled incorrectly (issue #15376) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@207033 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 63b303211b..ca8e38473a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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);