diff --git a/coreapi/friend.c b/coreapi/friend.c index 90f17106c..5199f5edf 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -246,7 +246,7 @@ MSList* linphone_friend_get_addresses(LinphoneFriend *lf) { vcard = linphone_friend_get_vcard(lf); if (!vcard) { - return NULL; + return lf->uri ? ms_list_append(addresses, lf->uri) : NULL; } sipAddresses = linphone_vcard_get_sip_addresses(vcard); @@ -615,7 +615,7 @@ void linphone_friend_save(LinphoneFriend *fr, LinphoneCore *lc) { void linphone_friend_apply(LinphoneFriend *fr, LinphoneCore *lc) { LinphonePresenceModel *model; - + if (!fr->uri) { ms_warning("No sip url defined."); return; diff --git a/tester/audio_bypass_tester.c b/tester/audio_bypass_tester.c index 617e1640d..a017084ea 100644 --- a/tester/audio_bypass_tester.c +++ b/tester/audio_bypass_tester.c @@ -478,7 +478,7 @@ static void audio_bypass(void) { BC_ASSERT_STRING_EQUAL(linphone_call_params_get_used_audio_codec(linphone_call_get_current_params(linphone_core_get_current_call(marie_lc)))->mime_type, "L16"); - wait_for_until(pauline_lc, marie_lc, NULL, 0, 22000); //hello44100.wav is 22 seconds long + wait_for_until(pauline_lc, marie_lc, NULL, 0, 4000); //hello44100.wav is 4 seconds long end_call(marie, pauline); BC_ASSERT_EQUAL(ms_audio_diff(hellopath, recordpath, &similar, &audio_cmp_params, NULL, NULL), 0, int, "%d"); diff --git a/tester/sounds/hello44100.wav b/tester/sounds/hello44100.wav index f478f856d..0e01d8d23 100644 Binary files a/tester/sounds/hello44100.wav and b/tester/sounds/hello44100.wav differ