mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
write service_provider_sid with alerts
This commit is contained in:
@@ -127,10 +127,22 @@ router.post('/', async(req, res) => {
|
||||
}
|
||||
else {
|
||||
logger.debug({call_hook: app.call_hook}, 'creating http client for call hook');
|
||||
app.requestor = new HttpRequestor(logger, account.account_sid, app.call_hook, account.webhook_secret);
|
||||
app.requestor = new HttpRequestor(
|
||||
logger,
|
||||
account.service_provider_sid,
|
||||
account.account_sid,
|
||||
app.call_hook,
|
||||
account.webhook_secret
|
||||
);
|
||||
}
|
||||
if (!app.notifier && app.call_status_hook) {
|
||||
app.notifier = new HttpRequestor(logger, account.account_sid, app.call_status_hook, account.webhook_secret);
|
||||
app.notifier = new HttpRequestor(
|
||||
logger,
|
||||
account.service_provider_sid,
|
||||
account.account_sid,
|
||||
app.call_status_hook,
|
||||
account.webhook_secret
|
||||
);
|
||||
logger.debug({call_hook: app.call_hook}, 'creating http client for call status hook');
|
||||
}
|
||||
else if (!app.notifier) {
|
||||
|
||||
Reference in New Issue
Block a user