mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
fail call on stream error
This commit is contained in:
@@ -192,8 +192,8 @@
|
||||
}
|
||||
|
||||
function onStreamError(self, e) {
|
||||
console.log('There has been a problem retrieving the streams - did you allow access?', e);
|
||||
|
||||
console.log('There has been a problem retrieving the streams - did you allow access? Check Device Resolution', e);
|
||||
doCallback(self, "onError", e);
|
||||
}
|
||||
|
||||
function onStreamSuccess(self) {
|
||||
|
@@ -1490,7 +1490,7 @@
|
||||
|
||||
RTCcallbacks.onError = function(e) {
|
||||
console.error("ERROR:", e);
|
||||
dialog.hangup();
|
||||
dialog.hangup({cause: "Device or Permission Error"});
|
||||
};
|
||||
|
||||
dialog.rtc = new $.FSRTC({
|
||||
@@ -1666,15 +1666,15 @@
|
||||
|
||||
if (params) {
|
||||
if (params.causeCode) {
|
||||
dialog.causeCode = params.causeCode;
|
||||
dialog.causeCode = params.causeCode;
|
||||
}
|
||||
|
||||
if (params.cause) {
|
||||
dialog.cause = params.cause;
|
||||
dialog.cause = params.cause;
|
||||
}
|
||||
}
|
||||
|
||||
if (dialog.state.val > $.verto.enum.state.new.val && dialog.state.val < $.verto.enum.state.hangup.val) {
|
||||
if (dialog.state.val >= $.verto.enum.state.new.val && dialog.state.val < $.verto.enum.state.hangup.val) {
|
||||
dialog.setState($.verto.enum.state.hangup);
|
||||
} else if (dialog.state.val < $.verto.enum.state.destroy) {
|
||||
dialog.setState($.verto.enum.state.destroy);
|
||||
@@ -1927,7 +1927,8 @@
|
||||
recovering: 1,
|
||||
ringing: 1,
|
||||
destroy: 1,
|
||||
answering: 1
|
||||
answering: 1,
|
||||
hangup: 1
|
||||
},
|
||||
requesting: {
|
||||
trying: 1,
|
||||
|
Reference in New Issue
Block a user