mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-22 01:27:55 +00:00
bugfix: when createCall fails to create a leg, it also generated an unhandled exception
This commit is contained in:
@@ -80,6 +80,7 @@ router.post('/', async(req, res) => {
|
|||||||
logger.error(err, 'createCall Error creating call');
|
logger.error(err, 'createCall Error creating call');
|
||||||
res.status(500).send('Call Failure');
|
res.status(500).send('Call Failure');
|
||||||
ep.destroy();
|
ep.destroy();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
/* ok our outbound INVITE is in flight */
|
/* ok our outbound INVITE is in flight */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user