Browse code

core: use NAME to build User-Agent and Server headers (cherry picked from commit e1c36fdfc9b8f30a4271ee6823a2288dcf9c3833)

Daniel-Constantin Mierla authored on 11/12/2009 09:29:06
Showing 1 changed files
... ...
@@ -85,12 +85,12 @@
85 85
 #define CONTENT_LENGTH "Content-Length: "
86 86
 #define CONTENT_LENGTH_LEN (sizeof(CONTENT_LENGTH)-1)
87 87
 
88
-#define USER_AGENT "User-Agent: SIP Router "\
89
-		"(" VERSION " (" ARCH "/" OS_QUOTED "))"
88
+#define USER_AGENT "User-Agent: " NAME \
89
+		" (" VERSION " (" ARCH "/" OS_QUOTED "))"
90 90
 #define USER_AGENT_LEN (sizeof(USER_AGENT)-1)
91 91
 
92
-#define SERVER_HDR "Server: SIP Router "\
93
-		"(" VERSION " (" ARCH "/" OS_QUOTED "))"
92
+#define SERVER_HDR "Server: " NAME \
93
+		" (" VERSION " (" ARCH "/" OS_QUOTED "))"
94 94
 #define SERVER_HDR_LEN (sizeof(SERVER_HDR)-1)
95 95
 
96 96
 #define MAX_WARNING_LEN  256