Skip to content

778 fix webrtc fatal error

username-removed-730944 requested to merge 778-fix-webrtc-fatal-error into master

Closes #778

This MR is based on !31 (closed) for #550, should be merged after !31 (closed).

Main goal was achieved by replacing handling of fatal WebRtc error via promise to message broadcast.

I also took this fix as an opportunity to do cleanup of CtiProxy:

  • try to make it more robust, esp. re-initialization and stopping WebRtcAudio
  • use dummyAdapter in uninitialized CtiProxy (before CtiProxy was implicitly attached to Cti)
  • let CtiProxyregister itself to receive Cti.MessageType.LOGGEDON
  • restructure code, streamline outer interface, move shared strings to "constants"
  • replace console with $log
  • extend tests

Merge request reports