The first version was written to solve troubles which comes after mod_spidermokey was replaced to mod_v8.
But soon, it turned into useful for developing IVRs, simple and fast dialplan applications and various scripts for automation, and it's still used in this way today.
This is an open-source project and available on GitHUB
Allows to use shared libraries in the scripts
For long operations in the console bg execution quite useful
Provides control commands for CLI (list, break, etc)
This is the most interesting class that allows to perform various manipulations with sessions.
Allows to operate with codecs (encode/decode/etc).
Provides methods to arrange chats using Freeswitch Chat API.
Allows to arrange realtime interaction with the users, for example over WebRTC/SIP.
Provides methods to operate with Freeswitch CoreDB.
Provides methods to operate with various databases over Freeswitch DBH api.
Allows interact with foreign systems over HTTP.
Executing GET/POST requests, uploading files, etc.
JsonRPC client, allows to call web-services from the scripts.
Allows to create client/server sockets and operate with the ones.
Provides methods to operate with files / directories.
Allows to operate with Freeswitch events.
Allows to operate with Freeswitch fileHandle (playback contor, etc).
Provides methods to operate with XML through Freeswitch XML API.
Dialplan example:
<extension name="quickjs-test">
<condition field="destination_number" expression="^(12345)$" >
<action application="qjs" data="my-scrips.js arg1 arg2 argr3"/>
</condition>
</extension>
under development...