mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
turn off symmetric RTP by default. Indeed, this creates problem if a late STUN packet arrives from a stun server after the audio or video stream are started, because all the flow will be directed to the stun server.
This commit is contained in:
parent
0a09b7c987
commit
f37e3f5345
4 changed files with 9 additions and 4 deletions
|
|
@ -1589,7 +1589,10 @@ bool_t linphone_core_file_format_supported(LinphoneCore *lc, const char *fmt){
|
|||
}
|
||||
|
||||
bool_t linphone_core_symmetric_rtp_enabled(LinphoneCore*lc){
|
||||
return lp_config_get_int(lc->config,"rtp","symmetric",1);
|
||||
/* Clients don't really need rtp symmetric, unless they have a public IP address and want
|
||||
* to interoperate with natted client. This case is not frequent with client apps.
|
||||
*/
|
||||
return lp_config_get_int(lc->config,"rtp","symmetric",0);
|
||||
}
|
||||
|
||||
int linphone_core_set_network_simulator_params(LinphoneCore *lc, const OrtpNetworkSimulatorParams *params){
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit f18f59c88c58d6c5c7408af2213474473f87548d
|
||||
Subproject commit 1c8e070314e70813bf3a80c68ed08c6e4d4a3f56
|
||||
2
oRTP
2
oRTP
|
|
@ -1 +1 @@
|
|||
Subproject commit 0136216d99c012b03698bc2984a2c2f047ce7713
|
||||
Subproject commit 945ceb0b3ac0b6c87da8679ee6dbc2bedafdfabe
|
||||
|
|
@ -1255,6 +1255,9 @@ static void accept_call_in_send_only_base(LinphoneCoreManager* pauline, Linphone
|
|||
linphone_core_set_video_policy(marie->lc,&pol);
|
||||
linphone_core_set_video_device(marie->lc,liblinphone_tester_mire_id);
|
||||
|
||||
/*The send-only client shall set rtp symmetric in absence of media relay for this test.*/
|
||||
lp_config_set_int(marie->lc->config,"rtp","symmetric",1);
|
||||
|
||||
linphone_call_set_next_video_frame_decoded_callback(linphone_core_invite_address(pauline->lc,marie->identity)
|
||||
,linphone_call_iframe_decoded_cb
|
||||
,pauline->lc);
|
||||
|
|
@ -1303,7 +1306,6 @@ static void accept_call_in_send_base(bool_t caller_has_ice) {
|
|||
|
||||
accept_call_in_send_only_base(pauline,marie,lcs);
|
||||
|
||||
|
||||
end_call(marie,pauline);
|
||||
bctbx_list_free(lcs);
|
||||
linphone_core_manager_destroy(marie);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue