[svn-commits] oej: trunk r110625 - /trunk/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 25 05:54:10 CDT 2008


Author: oej
Date: Tue Mar 25 05:54:07 2008
New Revision: 110625

URL: http://svn.digium.com/view/asterisk?view=rev&rev=110625
Log:
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)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=110625&r1=110624&r2=110625
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Mar 25 05:54:07 2008
@@ -7304,7 +7304,7 @@
 	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);
 




More information about the svn-commits mailing list