Browse code

Support for P-Preferred-Identity and P-Asserted-Identity in the core.

This patch adds variables that are needed by the P-Preferred-Identity
and P-Asserted-Identity parsers in the libkcore library.

Jan Janak authored on 15/03/2009 16:17:24
Showing 2 changed files
... ...
@@ -107,7 +107,8 @@ enum _hdr_types_t {
107 107
 	HDR_IDENTITY_T			       /* Identity header field */,
108 108
 	HDR_IDENTITY_INFO_T		       /* Identity-info header field */,
109 109
 	HDR_RETRY_AFTER_T		           /* Retry-After header field */,
110
-
110
+	HDR_PPI_T                          /**< P-Preferred-Identity header field */,
111
+	HDR_PAI_T                          /**< P-Asserted-Identity header field */,
111 112
 	HDR_EOH_T					       /* End of message header */
112 113
 };
113 114
 
... ...
@@ -175,6 +176,8 @@ typedef unsigned long long hdr_flags_t;
175 176
 #define HDR_IDENTITY_F			HDR_F_DEF(IDENTITY)
176 177
 #define HDR_IDENTITY_INFO_F		HDR_F_DEF(IDENTITY_INFO)
177 178
 #define HDR_RETRY_AFTER_F			HDR_F_DEF(RETRY_AFTER)
179
+#define HDR_PPI_F                   HDR_F_DEF(PPI)
180
+#define HDR_PAI_F                   HDR_F_DEF(PAI)
178 181
 
179 182
 #define HDR_OTHER_F					HDR_F_DEF(OTHER)
180 183
 
... ...
@@ -255,6 +255,8 @@ typedef struct sip_msg {
255 255
 	struct hdr_field* date;
256 256
 	struct hdr_field* identity;
257 257
 	struct hdr_field* identity_info;
258
+	struct hdr_field* pai;
259
+	struct hdr_field* ppi;
258 260
 
259 261
 	char* eoh;        /* pointer to the end of header (if found) or null */
260 262
 	char* unparsed;   /* here we stopped parsing*/