]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Issue 7103 - mikma
authorOlle Johansson <oej@edvina.net>
Mon, 8 May 2006 15:09:55 +0000 (15:09 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 8 May 2006 15:09:55 +0000 (15:09 +0000)
- 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

channels/chan_sip.c

index dc76a17685da8fba93fd9fc654984f406f42f849..12a4c8737ee3845ecb087bfe30ac0906b957b23a 100644 (file)
@@ -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);
                        }