For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

You are reading Travelping Open Subscriber Server 6.16, an older release. The newest release is 6.20. Read this page in 6.20

Hooks configuration

TPOSS supports a set of events that you can enable or disable. If an event is enabled, you must provide a pre-configured endpoint to TPOSS for sending events.

The following events are supported:

For more information, see the TPOSS chart configuration document.

Events

All the hooks described above are triggered based on a different event. The usual reaction on any event is an HTTP call to the pre-configured HTTP endpoint. The endpoint is specified by the hooks.{EVENT_NAME}.url configuration parameter where event name is one of the following:

If the outgoing HTTP request failed, TPOSS may try again to send the request. You can control this behaviour using the hooks.{EVENT_NAME}.attempts configuration parameter of each hook. To avoid the storm of requests, the hooks.{EVENT_NAME}.delay configuration option exist. It defines the delay between retries to send HTTP requests in milliseconds.

You can enable or disable any hook with the hooks.{EVENT_NAME}.enabled configuration parameter by setting it to true or false.

Balance threshold event

The balance threshold event is triggered when a subscriber's balance reached a certain level of threshold. The threshold level is determined by the following configuration parameter:

yaml

The value of the level parameter is a number between 0.0 and 1.0 which represents the percentage of used balance when the event is triggered.

The content of the outgoing HTTP notification is a follows:

json

MCC/MNC change event

The MCC/MNC change event is triggered when TPOSS catches an update of subscriber's MCC or MNC when handling RADIUS Accounting requests. TPOSS checks the value of the 3GPP-SGSN-MCC-MNC RADIUS AVP when handling each RADIUS Accounting-Request, and compares it with the MCC/MNC in the current network sessions. If they are different, TPOSS sends a notification. If a TPOSS instance is launched with Diameter, a Gy-ASR request is sent towards TDF to re-attach a service session.

The content of the outgoing HTTP notification is as follows:

json

Visited country change event

The visited country change event is similar to the MCC/MNC change event. It is also triggered when TPOSS catches an update of subscriber's MCC/MNC when handling RADIUS Accounting Requests.

The content of the outgoing HTTP notification is as follows:

json

First network attachment event

The first network attachment event is triggered when TPOSS receives RADIUS Access-Request and the IMSI from the request is attached for the first time.

The content of the outgoing HTTP notification is as follows:

json

All fields in the outgoing HTTP notification are mandatory, except for imeisv and imei. If the network session was created without an IMEISV (based on a RADIUS Access-Request or Accounting-Request without the 3GPP-IMEISV AVP), the values of these attributes are skipped in the notification payload.

Charging rules change event

The charging rules change event is triggered when there is a change of a service session for the given subscriber.

By default, TPOSS sends a notification to all subscribers. The content of the outgoing HTTP notification is as follows:

json

TPOSS may also send a notification only for subscribers with the specified mobile country codes. To achieve this, use this configuration option:

yaml