How to find which external modules are loaded from rmanager

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
  
To debug external module in telnet the command '''external''' is used. <br>From telnet you can start/stop/restart an external module without stopping Yate (operations needed when you want to update the changes in your script).<br>
+
To see what external scripts are running at any moment you can run in Telnet the command '''external'''. <br>From telnet you can start/stop/restart an external module without stopping Yate (operations needed when you want to update the changes in your script).<br>
Follow the next steps to know how to watch from Telnet the running global external modules.   
+
Follow the next steps to know how to see from Telnet the running global external modules.   
  
 
=== Connect using Telnet from the localhost===
 
=== Connect using Telnet from the localhost===
Line 11: Line 11:
 
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.
  
=== External parameters meaning ===
+
=== Command ''External'' parameters meaning ===
  
*    ''no command'' - just start another instance of the module
+
By typing this commands in telnet:
 +
 
 +
*    ''external'' - just start another instance of the module
 
*    ''start'' - start an instance only if one isn't already running
 
*    ''start'' - start an instance only if one isn't already running
 
*    ''stop'' - stops the first running instance with that name
 
*    ''stop'' - stops the first running instance with that name

Revision as of 13:06, 11 April 2013

To see what external scripts are running at any moment you can run in Telnet the command external.
From telnet you can start/stop/restart an external module without stopping Yate (operations needed when you want to update the changes in your script).
Follow the next steps to know how to see from Telnet the running global external modules.

Contents

Connect using Telnet from the localhost

Connect to Yate through telnet:

  >> telnet 127.0.0.1 5038 

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

Command External parameters meaning

By typing this commands in telnet:

  • external - 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)

Command external without parameters

Type in telnet:

  external

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

Examples:

  1. external_module1.php
  2. external_module2.php

Example usage

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

Type:

  external restart name_of_script

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


See also

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers