diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-17 18:00:38 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-17 18:00:38 +0000 |
commit | 0691cdc20a9df461c2f7e169bba8b6b1370f3237 (patch) | |
tree | 739b37925387eb02f632386787a8c42d8a994702 | |
parent | 565058e1b4176865f4b450cce1d8ae9d63838517 (diff) |
sip option flags handled incorrectly
(issue #15376)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@207033 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 63b303211..ca8e38473 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); |