Skip to content

Commit

Permalink
added callback queue to template
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Damm committed Jun 8, 2020
1 parent d026516 commit 38b4721
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
"taskQueueSid": null,
"expression": "channel == \"video\"",
"targetWorkerExpression": ""
},
{
"friendlyName": "Callback Queue",
"filterFriendlyName": "Callback",
"id": "callback",
"taskQueueSid": null,
"expression": "channel == \"callback\"",
"targetWorkerExpression": ""
}
],
"twilio": {
Expand Down
2 changes: 1 addition & 1 deletion controllers/ivr.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module.exports.createTask = async (req, res) => {
const attributes = {
title: 'Callback request',
text: 'Caller answered IVR with option "' + req.query.teamFriendlyName + '"',
channel: 'phone',
channel: 'callback',
name: req.query.From,
team: req.query.teamId,
phone: req.query.From
Expand Down

0 comments on commit 38b4721

Please sign in to comment.