mod_v8 is built and installed by default as of revision b76233266931ca0b53f3bcc589277b972d714216.
If for some reason it's not, do the following:
- Uncomment languages/mod_v8 in modules.conf in your src directory (make it always build and install mod_v8)
- Run 'make mod_v8-install' to make and install just the v8 module
- Edit conf/autoload_configs/modules.conf.xml in your FreeSWITCH™ install directory to load mod_v8
- In fs_cli, run "load mod_v8"
For database support, the system must be configured to use ODBC. If it is, the built-in class for ODBC will automatically be built.
A difference between the old mod_spidermonkey and mod_v8 is that the basic extra modules, ODBC, CoreDB, Socket etc. is now compiled directly into mod_v8.
Execution of a script
From the Dialplan, you simply call it as an application similar to:
At the FreeSWITCH™ console, or some other application/interface execute the jsrun call with the script name as its argument.