diff options
Diffstat (limited to 'channels/chan_sip.c')
-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 53d448a05..11b7c5244 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18293,7 +18293,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); |