]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Issue #8793 bad response for Unsupported Extension (different fix).
authorOlle Johansson <oej@edvina.net>
Thu, 11 Jan 2007 18:11:09 +0000 (18:11 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 11 Jan 2007 18:11:09 +0000 (18:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50517 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index f6627b9904ca67f310e81186b7a423ed382cbe08..8f4f0d1ec5cea696520de70a429525db18fc2d68 100644 (file)
@@ -4346,6 +4346,8 @@ static int transmit_response_with_unsupported(struct sip_pvt *p, char *msg, stru
        respprep(&resp, p, msg, req);
        append_date(&resp);
        add_header(&resp, "Unsupported", unsupported);
+       add_header_contentLength(&resp, 0);
+       add_blank_header(&resp);
        return send_response(p, &resp, 0, 0);
 }