RadAccounting Function

Action

Sends accounting information to the RADIUS accounting server. Accounting information is comprised of a list of attributes (previously set using RadSetAttribute...() functions) that are sent to the server. A list of attributes is also retrieved from the server. Returned attributes are accessed using RadGetAttribute...() functions.

Include file

radius.bdh

Syntax

RadAccounting( ): number;

Return value

  • RAD_AccountingResponse

Example

dcltrans
  transaction TRun
  var
    nCode : number;
  begin
    RadSetAttributeString(RAD_NasIpAddress, "123.123.123.123");
    RadSetAttributeString(RAD_CallingStationId, "+1 1234 123 1234");
    RadSetAttributeNumber(RAD_AcctStatusType, ACCT_STATUS_START);
    nCode := RadAccounting();
  end TRun;