Toolpack monitoring

From TBwiki
Jump to: navigation, search

The Tmonitor and Tmedia products both support Network Monitoring.

Monitoring features can be controlled with the Toolpack API.

Using these APIs, the Toolpack Gateway application supports built-in protocol analyzers that allow to monitor a TDM network, generate CDR logs and notify external applications of monitored TDM calls.

Contents

The Toolpack Monitoring API

Monitoring API overview.png

The Toolpack monitoring API consists of function calls on the call leg class:

  • StartMonitoring
  • StopMonitoring

Corresponding events notify the call flow of monitoring state

  • OnMonitoringStarted
  • OnMonitoringDataReceived

An application that need to do monitoring will first allocate media legs on the appropriate Line Service and Timeslot, then use the StartMonitoring function call to configure the monitoring parameters. Among parameters, will be chosen:

  • Mode (HDLC, SS7, CAS, RAW)
  • Rate (64Kbps, 56Kbps, 48Kbps, 32Kbps, 16Kbps or 8Kbps)
  • Timeslot sub-index (for rates of 32Kbps or less)

Once monitoring is started, the application (call flow) will be notified of captured data through OnMonitoringDataReceived.

For more information on this API, please refer to the following article, which covers the monitoring APIs: Working with CMC Call Legs

For more general information about using call legs in your application, please refer to this article: Working with Call Legs

Built-in monitoring analyzers

Monitoring analyzer overview.png

The Toolpack framework includes "analyzer" classes that use the monitoring API to capture signaling messages on TDM links.

The ISDN Analyzer will capture HDLC messages on the IDSN D-Channel, and analyze them to rebuild the call state of monitored ISDN calls.

The user application can then be notified of a detected ISDN calls, and of any state change of this call (accepted, alerting, answered, terminating, terminated...).

For more information about the analyzer API, refer to appropriate header files in Toolpack source code.

Integration of monitoring analyzers in Toolpack Gateway

The analyzers are integrated into Toolpack's own Gateway application. The Gateway application can be configured to monitor ISDN calls on the specified Line Services.

Upon detection of ISDN calls, the Gateway application can generate CDR logs, and also forward the information to "generators" that will generate message toward an external application that needs to be notified of monitored ISDN calls.

For information about the configuration of ISDN analyzers in Toolpack, please refer to the following article: Toolpack ISDN Analyzer

Toolpack monitoring generators

Monitoring generator overview.png

The Gateway application can attach "generators" to analyzers. A "generator" is receiving the analyzer's detected calls state changes, and generates corresponding events toward an external application.

Toolpack SIP simulator

One of the "generators" provided with Toolpack is the "SIP Simulator".

The "SIP simulator" is:

  • simulating SIP messages (outgoing-only) that correspond to the analyzed call (ISDN or other) state changes
  • Forwarding captured TDM audio through RTP streams

Using this SIP simulator with a monitoring analyzer allows any SIP monitoring software to be able to monitor a TDM link (ISDN for example).

For information about the configuration of "SIP Simulators" in Toolpack, please refer to the following article: Toolpack SIP Simulator

Toolpack SIP generator

Toolpack "SIP Generator" is similar to the "SIP Simulator", with the difference that the "SIP Generator" will generate real outgoing SIP calls that need to be accepted and answered by a remote SIP equipment.

The "SIP generator"

  • Generate out outgoing SIP call for each direction of the analyzed call
  • Forwarding captured TDM audio through these SIP calls

Using this SIP generator allows to forward an analyzed TDM call audio to a SIP server for monitoring. Note that individual state changes of the monitored TDM call will be lost in this case.

For information about the configuration of "SIP Generators" in Toolpack, please refer to the following article: Toolpack SIP Generator

Personal tools