Skip to content
Snippets Groups Projects
Commit 676d9d33 authored by Olle Johansson's avatar Olle Johansson
Browse files

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
parent c05501d8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment