[Users] Radius extra: integer attribute type how to

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Nov 16 13:19:02 CET 2006


Hi Antal,

If I'm not wrong, all extra accounting information is added as string 
(it's a limitation because of using several backend), so you may try 
configuring the attribute in the RADIUS dictionary as string and not 
integer.

regards,
bogdan

Pletli Antal wrote:

> Hello,
>
> I'm trying the radius-extra feature in openser cvs snapshot.
>
> In my openser.cfg I set up the following parameter:
>
>         modparam("acc", "radius_extra", 
> "Acct-Session-Time=$avp(call_length)")
>
>         modparam( "avpops", "avp_aliases", "start_timestamp=i:100")
>         modparam( "avpops", "avp_aliases", "end_timestamp=i:101")
>         modparam( "avpops", "avp_aliases", "call_length=i:102")
>
>         (...)
>
>             avp_op("$avp(end_timestamp)","sub/$avp(start_timestamp)");
>             
> avp_op("$avp(end_timestamp)/$avp(call_length)","sub/$avp(start_timestamp)"); 
>
>
>
>  I have experienced that when I  sent an Accounting-Stop request to 
> radius server, it received the integer value as an string and it 
> decoded the value to the chr code of the "3"
>
> In the radius log:
>
> * Attr: 46 - Acct-Delay-Time len: 6 val: 51
>
> In the openser.log:
>
> Nov 14 16:12:09 sip2 ./openser[727]: INFO:avpops:print_avp: 
> p=0x40623b88, flags=0x0000
> Nov 14 16:12:09 sip2 ./openser[727]: INFO:                      id=<102>
> Nov 14 16:12:09 sip2 ./openser[727]: INFO:                      
> val_int=<3>
>
> How can I set the corresponding integer attribute in the request?
>
> Thanks in advance,
>
> Antal
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>  
>





More information about the sr-users mailing list