add: if (calculate_hooks(_d) < 0) { LOG(L_ERR, "dlg_early_resp_uac(): Error while calculating hooks\n"); return -2; }
context: static inline int dlg_early_resp_uac(dlg_t* _d, struct sip_msg* _m){	int code;	code = _m->first_line.u.reply.statuscode;		if (code < 200) {		     /* We are in early state already, do nothing		      */	} else if ((code >= 200) && (code <= 299)) {		     /* Same as in dlg_new_resp_uac */		     /* A final response, update the structures and transit		      * into DLG_CONFIRMED		      */		if (response2dlg(_m, _d) < 0) return -1;		_d->state = DLG_CONFIRMED;	} else {		     /* Else terminate the dialog */		_d->state = DLG_DESTROYED;		     /* Signalize the termination with positive return value */		return 1;	}	return 0;}