4.1.16. ThresholdHook Previous topic Parent topic Child topic Next topic

This hook will be called when the subscriber's quota reaches one or more threshold percentages defined in the subscriber's data plan.
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 defined in the SPR.
The following arguments are passed to the hook in the following order:
  • Reference to this AuthBy
  • Reference to the current PCRFmsg
  • Threshold percentage that was reached
  • Quota percentage before allocation but after unused bytes from previous allocation have been credited
  • Quota percentage after allocation