# tRecordedUnits

If advice of charge - during call (AOC-E) or advice of charge - end of call (AOC-E) is activated for a call, this structure returns information to a served user. It is referenced in the AcuSSAocDInform and AcuSSAocEInform structures, which are referenced in the AcuSSAocInformInvoke structure returned in an AOC_INFORM operation.

The invoke field in this structure indicates if this information is included, in cases where this information is optional. If invoke is ON, the information is present. If invoke is OFF, the information is not present.

The num_records field can be used in a loop to examine the arrays of charging unit fields.

#### Structure

typedef struct tRecordedUnits
{
ulong num_of_charging_units[MAX_RECORDED_UNIT_RECORDS]; /*Number of */
/*charging units */
uchar type_of_charging_units[MAX_RECORDED_UNIT_RECORDS]; /*Used only if */
/*type_of_charging */
/*is CHARGING_UNITS */
uchar invoke; /* If OFF, then no Recorded Unit info is available */
uchar num_records; /* Indicates how many of the array elements are used */
pad2
};

#### Fields

Field | Description
--- | ---
num_of_charging_units [MAX_RECORDED_UNIT_RECORDS] | Count of the number of units charged.
type_of_charging_units [MAX_RECORDED_UNIT_RECORDS] | Used only if type_of_charging is CHARGING_UNITS. Can be ACU_SS_AOC_TYPE_OF_CHARGING_UNITS_UNUSED.
invoke | (ON/OFF), indicates presence/absence of this information.
num_records | Indicates how many of the MAX_RECORDED_UNIT_RECORDS are filled in.