Module: kamailio
Branch: master
Commit: d1a51862440db5c2952833f24576491e811cd622
URL:
https://github.com/kamailio/kamailio/commit/d1a51862440db5c2952833f24576491…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-20T16:15:33+02:00
core: parse hdr name - added missing compact names in static map
-
https://www.iana.org/assignments/sip-parameters/sip-parameters.xhtml#sip-pa…
---
Modified: src/core/parser/parse_hname2.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d1a51862440db5c2952833f24576491…
Patch:
https://github.com/kamailio/kamailio/commit/d1a51862440db5c2952833f24576491…
---
diff --git a/src/core/parser/parse_hname2.c b/src/core/parser/parse_hname2.c
index 84f8c7782f..70ed6adc57 100644
--- a/src/core/parser/parse_hname2.c
+++ b/src/core/parser/parse_hname2.c
@@ -62,6 +62,7 @@ static ksr_hdr_map_t _ksr_hdr_map[] = {
{ str_init("Content-Type"), HDR_CONTENTTYPE_T, HDR_CONTENTTYPE_F },
{ str_init("CSeq"), HDR_CSEQ_T, HDR_CSEQ_F },
+ { str_init("d"), HDR_REQUESTDISPOSITION_T, HDR_REQUESTDISPOSITION_F },
{ str_init("Date"), HDR_DATE_T, HDR_DATE_F },
{ str_init("Diversion"), HDR_DIVERSION_T, HDR_DIVERSION_F },
@@ -76,6 +77,8 @@ static ksr_hdr_map_t _ksr_hdr_map[] = {
{ str_init("Identity"), HDR_IDENTITY_T, HDR_IDENTITY_F },
{ str_init("Identity-Info"), HDR_IDENTITY_INFO_T, HDR_IDENTITY_INFO_F },
+ { str_init("j"), HDR_REJECTCONTACT_T, HDR_REJECTCONTACT_F },
+
{ str_init("k"), HDR_SUPPORTED_T, HDR_SUPPORTED_F },
{ str_init("l"), HDR_CONTENTLENGTH_T, HDR_CONTENTLENGTH_F },
@@ -127,6 +130,10 @@ static ksr_hdr_map_t _ksr_hdr_map[] = {
{ str_init("v"), HDR_VIA_T, HDR_VIA_F },
{ str_init("Via"), HDR_VIA_T, HDR_VIA_F },
+ { str_init("x"), HDR_SESSIONEXPIRES_T, HDR_SESSIONEXPIRES_F },
+
+ { str_init("y"), HDR_IDENTITY_T, HDR_IDENTITY_F },
+
{ str_init("WWW-Authenticate"), HDR_WWW_AUTHENTICATE_T, HDR_WWW_AUTHENTICATE_F
},
{ str_init(""), 0, 0 }