Browse code

"Route :" prefix (and separator) is used some more time across the source. It was defined 3 times (with a small variation). Applied patch moves the definition to global config.h.

Closes #SER-420.

Bogdan Pintea authored on 04/01/2009 14:52:42
Showing 3 changed files
... ...
@@ -73,6 +73,12 @@
73 73
 #define MY_VIA "Via: SIP/2.0/UDP "
74 74
 #define MY_VIA_LEN (sizeof(MY_VIA) - 1)
75 75
 
76
+#define ROUTE_PREFIX "Route: "
77
+#define ROUTE_PREFIX_LEN (sizeof(ROUTE_PREFIX) - 1)
78
+
79
+#define ROUTE_SEPARATOR ", "
80
+#define ROUTE_SEPARATOR_LEN (sizeof(ROUTE_SEPARATOR) - 1)
81
+
76 82
 #define CONTENT_LENGTH "Content-Length: "
77 83
 #define CONTENT_LENGTH_LEN (sizeof(CONTENT_LENGTH)-1)
78 84
 
... ...
@@ -54,12 +54,6 @@
54 54
 #define NORMAL_ORDER 0  /* Create route set in normal order - UAS */
55 55
 #define REVERSE_ORDER 1 /* Create route set in reverse order - UAC */
56 56
 
57
-#define ROUTE_PREFIX "Route: "
58
-#define ROUTE_PREFIX_LEN (sizeof(ROUTE_PREFIX) - 1)
59
-
60
-#define ROUTE_SEPARATOR "," CRLF "       "
61
-#define ROUTE_SEPARATOR_LEN (sizeof(ROUTE_SEPARATOR) - 1)
62
-
63 57
 
64 58
 #ifdef DIALOG_CALLBACKS
65 59
 
... ...
@@ -70,12 +70,6 @@
70 70
 #endif
71 71
 
72 72
 
73
-#define ROUTE_PREFIX "Route: "
74
-#define ROUTE_PREFIX_LEN (sizeof(ROUTE_PREFIX) - 1)
75
-
76
-#define ROUTE_SEPARATOR ", "
77
-#define ROUTE_SEPARATOR_LEN (sizeof(ROUTE_SEPARATOR) - 1)
78
-
79 73
 #define  append_mem_block(_d,_s,_len) \
80 74
 		do{\
81 75
 			memcpy((_d),(_s),(_len));\