test

test

test

const accountSid = 'AC3f38047f530e06a8743b540eaf849c2c';
const authToken = '702db74f9242bcd8d16dfb7c092369a0';
const client = require('twilio')(accountSid, authToken);
const express =require('express');
const VoiceResponse = require("twilio").twiml.VoiceResponse;
var app = express();

app.use('/incoming_call', function(req, res) {
  const response = new VoiceResponse();
  const gather = response.gather({
    input: 'speech dtmf',
    timeout: 3,
    numDigits: 1,
    action:'/enqueue_call'
  });
  gather.say('Please select from the following departments');
  gather.say('For sales press one, for support press two, for marketing press three');
  res.send(response.toString());
});
app.listen(3000, () => {
  console.log("Server is up on port 3000");
});
2018-12-03T12:20:02+11:00

About the Author:

I am a Certified Amazon Web Services Solutions Architect, proficient in most AWS Services. I am passionate about all things cloud and am excited about the possible future that this may bring. The last 8 months I have been working with Amazon Connect and the AWS ecosystem that forms contact centre solutions. This involves designing, building and deploying cutting edge solutions using a variety of Amazon Web Services. I am currently employed as a Cloud Consultant for Cloudwave Australia