mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
add new type dial:confirm
This commit is contained in:
@@ -115,6 +115,7 @@
|
||||
"session:redirect",
|
||||
"call:status",
|
||||
"queue:status",
|
||||
"dial:confirm",
|
||||
"verb:hook",
|
||||
"jambonz:error"
|
||||
],
|
||||
|
||||
@@ -309,7 +309,7 @@ class SingleDialer extends Emitter {
|
||||
async _executeApp(confirmHook) {
|
||||
try {
|
||||
// retrieve set of tasks
|
||||
const tasks = await this.requestor.request('confirmHook', confirmHook, this.callInfo.toJSON());
|
||||
const tasks = await this.requestor.request('dial:confirm', confirmHook, this.callInfo.toJSON());
|
||||
|
||||
// verify it contains only allowed verbs
|
||||
const allowedTasks = tasks.filter((task) => {
|
||||
|
||||
Reference in New Issue
Block a user