This hook will be called when the subscriber's quota reaches
one or more threshold percentages defined in the configuration.
The
default hook will log the event, but you may change the hook to call send
SMS, call an external process or do any other action.
Note
If multiple
thresholds are reached during the quota allocation, the
ThresholdHook
will be called once for each threshold.
The order of calls depends on the order the thresholds are configured with
the Thresholds
parameter.
The following
arguments are passed to the hook in the following order:
- Reference to this AuthBy
- Reference to the current
OCSmsg
- Threshold percentage that was reached
- Quota percentage before allocation but after unused bytes from
previous allocation have been credited
- Quota percentage after allocation