add: if (et == EVENT_PRESENCE_WINFO) acc = DOC_WINFO;
context: int get_preferred_event_mimetype(struct sip_msg *_m, int et){	int acc = 0;	if (_m->accept) {		//LOG(L_ERR, "%s: has accept header\n", __FUNCTION__);		int *accepts_mimes = get_accept(_m);		acc = accepts_mimes[0];	} else {		int i = 0;		//LOG(L_ERR, "%s: no accept header\n", __FUNCTION__);		while (event_package_mimetypes[i].event_type != -1) {			if (event_package_mimetypes[i].event_type == et) {				acc = event_package_mimetypes[i].mimes[0];				LOG(L_ERR, "%s: defaulting to mimetype %x for event_type=%d\n", __FUNCTION__, acc, et);				break;			}			i++;		}	}	return acc;}