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.14, an older release. The newest release is 6.20. Go to 6.20

Session API

The Session API provides basic capabilities to read and control PCS sessions.

The Session API exposes different models depends on a type of a requested session. Current version of the Session API supports following session types:

  • ggsn
  • scg
  • combinedGGSNandSCG

Data model for ggsn session

text

Where:

Data model for scg session

text

Data model for combinedGGSNandSCG session

text

API methods

Session.List

Returns the list of sessions based on the given query parameters. If the number of sessions exceeds the internal query limit, only an initial subset will be returned. Returns an error if no valid query parameter is passed.

Following parameters could be passed:

Available session types:

  • ggsn
  • scg
  • combinedGGSNandSCG

For ggsn and scg sessions types following Filter values are supported:

  • is - equal to.
  • neq - not-equal to.
  • lte - lower than or equal to.
  • gt - greater than.
  • lt - lower than.
  • gte - great or equal.
  • starts_with - match objects which starts with the given pattern.
  • ends_with - match objects which ends with the given pattern.
  • contains - match objects which contains the given pattern.

For example:

text

will request objects with IMSI which ends with 5. Or:

text

will request object where BalanceId is equal to test_balance.

In a case of combinedGGSNandSCG session type only following filter operations are supported:

  • is - equal to.
  • in - value is located in a set of values. Limit is - 30 values.

For example:

text

Note that Limit, Offset, Sort and Fields parameters supported only for ggsn and scg session types. The combinedGGSNandSCG session type supports only one - Filter parameter which is mandatory.

Example of SessionType="ggsn" request:

text

Example of response:

text

Example of SessionType="combinedGGSNandSCG" request:

text

Example of response:

text

Following list of error codes may be returned:

  • -31411 - Invalid list Query. This error may occur under different circumstances such a wrong format of a Filter, Filter parameter is missed and so on.

Session.Stop

The method can be used to stop a running session. The session with the given IMSI will be stopped. Returns an error if no valid query parameter is passed.

Following parameters could be passed:

Example of request:

text

Example of response:

text

There is only single possible error code:

  • -31808 - Session not found.