Skip to content

Commit

Permalink
DEBUG: multicalls
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Oct 5, 2023
1 parent eb45ebf commit c958aa4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Monal/Classes/MLVoIPProcessor.m
Original file line number Diff line number Diff line change
Expand Up @@ -434,12 +434,15 @@ -(void) initWebRTCForPendingCall:(MLCall*) call

-(void) createWebRTCClientForCall:(MLCall*) call usingICEServers:(NSArray<RTCIceServer*>*) iceServers
{
BOOL forceRelay = ![[HelperTools defaultsDB] boolForKey:@"webrtcAllowP2P"];
DDLogInfo(@"Initializing webrtc with forceRelay=%@ using ice servers: %@", bool2str(forceRelay), iceServers);
MLAssert(call.webRTCClient == nil, @"Call does already have a webrtc client object!", (@{@"old_client": call.webRTCClient}));
WebRTCClient* webRTCClient = [[WebRTCClient alloc] initWithIceServers:iceServers audioOnly:call.callType==MLCallTypeAudio forceRelay:forceRelay];
call.webRTCClient = webRTCClient;
webRTCClient.delegate = call;
if([self pendingCallsCount] <= 1)
{
BOOL forceRelay = ![[HelperTools defaultsDB] boolForKey:@"webrtcAllowP2P"];
DDLogInfo(@"Initializing webrtc with forceRelay=%@ using ice servers: %@", bool2str(forceRelay), iceServers);
MLAssert(call.webRTCClient == nil, @"Call does already have a webrtc client object!", (@{@"old_client": call.webRTCClient}));
WebRTCClient* webRTCClient = [[WebRTCClient alloc] initWithIceServers:iceServers audioOnly:call.callType==MLCallTypeAudio forceRelay:forceRelay];
call.webRTCClient = webRTCClient;
webRTCClient.delegate = call;
}
}

-(void) handleIncomingJMIStanza:(NSNotification*) notification
Expand Down

0 comments on commit c958aa4

Please sign in to comment.