Merge pull request #7674 from antobinary/media-errors-1
baseErrorCodes not defined
This commit is contained in:
commit
90fadc3a86
@ -17,12 +17,13 @@ const CALL_CONNECT_TIMEOUT = 15000;
|
||||
const ICE_NEGOTIATION_TIMEOUT = 20000;
|
||||
|
||||
class SIPSession {
|
||||
constructor(user, userData, protocol, hostname, baseCallStates) {
|
||||
constructor(user, userData, protocol, hostname, baseCallStates, baseErrorCodes) {
|
||||
this.user = user;
|
||||
this.userData = userData;
|
||||
this.protocol = protocol;
|
||||
this.hostname = hostname;
|
||||
this.baseCallStates = baseCallStates;
|
||||
this.baseErrorCodes = baseErrorCodes;
|
||||
}
|
||||
|
||||
static parseDTMF(message) {
|
||||
@ -468,7 +469,8 @@ export default class SIPBridge extends BaseAudioBridge {
|
||||
return new Promise((resolve, reject) => {
|
||||
let { hostname } = this;
|
||||
|
||||
this.activeSession = new SIPSession(this.user, this.userData, this.protocol, hostname, this.baseCallStates);
|
||||
this.activeSession = new SIPSession(this.user, this.userData, this.protocol,
|
||||
hostname, this.baseCallStates, this.baseErrorCodes);
|
||||
|
||||
const callback = (message) => {
|
||||
if (message.status === this.baseCallStates.failed) {
|
||||
@ -491,7 +493,8 @@ export default class SIPBridge extends BaseAudioBridge {
|
||||
|
||||
if (shouldTryReconnect) {
|
||||
const fallbackExtension = this.activeSession.inEchoTest ? extension : undefined;
|
||||
this.activeSession = new SIPSession(this.user, this.userData, this.protocol, hostname, this.baseCallStates);
|
||||
this.activeSession = new SIPSession(this.user, this.userData, this.protocol,
|
||||
hostname, this.baseCallStates, this.baseErrorCodes);
|
||||
this.activeSession.joinAudio({ isListenOnly, extension: fallbackExtension, inputStream }, callback)
|
||||
.then((value) => {
|
||||
resolve(value);
|
||||
|
Loading…
Reference in New Issue
Block a user