Module: sip-router
Branch: sr_3.0
Commit: 84ac051301ecf7bc52af7192b93e633bcf1c016d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=84ac051…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Fri Dec 11 10:29:06 2009 +0100
core: use NAME to build User-Agent and Server headers
(cherry picked from commit e1c36fdfc9b8f30a4271ee6823a2288dcf9c3833)
---
config.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/config.h b/config.h
index 09ec79a..a2de7bc 100644
--- a/config.h
+++ b/config.h
@@ -85,12 +85,12 @@
#define CONTENT_LENGTH "Content-Length: "
#define CONTENT_LENGTH_LEN (sizeof(CONTENT_LENGTH)-1)
-#define USER_AGENT "User-Agent: SIP Router "\
- "(" VERSION " (" ARCH "/" OS_QUOTED "))"
+#define USER_AGENT "User-Agent: " NAME \
+ " (" VERSION " (" ARCH "/" OS_QUOTED "))"
#define USER_AGENT_LEN (sizeof(USER_AGENT)-1)
-#define SERVER_HDR "Server: SIP Router "\
- "(" VERSION " (" ARCH "/" OS_QUOTED "))"
+#define SERVER_HDR "Server: " NAME \
+ " (" VERSION " (" ARCH "/" OS_QUOTED "))"
#define SERVER_HDR_LEN (sizeof(SERVER_HDR)-1)
#define MAX_WARNING_LEN 256