Browse Source

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

master
damencho 8 years ago
parent
commit
c8ab1b9892
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      conference.js

+ 4
- 1
conference.js View File

@@ -1657,7 +1657,10 @@ export default {
1657 1657
         });
1658 1658
 
1659 1659
         APP.UI.addListener(UIEvents.SIP_DIAL, (sipNumber) => {
1660
-            room.dial(sipNumber);
1660
+            room.dial(sipNumber)
1661
+                .catch((err) => {
1662
+                    logger.error("Error dialing out", err);
1663
+                });
1661 1664
         });
1662 1665
 
1663 1666
         APP.UI.addListener(UIEvents.RESOLUTION_CHANGED,

Loading…
Cancel
Save