Skip to content

Commit

Permalink
VoIP: Fix regression when using a TURN server
Browse files Browse the repository at this point in the history
  • Loading branch information
manuroe committed Nov 4, 2019
1 parent 19d49b0 commit 85f0dda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Bug fix:
* MX3PidAddManager: Add User-Interactive Auth to /account/3pid/add (vector-im/riot-ios#2744).
* MXHTTPOperation: Make urlResponseFromError return the url response in case of MXError.
* MXHTTPOperation: Fix a crash in `-mutateTo:` method when operation parameter is nil.
* VoIP: Fix regression when using a TURN server (vector-im/riot-ios#2796).

Changes in Matrix iOS SDK in 0.14.0 (2019-10-11)
===============================================
Expand Down
9 changes: 5 additions & 4 deletions MatrixSDKExtensions/VoIP/Jingle/MXJingleCallStackCall.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,13 @@ - (void)end

- (void)addTURNServerUris:(NSArray<NSString *> *)uris withUsername:(nullable NSString *)username password:(nullable NSString *)password
{
RTCConfiguration *configuration = [[RTCConfiguration alloc] init];
RTCIceServer *ICEServer;

if (uris)
{
RTCIceServer *ICEServer = [[RTCIceServer alloc] initWithURLStrings:uris
username:username
credential:password];
ICEServer = [[RTCIceServer alloc] initWithURLStrings:uris
username:username
credential:password];

if (!ICEServer)
{
Expand All @@ -144,6 +143,8 @@ - (void)addTURNServerUris:(NSArray<NSString *> *)uris withUsername:(nullable NSS
optionalConstraints:@{
@"RtpDataChannels": @"true"
}];

RTCConfiguration *configuration = [[RTCConfiguration alloc] init];
if (ICEServer)
{
configuration.iceServers = @[ICEServer];
Expand Down

0 comments on commit 85f0dda

Please sign in to comment.