[RADIATOR] Get Diameter AVP value in PreProcessingHook
Arthur Konovalov
kasjas at hot.ee
Mon Oct 5 00:44:47 CDT 2009
Hi!
Thanks, this works!
AK
Mike McCauley wrote:
> Hello Arthur,
>
> In a hook, given a $p that points to a Radius request that was derived from a
> Diameter request received by ServerDIAMETER, You should be able to get
> Diameter attributes from the original Diameter request with eg:
>
> $p->{diameter_request}->get_attr($Radius::DiaAttrList::ACODE_ACCOUNTING_RECORD_NUMBER);
>
>
> Hope that helps.
> Cheers.
>
> On Friday 25 September 2009 06:13:17 pm Arthur Konovalov wrote:
>
>> Hi!
>> I'm trying to get Diameter's original AVP in preprocessing hook file,
>> but unsuccessfully (get_attr not working).
>> For example I need 'Accounting-Record-Number' (485) and
>> 'Destination-Host' (293).
>> Is it possible to get not converted to Radius AVP at all here? In
>> hooks.txt I did not find examples of it.
>> Or is only way to modify Radiator's core and create there fake Radius
>> attributes?
>>
>> Please help me...
>>
>> Regards,
>> AK
>>
>> _______________________________________________
>> radiator mailing list
>> radiator at open.com.au
>> http://www.open.com.au/mailman/listinfo/radiator
>>
>
>
>
>
More information about the radiator
mailing list