add: DBG("DEBUG:auth_radius:generate_avps: getting SIP AVPs from avpair %d\n", attrs[A_SIP_AVP].v);
context: static int generate_avps(VALUE_PAIR* received){	int_str name, val;	unsigned short flags;	VALUE_PAIR *vp;	vp = received;	for( ; (vp=rc_avpair_get(vp,attrs[A_SIP_AVP].v,0)) ; vp=vp->next) {		flags = 0;		if (extract_avp( vp, &flags, &name, &val)!=0 )			continue;		if (add_avp( flags, name, val) < 0) {			LOG(L_ERR, "ERROR:auth_radius:generate_avps: Unable to create "				"a new AVP\n");		} else {			DBG("DEBUG:auth_radius:generate_avps: "				"AVP '%.*s'/%d='%.*s'/%d has been added\n",				(flags&AVP_NAME_STR)?name.s->len:4,				(flags&AVP_NAME_STR)?name.s->s:"null",				(flags&AVP_NAME_STR)?0:name.n,				(flags&AVP_VAL_STR)?val.s->len:4,				(flags&AVP_VAL_STR)?val.s->s:"null",				(flags&AVP_VAL_STR)?0:val.n );		}	}	return 0;}