Skip to content

Commit

Permalink
Updated dtmf callback payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Lewin committed Jan 29, 2021
1 parent b4d3cb3 commit 21c0190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app.post('/webhooks/events', (req, res) => {
app.post('/webhooks/dtmf', (req, res) => {
let actions = [];
let ncco = [];
switch (req.body.dtmf) {
switch (req.body.dtmf.digits) {
case '1':
actions.push({
action: 'talk',
Expand Down

0 comments on commit 21c0190

Please sign in to comment.