Use the "Server" header when responding to SIP requests.

(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
1.6.1
Olle Johansson 17 years ago
parent c05501d812
commit 676d9d3303

@ -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);

Loading…
Cancel
Save