Bogdan,
Thank you.I did it, but doesn't work. I will try to implement my own radius extra solution.
Antal
-----Original Message----- From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro] Sent: Thursday, November 16, 2006 1:19 PM To: Pletli Antal Cc: users@openser.org Subject: Re: [Users] Radius extra: integer attribute type how to
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_timesta mp)");
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@openser.org http://openser.org/cgi-bin/mailman/listinfo/users