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
This commit is contained in:
Olle Johansson 2008-03-25 10:54:07 +00:00
parent c05501d812
commit 676d9d3303
1 changed files with 1 additions and 1 deletions

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