Browse code

HDR_EVENT added.

Jan Janak authored on 12/08/2002 12:11:24
Showing 1 changed files
... ...
@@ -127,6 +127,7 @@ char* get_hdr_field(char* buf, char* end, struct hdr_field* hdr)
127 127
 	        case HDR_PROXYREQUIRE:
128 128
 	        case HDR_UNSUPPORTED:
129 129
 	        case HDR_ALLOW:
130
+	        case HDR_EVENT:
130 131
 		case HDR_OTHER:
131 132
 			/* just skip over it */
132 133
 			hdr->body.s=tmp;
... ...
@@ -291,6 +292,10 @@ int parse_headers(struct sip_msg* msg, int flags, int next)
291 292
 				if (msg->allow==0) msg->allow = hf;
292 293
 				msg->parsed_flag|=HDR_ALLOW;
293 294
 				break;
295
+			case HDR_EVENT:
296
+				if (msg->allow==0) msg->event = hf;
297
+				msg->parsed_flag|=HDR_EVENT;
298
+				break;
294 299
 			case HDR_VIA:
295 300
 				msg->parsed_flag|=HDR_VIA;
296 301
 				DBG("parse_headers: Via found, flags=%d\n", flags);