Debugging and, or Investigation of messages

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with " The module '''msgsniff''' is for you to probe all the messages being generated and, or received by Yate and, or the modules compiled and enabled in '''yate.conf''' file. Th...")
 
Line 8: Line 8:
 
The initial activation is controlled by msgsniff in [general] of same yate.conf file. The default status is off as it would flood the logs and hit the performance.
 
The initial activation is controlled by msgsniff in [general] of same yate.conf file. The default status is off as it would flood the logs and hit the performance.
  
Example:  
+
===Example===
 +
 
 +
* Enable msgsniff module from Yate's main configuration file:
  
 
yate.conf
 
yate.conf
Line 14: Line 16:
 
  [general]
 
  [general]
 
  modload=no
 
  modload=no
 
 
   
 
   
 
  [modules]
 
  [modules]
Line 21: Line 22:
 
  msgsniff.yate=yes
 
  msgsniff.yate=yes
  
The sniffer can be turned on and off from [[rmanager]] using the commands:
+
* The sniffer can be turned on and off from [[rmanager]] using the commands:
  
 
  sniffer on
 
  sniffer on
 
  sniffer off
 
  sniffer off
  
You can apply filter by specifying regex to match:
+
* Apply filter by specifying regex to match:
  
 
  sniffer filter ^\(chan\.\|engine\.halt$\)
 
  sniffer filter ^\(chan\.\|engine\.halt$\)
 +
 +
 +
'''See also'''
 +
 +
* [[Modules]]
 +
* [[Configuration Files]]
 +
* [[Debug Output]]

Revision as of 10:17, 10 April 2013

The module msgsniff is for you to probe all the messages being generated and, or received by Yate and, or the modules compiled and enabled in yate.conf file.

This is a module you will use rather rarely, obviously it should be off by default.

The loading of msgsniff.yate is controlled by yate.conf like any other module.

The initial activation is controlled by msgsniff in [general] of same yate.conf file. The default status is off as it would flood the logs and hit the performance.

Example

  • Enable msgsniff module from Yate's main configuration file:

yate.conf

[general]
modload=no

[modules]
;for debugging yate
rmanager.yate=yes
msgsniff.yate=yes
  • The sniffer can be turned on and off from rmanager using the commands:
sniffer on
sniffer off
  • Apply filter by specifying regex to match:
sniffer filter ^\(chan\.\|engine\.halt$\)


See also

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers