|
|
@@ -364,7 +364,7 @@ JingleSessionPC._fixAnswerRFC4145Setup = function (offer, answer) {
|
|
364
|
364
|
JingleSessionPC.prototype.replaceTransport = function (jingleOfferElem,
|
|
365
|
365
|
success,
|
|
366
|
366
|
failure) {
|
|
367
|
|
-
|
|
|
367
|
+
|
|
368
|
368
|
// We need to first set an offer without the 'data' section to have the SCTP
|
|
369
|
369
|
// stack cleaned up. After that the original offer is set to have the SCTP
|
|
370
|
370
|
// connection established with the new bridge.
|
|
|
@@ -718,7 +718,6 @@ JingleSessionPC.prototype._modifySources = function (successCallback, queueCallb
|
|
718
|
718
|
}
|
|
719
|
719
|
|
|
720
|
720
|
if(this.jingleOfferIq) {
|
|
721
|
|
- fromSessionInitiate = true;
|
|
722
|
721
|
sdp = new SDP('');
|
|
723
|
722
|
if (this.webrtcIceTcpDisable) {
|
|
724
|
723
|
sdp.removeTcpCandidates = true;
|
|
|
@@ -769,7 +768,7 @@ JingleSessionPC.prototype._modifySources = function (successCallback, queueCallb
|
|
769
|
768
|
logger.error(errmsg, err);
|
|
770
|
769
|
} else {
|
|
771
|
770
|
logger.error(errmsg);
|
|
772
|
|
- err = errmsg; // for queueCallback
|
|
|
771
|
+ err = new Error(errmsg); // for queueCallback
|
|
773
|
772
|
}
|
|
774
|
773
|
GlobalOnErrorHandler.callErrorHandler(new Error(errmsg));
|
|
775
|
774
|
queueCallback(err);
|
|
|
@@ -804,8 +803,8 @@ JingleSessionPC.prototype._modifySources = function (successCallback, queueCallb
|
|
804
|
803
|
undefined,
|
|
805
|
804
|
"modified setLocalDescription failed")
|
|
806
|
805
|
);
|
|
807
|
|
- },
|
|
808
|
|
- reportError.bind(undefined, "modified answer failed")
|
|
|
806
|
+ }, reportError.bind(undefined, "modified answer failed"),
|
|
|
807
|
+ media_constraints
|
|
809
|
808
|
);
|
|
810
|
809
|
},
|
|
811
|
810
|
reportError.bind(undefined, 'modify failed')
|