Catches promise errors, returned when error is received after dial cmd.

This commit is contained in:
damencho 2017-04-17 16:39:11 -05:00 committed by Paweł Domas
parent 61e637a639
commit c8ab1b9892
1 changed files with 4 additions and 1 deletions

View File

@ -1657,7 +1657,10 @@ export default {
}); });
APP.UI.addListener(UIEvents.SIP_DIAL, (sipNumber) => { APP.UI.addListener(UIEvents.SIP_DIAL, (sipNumber) => {
room.dial(sipNumber); room.dial(sipNumber)
.catch((err) => {
logger.error("Error dialing out", err);
});
}); });
APP.UI.addListener(UIEvents.RESOLUTION_CHANGED, APP.UI.addListener(UIEvents.RESOLUTION_CHANGED,