
Rev. 1.00 12-02-13 29/41
The conversion from AOC to tax pulses is rounded up to provide a higher charge to the user in case of
doubts in a way that the amount on the bill never is any bigger than expected from the AOC information.
This should prevent the user from bad surprises.
Conversion from units into tax-pulses
If the AOC information received from the SIP or ISDN peer contains units then the number of tax pulses
is calculated as this:
Number of tax pulses = round up ( Units received / configured units-per-pulse )
For example: Configuration: „aoc emit-tax-pulses 12‟. Units received: 50. Then the number of tax pulses =
round up( 50 / 12 ) = 5
Conversion from currency into tax-pulses
If the AOC information received from the SIP or ISDN peer contains currency then currency has to be
converted first into units. This is because the currency information itself consists of an amount and a
multiplier.
List of possible currency multipliers:
one-thousandth
one-hundredth
one-tenth
one
ten
hundred
thousand
Units received = Amount received * currency-multiplier received / currency-multiplier configured
Number of tax pulses = rounded up ( Units received / units-per-pulse configured ).
In this sense the configured currency multiplier establishes a relation between the received currency and
the units used for calculation of the tax pulses. To express for example that one tax pulse is worth 5 euro-
cents the command would be: „aoc emit-tax-pulses 5 one-hundredth‟.
For example: Configuration: „aoc emit-tax-pulses 5 one-thousandth‟. Currency amount received: 2.
Currency multiplier received: one-hundredth. Then units received = 2 * (1/100) / (1/1000) = 20. Then tax
pulses sent are = round up( 20 / 5 ) = 4. The configuration specifies to send two tax pulses for each
received euro-cent and therefore 4 tax pulses are sent because 2 euro-cents have been received.
Mode: interface fxs
[node](if-fxs)# [no] aoc emit-tax-pulses
<units-per-pulse> [<currency-multiplier>]
Configures conversion and sending of
AOC as tax-pulses. Default: disabled.
Default currency-multiplier: one-
hundredth.
Commenti su questo manuale