How can I use the JavaScript (ECMAScript) dialplan?
• make sure that mod_spidermonkey is compiled (modules.conf in the src dir) • make sure mod_spidermonkey is enabled in freeswitch.xml • in your dialplan call ‘javascript’ with the path to the script as the argument • e.g.,