<!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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial CE">modparam(&quot;acc&quot;, &quot;radius_extra&quot;, &quot;Acct-Session-Time=$avp(call_length)&quot;)</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial CE">modparam( &quot;avpops&quot;, &quot;avp_aliases&quot;, &quot;start_timestamp=i:100&quot;)</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial CE">modparam( &quot;avpops&quot;, &quot;avp_aliases&quot;, &quot;end_timestamp=i:101&quot;)</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial CE">modparam( &quot;avpops&quot;, &quot;avp_aliases&quot;, &quot;call_length=i:102&quot;)</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial CE">(...)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial CE">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; avp_op(&quot;$avp(end_timestamp)&quot;,&quot;sub/$avp(start_timestamp)&quot;);</FONT>

<BR><FONT SIZE=2 FACE="Arial CE">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; avp_op(&quot;$avp(end_timestamp)/$avp(call_length)&quot;,&quot;sub/$avp(start_timestamp)&quot;);</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial CE">&nbsp;I have experienced that when I&nbsp; 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 &quot;3&quot;</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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id=&lt;102&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial CE">Nov 14 16:12:09 sip2 ./openser[727]: INFO:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; val_int=&lt;3&gt;</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>