diff --git a/lib/middleware.js b/lib/middleware.js index b4189964..5314bf60 100644 --- a/lib/middleware.js +++ b/lib/middleware.js @@ -230,7 +230,13 @@ module.exports = function(srf, logger) { */ if ('WS' === app.call_hook?.method || 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.call_hook.method = 'WS'; }