diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-17 17:53:50 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-17 17:53:50 +0000 |
commit | 52da041f040b46fe6a9b71443f48f3d8818a3f8b (patch) | |
tree | 7ef1d4711da048cb155dbf965bc4df733ea1243f /channels | |
parent | 38db4cc0b3355ba83653d5de50462d281746c8bb (diff) |
Merged revisions 207029 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r207029 | dvossel | 2009-07-17 12:51:44 -0500 (Fri, 17 Jul 2009) | 6 lines
sip option flags handled incorrectly
(closes issue #15376)
Reported by: Takehiko Ooshima
Tested by: dvossel, Takehiko_Ooshima
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@207032 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 dbb3d9a6c..3a9d90008 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -17452,7 +17452,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 && 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 */ 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); |