(RADIATOR) accounting request Acct-Session-Id lost in conversion from diameter to radius

Hugh Irvine hugh at open.com.au
Wed Apr 4 20:39:15 CDT 2007

Hello Arthur -

The RADIUS request that is generated from the DIAMETER request  
contains a pointer to the DIAMETER request, so you would access it as  

	my $dp = $p->{diameter_request};

See the code in "Radius/ServerDIAMETER.pm" and "Radius/Dia*.pm".

Of course you should always look at the trace 4 debug too so you can  
see what is happening.



On 5 Apr 2007, at 05:05, Arthur Konovalov wrote:

>> Further to this, you could use the PreHandlerHook available in the  
>> ServerDIAMETER clause to do whatever you wish.
>> The PreHandlerHook is passed a pointer to the translated radius   
>> request as an arguement, and there is a reference in that radius   
>> request to the original Diameter request in $tp->{diameter_request}.
> Hi. I also had to "generate" Acct-Session-Id from Diameter's   
> Session-Id attribute.
> I tried PreHandlerHook in ServerDIAMETER section like this:
> PreHandlerHook file:"%D/session_id"
> And file itself:
> sub {
>    my $p = ${$_[0]};
>    my $sessid;
>    $sessid = $p->get_attr('Session-Id');
>    $p->add_attr('Acct-Session-Id', $sessid);
> }
> Unfortunately I got empty attribute. Where mistake hidden?
> Please help me.
> Regards,
> Arthur


Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/ 
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?
Have you checked the RadiusExpert wiki:

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
Includes support for reliable RADIUS transport (RadSec),
and DIAMETER translation agent.
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
CATool: Private Certificate Authority for Unix and Unix-like systems.

Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.

More information about the radiator mailing list