From: Olle Johansson Date: Mon, 8 May 2006 15:09:55 +0000 (+0000) Subject: Issue 7103 - mikma X-Git-Tag: 1.2.8~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b93396fb95ffe006a2a178ef1c16128756823db;p=thirdparty%2Fasterisk.git Issue 7103 - mikma - The header is named "Require" - Don't reply to ACK (Not using patch against trunk) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25608 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index dc76a17685..12a4c8737e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10269,7 +10269,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int if (supported) parse_sip_options(p, supported); } - required = get_header(req, "Required"); + required = get_header(req, "Require"); if (!ast_strlen_zero(required)) { required_profile = parse_sip_options(NULL, required); if (required_profile) { /* They require something */ @@ -11018,7 +11018,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc if (!ignore && req->method == SIP_INVITE) { transmit_response_reliable(p, "481 Call/Transaction Does Not Exist", req, 1); /* Will cease to exist after ACK */ - } else { + } else if (req->method != SIP_ACK) { transmit_response(p, "481 Call/Transaction Does Not Exist", req); ast_set_flag(p, SIP_NEEDDESTROY); }