add: } else  if (sp->flags&AVPOPS_VAL_STR) {   res = db_load_avp( sp->val.s, 0, 0, dbp->sa.s, dbp->table.s);
context: int ops_dbload_avps (struct sip_msg* msg, struct fis_param *sp,									struct db_param *dbp, int use_domain){	struct sip_uri  uri;	db_res_t       *res;	str            uuid;	int  i, n;	if (sp->flags&AVPOPS_VAL_NONE)	{		/* get and parse uri */		if (parse_source_uri( msg, sp->flags, &uri)<0 )		{			LOG(L_ERR,"ERROR:avpops:load_avps: failed to get uri\n");			goto error;		}		/* do DB query */		res = db_load_avp( 0, (sp->flags&AVPOPS_FLAG_DOMAIN)?&empty:&uri.user,				(use_domain||(sp->flags&AVPOPS_FLAG_DOMAIN))?&uri.host:0,				dbp->sa.s, dbp->table.s);	} else if (sp->flags&AVPOPS_VAL_AVP) {		/* get uuid from avp */		if (get_avp_as_str( sp, &uuid)<0)		{			LOG(L_ERR,"ERROR:avpops:load_avps: failed to get uuid\n");			goto error;		}		/* do DB query */		res = db_load_avp( &uuid, 0, 0, dbp->sa.s, dbp->table.s);	} else {		LOG(L_CRIT,"BUG:avpops:load_avps: invalid flag combination (%d)\n",			sp->flags);		goto error;	}	/* res query ?  */	if (res==0)	{		LOG(L_ERR,"ERROR:avpops:load_avps: db_load failed\n");		goto error;	}	/* process the results */	for( n=0,i=0 ; i<res->n ; i++)	{		/* validate row */		if ( dbrow2avp( &res->rows[i], dbp->a.flags, dbp->a.val) < 0 )			continue;		n++;	}	db_close_query( res );	DBG("DEBUG:avpops:load_avps: loaded avps = %d\n",n);	return n?1:-1;error:	return -1;}