<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Radius extra: integer attribute type how to</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial CE">Hello,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE">I'm trying the radius-extra feature in openser cvs snapshot.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE">In my openser.cfg I set up the following parameter:</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial CE">modparam("acc", "radius_extra", "Acct-Session-Time=$avp(call_length)")</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial CE">modparam( "avpops", "avp_aliases", "start_timestamp=i:100")</FONT>
<BR> <FONT SIZE=2 FACE="Arial CE">modparam( "avpops", "avp_aliases", "end_timestamp=i:101")</FONT>
<BR> <FONT SIZE=2 FACE="Arial CE">modparam( "avpops", "avp_aliases", "call_length=i:102")</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial CE">(...)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE"> avp_op("$avp(end_timestamp)","sub/$avp(start_timestamp)");</FONT>
<BR><FONT SIZE=2 FACE="Arial CE"> avp_op("$avp(end_timestamp)/$avp(call_length)","sub/$avp(start_timestamp)");</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial CE"> 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"</FONT></P>
<P><FONT SIZE=2 FACE="Arial CE">In the radius log:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE">* Attr: 46 - Acct-Delay-Time len: 6 val: 51</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE">In the openser.log:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE">Nov 14 16:12:09 sip2 ./openser[727]: INFO:avpops:print_avp: p=0x40623b88, flags=0x0000</FONT>
<BR><FONT SIZE=2 FACE="Arial CE">Nov 14 16:12:09 sip2 ./openser[727]: INFO: id=<102></FONT>
<BR><FONT SIZE=2 FACE="Arial CE">Nov 14 16:12:09 sip2 ./openser[727]: INFO: val_int=<3></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE">How can I set the corresponding integer attribute in the request?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE">Thanks in advance,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE">Antal</FONT>
</P>
</BODY>
</HTML>