Module: sip-router
Branch: master
Commit: c8f8eacbb4c8b6ea1ffe345ee2b9e3239a040ef1
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c8f8eac…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Sun Mar 15 17:17:24 2009 +0100
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.
---
parser/hf.h | 5 ++++-
parser/msg_parser.h | 2 ++
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/parser/hf.h b/parser/hf.h
index 3c56ef7..7196833 100644
--- a/parser/hf.h
+++ b/parser/hf.h
@@ -107,7 +107,8 @@ enum _hdr_types_t {
HDR_IDENTITY_T /* Identity header field */,
HDR_IDENTITY_INFO_T /* Identity-info header field */,
HDR_RETRY_AFTER_T /* Retry-After header field */,
-
+ HDR_PPI_T /**< P-Preferred-Identity header field */,
+ HDR_PAI_T /**< P-Asserted-Identity header field */,
HDR_EOH_T /* End of message header */
};
@@ -175,6 +176,8 @@ typedef unsigned long long hdr_flags_t;
#define HDR_IDENTITY_F HDR_F_DEF(IDENTITY)
#define HDR_IDENTITY_INFO_F HDR_F_DEF(IDENTITY_INFO)
#define HDR_RETRY_AFTER_F HDR_F_DEF(RETRY_AFTER)
+#define HDR_PPI_F HDR_F_DEF(PPI)
+#define HDR_PAI_F HDR_F_DEF(PAI)
#define HDR_OTHER_F HDR_F_DEF(OTHER)
diff --git a/parser/msg_parser.h b/parser/msg_parser.h
index 821f3a5..64d1310 100644
--- a/parser/msg_parser.h
+++ b/parser/msg_parser.h
@@ -255,6 +255,8 @@ typedef struct sip_msg {
struct hdr_field* date;
struct hdr_field* identity;
struct hdr_field* identity_info;
+ struct hdr_field* pai;
+ struct hdr_field* ppi;
char* eoh; /* pointer to the end of header (if found) or null */
char* unparsed; /* here we stopped parsing*/