[sr-dev] git:kamailio_3.0: core: use NAME to build User-Agent and Server headers

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 11 10:34:30 CET 2009


Module: sip-router
Branch: kamailio_3.0
Commit: e1c36fdfc9b8f30a4271ee6823a2288dcf9c3833
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e1c36fdfc9b8f30a4271ee6823a2288dcf9c3833

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Dec 11 10:29:06 2009 +0100

core: use NAME to build User-Agent and Server headers

---

 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




More information about the sr-dev mailing list