Module: kamailio
Branch: master
Commit: d26ccdea61230bfc7720a2523c7b6dd8d2692d6d
URL: 
https://github.com/kamailio/kamailio/commit/d26ccdea61230bfc7720a2523c7b6dd8d2692d6d

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2020-05-16T15:20:45+02:00

core: define macro for signature to be used for server and user-agent

---

Modified: src/core/config.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/d26ccdea61230bfc7720a2523c7b6dd8d2692d6d.diff
Patch: 
https://github.com/kamailio/kamailio/commit/d26ccdea61230bfc7720a2523c7b6dd8d2692d6d.patch

---

diff --git a/src/core/config.h b/src/core/config.h
index 63ff8dc26c..e35fd6daba 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -79,12 +79,15 @@
 #define CONTENT_LENGTH "Content-Length: "
 #define CONTENT_LENGTH_LEN (sizeof(CONTENT_LENGTH)-1)
 
-#define USER_AGENT "User-Agent: " NAME \
+#define SRVAPP_SIGNATURE NAME \
                " (" VERSION " (" ARCH "/" OS_QUOTED "))"
+#define SRVAPP_SIGNATURE_LEN (sizeof(SRVAPP_SIGNATURE)-1)
+
+
+#define USER_AGENT "User-Agent: " SRVAPP_SIGNATURE
 #define USER_AGENT_LEN (sizeof(USER_AGENT)-1)
 
-#define SERVER_HDR "Server: " NAME \
-               " (" VERSION " (" ARCH "/" OS_QUOTED "))"
+#define SERVER_HDR "Server: " SRVAPP_SIGNATURE
 #define SERVER_HDR_LEN (sizeof(SERVER_HDR)-1)
 
 #define MAX_WARNING_LEN  256


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to