Browse code

core: parse hdr name - added missing compact names in static map

- https://www.iana.org/assignments/sip-parameters/sip-parameters.xhtml#sip-parameters-2

Daniel-Constantin Mierla authored on 20/07/2020 14:15:33
Showing 1 changed files
... ...
@@ -62,6 +62,7 @@ static ksr_hdr_map_t _ksr_hdr_map[] = {
62 62
 	{ str_init("Content-Type"), HDR_CONTENTTYPE_T, HDR_CONTENTTYPE_F },
63 63
 	{ str_init("CSeq"), HDR_CSEQ_T, HDR_CSEQ_F },
64 64
 
65
+	{ str_init("d"), HDR_REQUESTDISPOSITION_T, HDR_REQUESTDISPOSITION_F },
65 66
 	{ str_init("Date"), HDR_DATE_T, HDR_DATE_F },
66 67
 	{ str_init("Diversion"), HDR_DIVERSION_T, HDR_DIVERSION_F },
67 68
 
... ...
@@ -76,6 +77,8 @@ static ksr_hdr_map_t _ksr_hdr_map[] = {
76 77
 	{ str_init("Identity"), HDR_IDENTITY_T, HDR_IDENTITY_F },
77 78
 	{ str_init("Identity-Info"), HDR_IDENTITY_INFO_T, HDR_IDENTITY_INFO_F },
78 79
 
80
+	{ str_init("j"), HDR_REJECTCONTACT_T, HDR_REJECTCONTACT_F },
81
+
79 82
 	{ str_init("k"), HDR_SUPPORTED_T, HDR_SUPPORTED_F },
80 83
 
81 84
 	{ str_init("l"), HDR_CONTENTLENGTH_T, HDR_CONTENTLENGTH_F },
... ...
@@ -127,6 +130,10 @@ static ksr_hdr_map_t _ksr_hdr_map[] = {
127 130
 	{ str_init("v"), HDR_VIA_T, HDR_VIA_F },
128 131
 	{ str_init("Via"), HDR_VIA_T, HDR_VIA_F },
129 132
 
133
+	{ str_init("x"), HDR_SESSIONEXPIRES_T, HDR_SESSIONEXPIRES_F },
134
+
135
+	{ str_init("y"), HDR_IDENTITY_T, HDR_IDENTITY_F },
136
+
130 137
 	{ str_init("WWW-Authenticate"), HDR_WWW_AUTHENTICATE_T, HDR_WWW_AUTHENTICATE_F },
131 138
 
132 139
 	{ str_init(""), 0, 0 }