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