[Users] Radius extra: integer attribute type how to

Pletli Antal a.pletli at euromacc.hu
Tue Nov 14 16:36:11 CET 2006


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20061114/9b5773b1/attachment.htm>


More information about the sr-users mailing list