add ice option to enable backward compatibility with previous version of ice

This commit is contained in:
Jehan Monnier 2014-12-27 19:45:19 +01:00
parent d7437ef1f5
commit 7fe891b4ae
2 changed files with 5 additions and 1 deletions

View file

@ -737,6 +737,8 @@ LinphoneCall * linphone_call_new_outgoing(struct _LinphoneCore *lc, LinphoneAddr
if (linphone_core_get_firewall_policy(call->core) == LinphonePolicyUseIce) {
call->ice_session = ice_session_new();
/*for backward compatibility purposes, shall be enabled by default in futur*/
ice_session_enable_message_integrity_check(call->ice_session,lp_config_get_int(lc->config,"net","ice_session_enable_message_integrity_check",0));
ice_session_set_role(call->ice_session, IR_Controlling);
}
if (linphone_core_get_firewall_policy(call->core) == LinphonePolicyUseStun) {
@ -846,6 +848,8 @@ LinphoneCall * linphone_call_new_incoming(LinphoneCore *lc, LinphoneAddress *fro
if (fpol==LinphonePolicyUseIce){
if (md){
call->ice_session = ice_session_new();
/*for backward compatibility purposes, shall be enabled by default in futur*/
ice_session_enable_message_integrity_check(call->ice_session,lp_config_get_int(lc->config,"net","ice_session_enable_message_integrity_check",0));
ice_session_set_role(call->ice_session, IR_Controlled);
}else{
fpol=LinphonePolicyNoFirewall;

@ -1 +1 @@
Subproject commit 87cf71d765ae035ad5a1b6bdcaf2970410459c2d
Subproject commit 08ed3f8a65ad830baa1023e5c0d3ec9e5421ef32