diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/views/WebRTCEchoTest.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/views/WebRTCEchoTest.mxml index 08d6f34215..7b15d9a882 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/views/WebRTCEchoTest.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/views/WebRTCEchoTest.mxml @@ -42,11 +42,8 @@ with BigBlueButton; if not, see . import com.asfusion.mate.events.Dispatcher; import mx.managers.PopUpManager; import org.bigbluebutton.core.BBB; - import org.bigbluebutton.main.api.JSAPI; import org.bigbluebutton.main.api.JSLog; - import org.bigbluebutton.main.events.BBBEvent; import org.bigbluebutton.modules.phone.PhoneModel; - import org.bigbluebutton.modules.phone.PhoneOptions; import org.bigbluebutton.modules.phone.events.WebRTCCallEvent; import org.bigbluebutton.modules.phone.events.WebRTCEchoTestEvent; import org.bigbluebutton.modules.phone.events.WebRTCEchoTestStartedEvent; @@ -115,12 +112,7 @@ with BigBlueButton; if not, see . private function noButtonClicked():void { userClosed = true; trace(LOG + "Echo test failed."); - - var logData:Object = new Object(); - logData.reason = "User requested."; - logData.user = UsersUtil.getUserData(); - JSLog.info("WebRtc Echo test failed.", logData); - + var dispatcher:Dispatcher = new Dispatcher(); dispatcher.dispatchEvent(new WebRTCEchoTestEvent(WebRTCEchoTestEvent.WEBRTC_ECHO_TEST_NO_AUDIO)); onCancelClicked(); diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/phone/managers/WebRTCCallManager.as b/bigbluebutton-client/src/org/bigbluebutton/modules/phone/managers/WebRTCCallManager.as index 1a01fb3eed..0157c83ff1 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/phone/managers/WebRTCCallManager.as +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/phone/managers/WebRTCCallManager.as @@ -6,13 +6,13 @@ package org.bigbluebutton.modules.phone.managers import flash.external.ExternalInterface; import flash.utils.Timer; - import flexlib.scheduling.timelineClasses.TimeRangeDescriptorUtil; - import mx.controls.Alert; import mx.events.CloseEvent; + import org.bigbluebutton.main.api.JSLog; import org.bigbluebutton.core.UsersUtil; import org.bigbluebutton.main.api.JSAPI; + import org.bigbluebutton.main.api.JSLog; import org.bigbluebutton.main.events.ClientStatusEvent; import org.bigbluebutton.modules.phone.PhoneModel; import org.bigbluebutton.modules.phone.PhoneOptions; @@ -29,7 +29,7 @@ package org.bigbluebutton.modules.phone.managers import org.bigbluebutton.modules.phone.events.WebRTCMediaEvent; import org.bigbluebutton.modules.phone.models.Constants; import org.bigbluebutton.modules.phone.models.WebRTCModel; - import org.bigbluebutton.util.i18n.ResourceUtil; + import org.bigbluebutton.util.i18n.ResourceUtil; public class WebRTCCallManager { @@ -196,6 +196,11 @@ package org.bigbluebutton.modules.phone.managers errorString = ResourceUtil.getInstance().getString("bbb.webrtcWarning.failedError.unknown", [event.errorCode]); } + var logData:Object = new Object(); + logData.reason = errorString; + logData.user = UsersUtil.getUserData(); + JSLog.warn("WebRtc Echo test failed.", logData); + sendWebRTCAlert(ResourceUtil.getInstance().getString("bbb.webrtcWarning.title"), ResourceUtil.getInstance().getString("bbb.webrtcWarning.message", [errorString]), errorString); }