rem: exports.response_f = process_response;  if (register_script_cb(process_request,PRE_SCRIPT_CB|REQ_TYPE_CB,0)<0){ LOG(L_ERR,"ERROR:uac:mod_init: failed to install PRE_SCRIPT_CB\n");
add: if (uac_tmb.register_tmcb( 0, 0, TMCB_REQUEST_IN, tr_checker, 0)!=1) { LOG(L_ERR,"ERROR:uac:mod_init: failed to install TM callback\n");
context: static int mod_init(void){	LOG(L_INFO,"UAC - initializing\n");	from_param.s = from_param_chr;	from_param.len = strlen(from_param_chr);	if (from_param.len==0)	{		LOG(L_ERR,"ERROR:uac:mod_init: from_tag cannot be empty\n");		goto error;	}	if (from_restore_mode!=FROM_NO_RESTORE &&			from_restore_mode!=FROM_AUTO_RESTORE &&			from_restore_mode!=FROM_MANUAL_RESTORE )	{		LOG(L_ERR,"ERROR:uac:mod_init: invalid (%d) restore_from mode\n",			from_restore_mode);	}	if (from_restore_mode==FROM_AUTO_RESTORE)	{		/* get all replies */		exports.response_f = process_response;		/* get all incoming requests */		if (register_script_cb(process_request,PRE_SCRIPT_CB|REQ_TYPE_CB,0)<0){			LOG(L_ERR,"ERROR:uac:mod_init: failed to install PRE_SCRIPT_CB\n");			goto error;		}	}	/* load the GET_T tm function  */	if (!(uac_get_T=(tgett_f)find_export(T_GETT,NO_SCRIPT,0)))	{		LOG( L_ERR,"ERROR:uac:mod_init: failed to load '" T_GETT "' tm "			"function? no TM loaded?\n");		return -1;	}	init_from_replacer();	return 0;error:	return -1;}