rem: if ( tmb.register_tmcb( 0, TMCB_REQUEST_IN, acc_onreq, 0 ) <=0 ) {
add: if ( tmb.register_tmcb( 0, 0, TMCB_REQUEST_IN, acc_onreq, 0 ) <=0 ) {
context: static int mod_init( void ){	load_tm_f load_tm;	fprintf( stderr, "acc - initializing\n");	/* import the TM auto-loading function */	if ( !(load_tm=(load_tm_f)find_export("load_tm", NO_SCRIPT, 0))) {		LOG(L_ERR, "ERROR: acc: mod_init: can't import load_tm\n");		return -1;	}	/* let the auto-loading function load all TM stuff */	if (load_tm( &tmb )==-1) return -1;	if (verify_fmt(log_fmt)==-1) return -1;	/* register callbacks*/	/* listen for all incoming requests  */	if ( tmb.register_tmcb( 0, TMCB_REQUEST_IN, acc_onreq, 0 ) <=0 ) {		LOG(L_ERR,"ERROR:acc:mod_init: cannot register TMCB_REQUEST_IN "			"callback\n");		return -1;	}#ifdef SQL_ACC	if (bind_dbmod(db_url)) {		LOG(L_ERR, "ERROR:acc:mod_init: bind_db failed..."				"did you load a database module?\n");		return -1;	}#endif#ifdef RAD_ACC	memset(attrs, 0, sizeof(attrs));	memset(attrs, 0, sizeof(vals));	attrs[A_CALLING_STATION_ID].n		= "Calling-Station-Id";	attrs[A_CALLED_STATION_ID].n		= "Called-Station-Id";	attrs[A_SIP_TRANSLATED_REQUEST_URI].n	= "Sip-Translated-Request-URI";	attrs[A_ACCT_SESSION_ID].n		= "Acct-Session-Id";	attrs[A_SIP_TO_TAG].n			= "Sip-To-Tag";	attrs[A_SIP_FROM_TAG].n			= "Sip-From-Tag";	attrs[A_SIP_CSEQ].n			= "Sip-CSeq";	attrs[A_ACCT_STATUS_TYPE].n		= "Acct-Status-Type";	attrs[A_SERVICE_TYPE].n			= "Service-Type";	attrs[A_SIP_RESPONSE_CODE].n		= "Sip-Response-Code";	attrs[A_SIP_METHOD].n			= "Sip-Method";	attrs[A_USER_NAME].n			= "User-Name";	vals[V_STATUS_START].n			= "Start";	vals[V_STATUS_STOP].n			= "Stop";	vals[V_STATUS_FAILED].n			= "Failed";	vals[V_SIP_SESSION].n			= "Sip-Session";	/* open log */	rc_openlog("ser");	/* read config */	if ((rh = rc_read_config(radius_config)) == NULL) {		LOG(L_ERR, "ERROR: acc: error opening radius config file: %s\n", 			radius_config );		return -1;	}	/* read dictionary */	if (rc_read_dictionary(rh, rc_conf_str(rh, "dictionary"))!=0) {		LOG(L_ERR, "ERROR: acc: error reading radius dictionary\n");		return -1;	}	INIT_AV(rh, attrs, vals, "acc", -1, -1);	if (service_type != -1)		vals[V_SIP_SESSION].v = service_type;#endif	return 0;}