Making An Applet
Out of the box OpenVBX comes with a set of applets like: dial, hangup, greeting, voicemail, etc. While you can string them together and create some very impressive call flows sometimes you need some custom functionality that you just can’t get out of the pre-existing applets.
Luckily you can write your own applets to extend your version of OpenVBX. This quickstart begins by showing you how to make a simple applet with a prompt and ends with you building a fully functional call screening applet.
If you would like to use the existing applets as reference they can be found in your OpenVBX folder under
The first step to building your applet is to create a few empty files and directories inside your
You can reuse these files and directories for other applets. So First lets create a directory for the name of your applet inside of the
Now we define something about the applet: The applet name, who built it, etc. You define this through a file called
If you’re familiar with json, then this should be a walk through the park, otherwise just copy and paste our example into your favorite text editor.
Since HelloMonkey is an applet we need to add an applets directory.
Now we’ll create a few files to define the applet: the ui, the twiml and another json file.
You can download a the code used in this example if you would like: