This commit is contained in:
Dave Horton
2022-02-21 09:21:36 -05:00
parent 3f9a061bbf
commit 06e36ddd00

View File

@@ -147,7 +147,7 @@ module.exports = function(srf, logger) {
app.call_hook?.url.startsWith('ws://') || app.call_hook?.url.startsWith('wss://')) { app.call_hook?.url.startsWith('ws://') || app.call_hook?.url.startsWith('wss://')) {
app.requestor = new WsRequestor(logger, account_sid, app.call_hook, accountInfo.account.webhook_secret) ; app.requestor = new WsRequestor(logger, account_sid, app.call_hook, accountInfo.account.webhook_secret) ;
app.notifier = app.requestor; app.notifier = app.requestor;
app.call_hook.method = 'WS' app.call_hook.method = 'WS';
} }
else { else {
app.requestor = new HttpRequestor(logger, account_sid, app.call_hook, accountInfo.account.webhook_secret); app.requestor = new HttpRequestor(logger, account_sid, app.call_hook, accountInfo.account.webhook_secret);