This topic is very similar to my question in a past thread (http://openser.org/pipermail/users/2006-April/004277.html) I would like to add my experience. I'm using RADIATOR as my radius server. When i was trying to return 3 AVP's from my DB i was using the next syntax. SIP-AVP=state1:on SIP-AVP=state2:off SIP-AVP=state3:sip:12345@mydomain.com
This was causing an Access-Accept message with the next SIP-AVP ATTRIBUTE:
SIP-AVP = "state1:on<9>SIP-AVP=state2:off<9>SIP-AVP=state3:sip:12345@mydomain.com"
in Radiator you need to add a "special" syntax (very similar to FreeRadius)
SIP-AVP="state1:on" SIP-AVP="state2:off" SIP-AVP="state3:sip:12345@mydomain.com"
That solve my problem!!!. Thanks to all.
Best Regards,
Ricardo Martinez.-
-----Mensaje original----- De: Helge Waastad [mailto:helge@smartnet.no] Enviado el: Jueves, 27 de Abril de 2006 6:48 Para: Klaus Darilion CC: users@openser.org Asunto: Re: [Users] avp_load_radius format
Yes, I was already thinking the same....
br hw
tor, 27,.04.2006 kl. 11.49 +0200, skrev Klaus Darilion:
Maybe you can add your experiences to the Wiki (or Radius
docs)- there
is already a Radius section.
regards klaus
Helge Waastad wrote:
Aha, that's it.
Thank's again.
I had to alter the operator in FreeRADIUS: SIP-AVP +=
"avp:value"....
This happens when youre not really reading the man pages
thouroughly :-)
Again, thanks a lot.
br hw
ons, 26,.04.2006 kl. 17.59 +0300, skrev Bogdan-Andrei Iancu:
Hi Helge,
I think more lines with SIP-AVP should be placed into
reply. I can say
this based on the openser code processing the reply - it
looks for more
than one SIP-AVP RADIUS avps, each containing only one SIP avp.
regards, bogdan
Helge Waastad wrote:
Hi, and thanks for your answer. You'll have to excuse me for not 100% grasping the logic. A typical RADIUS answer would be:
rad_recv: Access-Accept packet from host
195.18.134.150:1812, id=207,
length=38 SIP-AVP = "voicemail:111111"
So should more than one Access-Accept be sent with different SIP-AVP=.... (I guess not)
Or should the string value of SIP-AVP be consist of
several avps?
I guess you can only respond with distinct attributes
from RADIUS?
Rigth now I'm trying to see if I can do this by default
FreeRADIUS setup
or if should move into rlm_perl...
....probably a revised OpenSER-RADIUS Howto should be made. I can, for that sake, help..when I get it working :-)
br hw
ons, 26,.04.2006 kl. 11.16 +0300, skrev Bogdan-Andrei Iancu:
Hi Helge,
you need to include several RADIUS AVPs into the
radius reply - one for
each SIP AVP.
regards, bogdan
Helge Waastad wrote:
> Hi, > I just wonder if someone could give me a hint on how
to load several
> AVP's from RADIUS. > > I'm currently reponding with: > SIP-AVP=rpid:1111111 > which parses the rpid avp. > > But what should the response look like if I want to
load several avps?
> (For group checking, ACl etc)? > > br hw > > > > >
-- Helge Waastad Senior Konsulent Smartnet
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users