Javascript Rmanager commands

From Yate Documentation
Revision as of 13:09, 26 February 2014 by Monica (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

You can interact with Javascript scripts from rmanager.

  • connect with telnet to Yate's rmanager interface
telnet 127.0.0.1 5038
  • see running scripts
javascript info

Ex output:

javascript info
nib = ./share/scripts/nib.js
sip/74: ReRoute

nib.js is a global script and sip/74 is a sip channel that was routed by the configured routing script

  • reload scripts
javascript reload script_name
  • evaluate expresion

Ask Javascript interpretor to evaluate expresion:

javascript eval Engine.debug("test")

Ask Javascript interpretor to evaluate expresion in the context of a specific script. In this case you will be able to access global variables from that script.

javascript eval=script_name Engine.debug("test"+var_name)

Ask Javascript interpretor to evaluate expresion in the context of a specific routing script instance. In this case you will be able to access global variables from that script instance.

javascript eval=sip/74 Engine.debug("test"+var_name)
Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers