mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 07:59:20 +00:00
Define ICE session role explicitly.
This commit is contained in:
parent
17ea460309
commit
f8f3db359c
1 changed files with 5 additions and 0 deletions
|
|
@ -614,6 +614,11 @@ void linphone_core_gather_ice_candidates(LinphoneCore *lc, LinphoneCall *call)
|
|||
ms_error("Fail to get local ip");
|
||||
return;
|
||||
}
|
||||
if (call->dir == LinphoneCallOutgoing) {
|
||||
ice_session_set_role(call->ice_session, IR_Controlling);
|
||||
} else {
|
||||
ice_session_set_role(call->ice_session, IR_Controlled);
|
||||
}
|
||||
audio_ice_bases[0] = ice_add_local_candidate(call->localdesc->streams[0].ice_check_list, "host", local_addr, call->audio_port, 1, NULL);
|
||||
audio_ice_bases[1] = ice_add_local_candidate(call->localdesc->streams[0].ice_check_list, "host", local_addr, call->audio_port + 1, 2, NULL);
|
||||
if (call->params.has_video) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue