mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Deactivate symmetric RTP when ICE is in use.
This commit is contained in:
parent
6f392caf46
commit
7b5bddf359
1 changed files with 2 additions and 0 deletions
|
|
@ -974,6 +974,7 @@ void linphone_call_init_audio_stream(LinphoneCall *call){
|
|||
}
|
||||
if ((linphone_core_get_firewall_policy(lc) == LinphonePolicyUseIce) && (call->ice_session != NULL)){
|
||||
rtp_session_set_pktinfo(audiostream->session, TRUE);
|
||||
rtp_session_set_symmetric_rtp(audiostream->session, FALSE);
|
||||
audiostream->ice_check_list = ice_session_check_list(call->ice_session, 0);
|
||||
ice_check_list_set_rtp_session(audiostream->ice_check_list, audiostream->session);
|
||||
}
|
||||
|
|
@ -1003,6 +1004,7 @@ void linphone_call_init_video_stream(LinphoneCall *call){
|
|||
}
|
||||
if ((linphone_core_get_firewall_policy(lc) == LinphonePolicyUseIce) && (call->ice_session != NULL) && (ice_session_check_list(call->ice_session, 1))){
|
||||
rtp_session_set_pktinfo(call->videostream->session, TRUE);
|
||||
rtp_session_set_symmetric_rtp(call->videostream->session, FALSE);
|
||||
call->videostream->ice_check_list = ice_session_check_list(call->ice_session, 1);
|
||||
ice_check_list_set_rtp_session(call->videostream->ice_check_list, call->videostream->session);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue