add: && (event->parsed != EVENT_LOCATION)
context: int check_message(struct sip_msg* _m){	if (_m->event) {		event_t *event;				if (!_m->event->parsed)			parse_event(_m->event);		event = (event_t*)(_m->event->parsed);		if ((event->parsed != EVENT_PRESENCE)		    && (event->parsed != EVENT_PRESENCE_WINFO)		    && (event->parsed != EVENT_XCAP_CHANGE)) {			paerrno = PA_EVENT_UNSUPP;			LOG(L_ERR, "check_message(): Unsupported event package event=%p et=%d len=%d\n",			    event, event->parsed, event->text.len);			return -1;		}	}	return 0;}