[asterisk-commits] dvossel: branch 1.4 r207033 - /branches/1.4/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 17 13:00:42 CDT 2009
Author: dvossel
Date: Fri Jul 17 13:00:38 2009
New Revision: 207033
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=207033
Log:
sip option flags handled incorrectly
(issue #15376)
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=207033&r1=207032&r2=207033
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Fri Jul 17 13:00:38 2009
@@ -14515,7 +14515,7 @@
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);
More information about the asterisk-commits
mailing list