mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
LinphoneManager: check call params are valid before using them
This commit is contained in:
parent
14a20a240b
commit
0912af3cc9
1 changed files with 5 additions and 0 deletions
|
|
@ -1880,6 +1880,11 @@ static void audioRouteChangeListenerCallback(void *inUserData, // 1
|
|||
|
||||
- (void)acceptCall:(LinphoneCall *)call evenWithVideo:(BOOL)video {
|
||||
LinphoneCallParams *lcallParams = linphone_core_create_call_params(theLinphoneCore, call);
|
||||
if (!lcallParams) {
|
||||
LOGW(@"Could not create call parameters for %p, call has probably already ended.", call);
|
||||
return;
|
||||
}
|
||||
|
||||
if ([self lpConfigBoolForKey:@"edge_opt_preference"]) {
|
||||
bool low_bandwidth = self.network == network_2g;
|
||||
if (low_bandwidth) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue