fix crash with ICE in case of no incoming SDP

This commit is contained in:
Simon Morlat 2014-05-15 19:13:51 +02:00
parent 7eefcf399f
commit 44bafb091a
2 changed files with 1 additions and 3 deletions

View file

@ -637,7 +637,7 @@ LinphoneCall * linphone_call_new_incoming(LinphoneCore *lc, LinphoneAddress *fro
linphone_call_init_media_streams(call);
switch (linphone_core_get_firewall_policy(call->core)) {
case LinphonePolicyUseIce:
linphone_call_prepare_ice(call,TRUE);
linphone_call_prepare_ice(call,md!=NULL);
break;
case LinphonePolicyUseStun:
call->ping_time=linphone_core_run_stun_tests(call->core,call);

View file

@ -634,7 +634,6 @@ static void call_with_ice(void){
}
static void call_with_ice_no_sdp(void){
#ifdef 0
LinphoneCoreManager* marie = linphone_core_manager_new( "marie_rc");
LinphoneCoreManager* pauline = linphone_core_manager_new( "pauline_rc");
@ -643,7 +642,6 @@ static void call_with_ice_no_sdp(void){
linphone_core_manager_destroy(marie);
linphone_core_manager_destroy(pauline);
#endif
}
static void call_with_ice_random_ports(void){