mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
bugfix: implement confirmHook for dial
This commit is contained in:
@@ -409,8 +409,8 @@ class TaskDial extends Task {
|
||||
this.span.setAttributes({'dial.target': JSON.stringify(this.target)});
|
||||
this.target.forEach(async(t) => {
|
||||
try {
|
||||
t.url = t.url || this.confirmUrl;
|
||||
t.method = t.method || this.confirmMethod || 'POST';
|
||||
t.confirmHook = t.confirmHook || this.confirmUrl;
|
||||
//t.method = t.method || this.confirmMethod || 'POST';
|
||||
if (t.type === 'teams') t.teamsInfo = teamsInfo;
|
||||
if (t.type === 'user' && !t.name.includes('@') && !fqdn) {
|
||||
const user = t.name;
|
||||
|
||||
Reference in New Issue
Block a user