Created
March 2, 2016 14:38
-
-
Save dtolb/44d2bb433508973d7539 to your computer and use it in GitHub Desktop.
Express Call Handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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