mod_spidermonkey is now built and installed by default as of Rev 5787 (1.0.beta2 tag and beyond)
If for some reason it's not, do the following:
- Uncomment languages/mod_spidermonkey in modules.conf in your src directory (make it always build and install spidermonkey)
- Run 'make mod_spidermonkey-install' to make and install just the spidermonkey module
- Edit conf/autoload_configs/modules.conf.xml in your FreeSWITCH™ install directory to load mod_spidermonkey
- Restart freeswitch
For database support you will need an additional module compiled and installed. See the mod_spidermonkey_odbc page for installation instructions.
Note: if you are using Fedora and you have errors like /lib/libnssutil3.so: undefined symbol: PR_GetEnv, you will need to configure FreeSWITCH using the --without-libcurl switch. Download_&_Installation_Guide#Fedora
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.
SpiderMonkey Specific Objects
- File - File IO methods (Spidermonkey object)
Other Points Of Interest
Pages in This Category
This category has only the following subcategory.
The following 146 pages are in this category, out of 146 total.