Skip to content

Instantly share code, notes, and snippets.

@dtolb
Created March 2, 2016 14:38
Show Gist options
  • Save dtolb/44d2bb433508973d7539 to your computer and use it in GitHub Desktop.
Save dtolb/44d2bb433508973d7539 to your computer and use it in GitHub Desktop.
Express Call Handler
app.get('/callcallback', function (req, res) {
var response = new xml.Response();
var playAudio = new xml.PlayAudio({
url: 'https://s3.amazonaws.com/bwdemos/vday/vday.mp3'
});
var hangup = new xml.Hangup();
response.push(playAudio);
response.push(hangup);
res.send(response.toXml());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment