Use the "Server" header when responding to SIP requests.
authorOlle Johansson <oej@edvina.net>
Tue, 25 Mar 2008 10:54:07 +0000 (10:54 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 25 Mar 2008 10:54:07 +0000 (10:54 +0000)
(closes issue #12278)
Reported by: rjain
Patches:
      chan_sip.c.diff uploaded by rjain (license 226)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@110625 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6eef59e..a6e6b4b 100644 (file)
@@ -7304,7 +7304,7 @@ static int respprep(struct sip_request *resp, struct sip_pvt *p, const char *msg
        copy_header(resp, req, "Call-ID");
        copy_header(resp, req, "CSeq");
        if (!ast_strlen_zero(global_useragent))
-               add_header(resp, "User-Agent", global_useragent);
+               add_header(resp, "Server", global_useragent);
        add_header(resp, "Allow", ALLOWED_METHODS);
        add_header(resp, "Supported", SUPPORTED_EXTENSIONS);