[sr-dev] git:4.4:19b4c38c: core: defined macro for CRLFCRLF

Daniel-Constantin Mierla miconda at gmail.com
Mon Oct 10 12:28:23 CEST 2016


Module: kamailio
Branch: 4.4
Commit: 19b4c38c9612e88cb8664fd21c98d86bb78b71b6
URL: https://github.com/kamailio/kamailio/commit/19b4c38c9612e88cb8664fd21c98d86bb78b71b6

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-10-10T12:16:01+02:00

core: defined macro for CRLFCRLF

- used in pinging over tcp, makes it more coherent to use

(cherry picked from commit 6649cdf51520cfcc366f2839316c8d45c233421b)

---

Modified: config.h

---

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

---

diff --git a/config.h b/config.h
index 4083099..66ba0df 100644
--- a/config.h
+++ b/config.h
@@ -90,13 +90,16 @@
 #define SERVER_HDR_LEN (sizeof(SERVER_HDR)-1)
 
 #define MAX_WARNING_LEN  256
-		
+
 #define MY_BRANCH ";branch="
 #define MY_BRANCH_LEN (sizeof(MY_BRANCH) - 1)
 
 #define MAX_PORT_LEN 7 /* ':' + max 5 letters + \0 */
+
 #define CRLF "\r\n"
 #define CRLF_LEN (sizeof(CRLF) - 1)
+#define CRLFCRLF "\r\n\r\n"
+#define CRLFCRLF_LEN (sizeof(CRLFCRLF) - 1)
 
 #define RECEIVED        ";received="
 #define RECEIVED_LEN (sizeof(RECEIVED) - 1)




More information about the sr-dev mailing list