mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
fixes from initial load testing
This commit is contained in:
@@ -47,14 +47,10 @@ router.post('/', async(req, res) => {
|
||||
}
|
||||
|
||||
/* create endpoint for outdial */
|
||||
const mrf = srf.locals.mrf;
|
||||
const fsOpts = getFreeswitch();
|
||||
if (!fsOpts) throw new Error('no available Freeswitch for outbound call creation');
|
||||
const ms = await mrf.connect(fsOpts);
|
||||
logger.debug('createCall: successfully connected to media server');
|
||||
const ms = getFreeswitch();
|
||||
if (!ms) throw new Error('no available Freeswitch for outbound call creation');
|
||||
const ep = await ms.createEndpoint();
|
||||
logger.debug(`createCall: successfully allocated endpoint, sending INVITE to ${sbcAddress}`);
|
||||
ms.destroy();
|
||||
|
||||
/* launch outdial */
|
||||
let sdp, sipLogger;
|
||||
|
||||
Reference in New Issue
Block a user