Toolpack monitoring isdn analyzer

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Continuing adding more info to this page)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[Image:Monitoring_isdn_analyzer.png|thumb|300px]]
 
Toolpack ISDN Analyzer is a class that uses Media-only legs and monitoring API to capture HDLC frames from ISDN D-channel timeslot.
 
Toolpack ISDN Analyzer is a class that uses Media-only legs and monitoring API to capture HDLC frames from ISDN D-channel timeslot.
  
Line 6: Line 7:
  
 
== Capturing each direction of each D-Channel ==
 
== Capturing each direction of each D-Channel ==
The ISDN analyzer will allocate a pair TDM media-only call legs for each Line service of the ISDN stack that has a D-Channel (primary D-Channel, and backup D-Channel if appropriate).
+
The ISDN analyzer will allocate a pair of TDM media-only call legs for each Line service of the ISDN stack that has a D-Channel (primary D-Channel, and backup D-Channel if appropriate).
  
 
* The primary Line service of the ISDN stack holds the primary D-channel (timeslot 16 for E1, timeslot 24 for T1/J1).
 
* The primary Line service of the ISDN stack holds the primary D-channel (timeslot 16 for E1, timeslot 24 for T1/J1).
Line 29: Line 30:
 
** The call changes to "terminating" state
 
** The call changes to "terminating" state
 
* ISDN Q.931 "RELEASE" is detected
 
* ISDN Q.931 "RELEASE" is detected
** The call changes to "terinated" state
+
** The call changes to "terminated" state
 
* ISDN Q.931 "RELEASE_COMPLETE" is detected
 
* ISDN Q.931 "RELEASE_COMPLETE" is detected
 
** The call context is destroyed
 
** The call context is destroyed
Line 60: Line 61:
  
 
== Configuring ISDN analyzers in Toolpack Web Portal ==
 
== Configuring ISDN analyzers in Toolpack Web Portal ==
Developers can use ISDN analzyers in their application.
+
Developers can use ISDN analzyers in their application by using the class CTBCAFAnalyzerIsdn (which uses parameters defined by CTBCAFAnalyzerIsdnParams).
  
 
Non-developers that use Toolpack system with built-in Gateway application can also use ISDN analyzers to generate CDR logs or generate corresponding "monitoring" SIP calls to an external monitoring equipment.
 
Non-developers that use Toolpack system with built-in Gateway application can also use ISDN analyzers to generate CDR logs or generate corresponding "monitoring" SIP calls to an external monitoring equipment.
 
In the Web Portal, using ISDN analyzers is done by:
 
* Enabling "Monitoring" in the "Web Profile"
 
** Click Configurations on the left menu
 
** Select the current configuration for editing
 
** Expand "Web Profile"
 
** Enable "Gateway Application" if not already done
 
** Enable "Monitoring"
 
* Creating "Line Service Pairs"
 
** Click "Line Service Pairs" Section in the left menu
 
** Use "Create Line Service Pair" link to create one or multiple "line service pairs"
 
* Create a "ISDN Analyzer"
 
** Click "Create new ISDN Analyzer" link
 
** Fill-out the required information in the page
 
  
 
For more information and step-by-step screen shots of the configuration of ISDN analyzers, please refer to the [[Web Portal Tutorial Guide v2.9]].
 
For more information and step-by-step screen shots of the configuration of ISDN analyzers, please refer to the [[Web Portal Tutorial Guide v2.9]].
 +
 +
[[Category:Tmonitor_OAM%26P|ISDN Analyzer]]

Latest revision as of 12:45, 17 May 2016

Monitoring isdn analyzer.png

Toolpack ISDN Analyzer is a class that uses Media-only legs and monitoring API to capture HDLC frames from ISDN D-channel timeslot.

The captured ISDN HDLC frames are analyzed, to identify Q.921 and Q.931 frames from the HDLC frames.

Then, ISDN calls are identified from the analyzed Q.931 packets.

Contents

Capturing each direction of each D-Channel

The ISDN analyzer will allocate a pair of TDM media-only call legs for each Line service of the ISDN stack that has a D-Channel (primary D-Channel, and backup D-Channel if appropriate).

  • The primary Line service of the ISDN stack holds the primary D-channel (timeslot 16 for E1, timeslot 24 for T1/J1).
  • For NFAS ISDN stacks, multiple Line services are used. An optional backup D-channel may be present among these line services.

Typical ISDN analyzer call flow

A typical ISDN analyzer call goes as follows:

  • ISDN Q.931 "SETUP" message is detected
    • ISDN IEs are analyzed to extract relevant information
      • Call id
      • Channel identification
      • Calling/called numbers
      • And others...
    • A new "analyzed" call context is created, bound with the call id
  • ISDN Q.931 "PROCEEDING" is detected
    • The call changes to "accepted" state
  • ISDN Q.931 "ALERTING" is detected
    • The call changes to "alerting" state
  • ISDN Q.931 "CONNECT" is detected
    • The call changes to "answered" state
  • ISDN Q.931 "DISCONNECT" is detected
    • The call changes to "terminating" state
  • ISDN Q.931 "RELEASE" is detected
    • The call changes to "terminated" state
  • ISDN Q.931 "RELEASE_COMPLETE" is detected
    • The call context is destroyed

Forwarding analyzed call states to application

Each analyzer has been provided a pointer to a "parent" application (a "user") to inform of call state changes.

This "user" is a class that implement the interface ITBCAFAnalyzerUser.

This interface will provide the "user" with the following callbacks from the analyzer, to report new calls and state changes:

  • OnAnalyzerCallLegPresent: A new ISDN call was detected
  • OnAnalyzerCallLegAccepted: A ISDN call is now "accepted"
  • OnAnalyzerCallLegAlerting: A ISDN call is now "alerting" (ringing)
  • OnAnalyzerCallLegAnswered: A ISDN call is now "answered"
  • OnAnalyzerCallLegTerminating: A ISDN call is now "terminating"
  • OnAnalyzerCallLegTerminated: A ISDN call is now terminated
  • OnAnalyzerCallLegSuppInfo: Other ISDN message (non call-state affecting) was received

It's up to the user application to decide what should be done with analyzed calls and state changes.


Line Service Pairs

ISDN analyzer is configured using "Line Service Pairs". In fact, in a monitoring environment, a monitored trunk is "tapped", and each direction of the trunk is "forked" and connected to the monitoring equipment (this is done by using a "Monitoring Patch Panel", provided by TelcoBridges).

Thus, each monitored trunk will be received twice on the monitoring equipment (one for each direction).

A "Line Service Pair" is indicating which Line services, on the monitoring equipment, correspond to the two directions of the same monitored trunk.

The ISDN analyzer is then configured using these "Line Service Pairs", and so it knows which line service to monitor for each direction of each monitored trunk.

Configuring ISDN analyzers in Toolpack Web Portal

Developers can use ISDN analzyers in their application by using the class CTBCAFAnalyzerIsdn (which uses parameters defined by CTBCAFAnalyzerIsdnParams).

Non-developers that use Toolpack system with built-in Gateway application can also use ISDN analyzers to generate CDR logs or generate corresponding "monitoring" SIP calls to an external monitoring equipment.

For more information and step-by-step screen shots of the configuration of ISDN analyzers, please refer to the Web Portal Tutorial Guide v2.9.

Personal tools