fixed ws-requestor missing hook for dial:confirm (#1143)

This commit is contained in:
Hoan Luu Huu
2025-04-09 18:29:08 +07:00
committed by GitHub
parent 0a541e089d
commit 343b382373

View File

@@ -146,7 +146,9 @@ class WsRequestor extends BaseRequestor {
type,
msgid,
call_sid: this.call_sid,
hook: ['verb:hook', 'session:redirect', 'llm:event', 'llm:tool-call'].includes(type) ? url : undefined,
hook: [
'verb:hook', 'dial:confirm', 'session:redirect', 'llm:event', 'llm:tool-call'
].includes(type) ? url : undefined,
data: {...payload},
...b3
};