Skip to content

Commit 709c409

Browse files
author
Antonis
committed
Fixed #536: Restcomm Dial-generated calls towards android client fail
1 parent b145b19 commit 709c409

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

restcomm.android.sdk/src/main/java/org/restcomm/android/sdk/MediaClient/PeerConnectionClient.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,11 @@ private void createPeerConnectionInternal(EglBase.Context renderEGLContext)
627627
// TCP candidates are only useful when connecting to a server that supports
628628
// ICE-TCP.
629629
rtcConfig.tcpCandidatePolicy = PeerConnection.TcpCandidatePolicy.DISABLED;
630-
rtcConfig.bundlePolicy = PeerConnection.BundlePolicy.MAXBUNDLE;
630+
// Commenting out MAXBUNDLE because when used and receiving a call from MS that doesn't include BUNDLE
631+
// the remove SDP fails to be set here and call fails. Check https://bugs.chromium.org/p/webrtc/issues/detail?id=5573
632+
// Seems MAXCOMPAT fixes the issue
633+
//rtcConfig.bundlePolicy = PeerConnection.BundlePolicy.MAXBUNDLE;
634+
rtcConfig.bundlePolicy = PeerConnection.BundlePolicy.MAXCOMPAT;
631635
rtcConfig.rtcpMuxPolicy = PeerConnection.RtcpMuxPolicy.REQUIRE;
632636
// TODO: Let's disable continual gathering so that we still get notified when gathering completes. Remember that with GATHER_CONTINUALLY
633637
// no notification occurs and the SDK keeps waiting forever. When we transition to using trickle ice, we should be able to uncomment this

0 commit comments

Comments
 (0)