new signature for WsRequestor

This commit is contained in:
Dave Horton
2022-09-08 11:51:07 +02:00
parent 99759459be
commit 5f6a622387

View File

@@ -230,7 +230,13 @@ module.exports = function(srf, logger) {
*/ */
if ('WS' === app.call_hook?.method || if ('WS' === app.call_hook?.method ||
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,
service_provider_sid,
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';
} }