mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 09:08:02 +00:00
new signature for WsRequestor
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user