mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
bugfix: when createCall fails to create a leg, it also generated an unhandled exception
This commit is contained in:
@@ -80,7 +80,7 @@ router.post('/', async(req, res) => {
|
|||||||
if (err) {
|
if (err) {
|
||||||
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();
|
return;
|
||||||
}
|
}
|
||||||
/* ok our outbound INVITE is in flight */
|
/* ok our outbound INVITE is in flight */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user