# tAcuSSAocDuration

If advice of charge - start of call (AOC-S) is activated for a call, this structure returns call duration rate information to a served user. This information consists of the currency value for a particular time unit and the length of the time unit.

This structure is referenced in the AcuSSAocSInform structure, which is referenced in the AcuSSAocInformInvoke structure returned in an AOC_INFORM operation.

#### Structure

typedef struct tAcuSSAocDuration
{
struct op_byte_field multiplier; /* Applies to currency amount */
struct op_long_field currency_amount; /* No. of currency units charged*/
struct op_long_field time; /* Number of time units charged */
struct op_long_field granularity; /* Integer or not included */
struct op_byte_field time_scale; /* Applies to time */
struct op_byte_field granularity_scale; /* Applies to granularity */
struct op_byte_field currency_id_size; /* 0 if currency ID not included*/
uchar currency_id[MAX_CURRENCY_SIZE]; /* Currency ID */
uchar type_of_charging; /* From SS_AOC_S_TYPE_OF_CHARGE */
pad3 /* constants */
};

#### Fields

Field | Included | Description
--- | --- | ---
multiplier | Mandatory | This field plus currency_amount indicates the currency amount. From ACU_SS_AOC_MULTIPLIER constants.
currency_amount | Mandatory | This field plus multiplier indicates the currency amount.
time | Mandatory | This field plus time_scale indicates the length of time unit.
granularity | Optional | This field plus granularity_scale indicates the time unit applied for calculation of charges by the network. Integer or not included.
time_scale | Mandatory | This field plus time indicates the length of time unit. From ACU_SS_AOC_SCALE constants.
granularity_scale | Optional | This field plus granularity indicates the time unit applied for calculation of charges by the network. Only included if granularity field is included.
currency_id_size | Mandatory | Size of currency_id.
currency_id[MAX_CURRENCY_SIZE] | Mandatory | Currency ID.
type_of_charging | Mandatory | Step function (charge is incurred for the time unit, or part thereof) or continuous (charges are incurred evenly throughout). From ACU_SS_AOC_S_TYPE_OF_CHARGE constants.