[Devel] Re: RADIUS SIP_AVP format
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Jun 15 18:44:39 CEST 2005
Juha Heinanen wrote:
>Bogdan-Andrei Iancu writes:
>
> > What I would like to define is a format which will allow both string and
> > numbers for both avp name and avp value. In order to keep backward
> > compatibility, the first solution I thing about is:
> > NAME:STR_VAL
> > NAME#NR_VAL
> > #ID:STR_VAL
> > #ID#NR_VAL
> >
> > any opinion on this?
>
>why not simply check that if name only contains decimal digits, then
>name is ID?
>
>
It will be confusing - you may have some avp name which is actually a
number, but you want it as string. Also this approach is more processing
consuming - to take all names and try to convert to numbers.
bogdan
More information about the Devel
mailing list