How to find which external modules are loaded from rmanager

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with " An easy way to see what global external module is on: 1. Connect using telnet from the localhost: >> telnet 127.0.0.1 5038 5038 is the default Yate port, in case your ...")
 
Line 1: Line 1:
  
An easy way to see what global external module is on:
+
To debug external module in telnet the command '''external''' is used.
 +
To use it (to see what global external module is on) follow the steps bellow.
  
1. Connect using telnet from the localhost:
+
=== Connect using telnet from the localhost===
  
 
   >> telnet 127.0.0.1 5038  
 
   >> telnet 127.0.0.1 5038  
Line 8: Line 9:
 
5038 is the default Yate port, in case your Yate uses another port use that.
 
5038 is the default Yate port, in case your Yate uses another port use that.
  
2. Type:
+
=== Type ===
  
 
   external
 
   external
Line 17: Line 18:
 
   2. external_module2.php
 
   2. external_module2.php
  
3. Let's say you want to restart one if the scripts without restarting yate, because you modified it.
+
=== Restart script ===
 +
 
 +
Let's say you want to restart one if the scripts without restarting Yate, because you modified it.
  
 
Type:
 
Type:
Line 23: Line 26:
 
   external ''restart'' name_of_module
 
   external ''restart'' name_of_module
  
4. On the above command you can use "stop" or "start" instead of "restart". The meaning is as follows:
+
For the same target you can use "stop" and "start" instead of "restart".
 +
 
 +
 
 +
=== External parameters meaning ===
  
 
*    ''no command'' - just start another instance of the module
 
*    ''no command'' - just start another instance of the module
Line 30: Line 36:
 
*    ''restart'' - stops (if running) and then starts an external module
 
*    ''restart'' - stops (if running) and then starts an external module
 
*    ''info'' - provides more detailed information about each of the running modules (no module name is supported)
 
*    ''info'' - provides more detailed information about each of the running modules (no module name is supported)
 +
 +
'''See also'''
 +
 +
* [[Rmanager]]

Revision as of 15:45, 19 November 2012

To debug external module in telnet the command external is used. To use it (to see what global external module is on) follow the steps bellow.

Contents

Connect using telnet from the localhost

  >> telnet 127.0.0.1 5038 

5038 is the default Yate port, in case your Yate uses another port use that.

Type

  external

The output should be the external modules that are running at that time. Example:

  1. external_module1.php
  2. external_module2.php

Restart script

Let's say you want to restart one if the scripts without restarting Yate, because you modified it.

Type:

  external restart name_of_module

For the same target you can use "stop" and "start" instead of "restart".


External parameters meaning

  • no command - just start another instance of the module
  • start - start an instance only if one isn't already running
  • stop - stops the first running instance with that name
  • restart - stops (if running) and then starts an external module
  • info - provides more detailed information about each of the running modules (no module name is supported)

See also

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers