3.80.29. ReplyAdjustHook Previous topic Parent topic Child topic Next topic

This optional parameter allows you to define a Perl function to adjust RADIUS Access-Accept reply.
ReplyAdjustHook return value is ignored. However, it is passed references to current request and reply for modification.
ReplyAdjustHook has the following arguments:
  • The current request
  • The current reply
  • Time left
  • Octets left
  • Gigawords left
  • Reference to the Service object
  • Reference to the Subscription object
  • Reference to the Session object
  • Reference to the current AuthBy
Here is an example of ReplyAdjustHook:
# Reply debugging for radpwtst testing
ReplyAdjustHook sub {my $rp = $_[1]; my $time_left = $_[2]; \
                     $rp->add_attr('OSC-AVPAIR', "time-debug=$time_left"); }