How to add new attributes?

Luciano Afranllie listas.luafran at gmail.com
Tue Jan 20 13:19:12 CET 2009


On Tue, Jan 20, 2009 at 10:06 AM, Fedotov Yuriy <Fedotov14 at yandex.ru> wrote:
> Hi. Does enebody can help me with some problem?
> I wont add new attibute H323-setup-time to radus and get access.
> When i added to radius.h file
>
> #define PW_H323_SETUP_TIME 25
>
> and rlm_example.c
>
> VALUE_PAIR *state;
>
>
> char *val;
> state = pairfind(request->packet->vps, PW_H323_SETUP_TIME);
> if (state) {
> val = state->vp_strvalue;
> DEBUG("\nPW_H323_SETUP_TIME = %s\n",val);
> }
> else printf("empty\n");
>
> I allways received "empty" status

Just in case, you already have h323-setup-time attribute defined in
dictionary.cisco

ATTRIBUTE   h323-setup-time             25  string

Regards
Luciano



More information about the Freeradius-Users mailing list