Wiki currently under construction. Please bear with us as we migrate data.

Astricon Talks

Note: we are still adding and organizing this.

Boilerplate

index.js

const FreePBX = new require("freepbx")(); const ARI = require('ari-client'); const appname = 'helloWorld'; //Connection events FreePBX.connect() .then(freepbx => {       ARI.connect('http://localhost:8088',freepbx.config.FPBX_ARI_USER,freepbx.config.FPBX_ARI_PASSWORD)     .then(ari => {       ari.start(appname);       ari.on('StasisStart', (event, incoming) => {       });     }).catch(err => {       console.error(err);     }); }) .catch(err => {   console.error(err); });

Package.json

package.json dependencies

"dependencies": {   "ari-client": "^1.1.1",   "freepbx": "http://mirror.freepbx.org/npm/freepbx-1.0.2.tgz" }

Wiki currently under construction. Please bear with us as we migrate data.