mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-29 06:44:24 +00:00
bugfix: implement confirmHook for dial
This commit is contained in:
1 parent
befe910503
commit
5a584f50da
1 file changed
+2
-2
+2
-2
@@ -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