diff --git a/tester/accountmanager.c b/tester/accountmanager.c index 93c250135..80bc7942e 100644 --- a/tester/accountmanager.c +++ b/tester/accountmanager.c @@ -194,7 +194,9 @@ LinphoneAddress *account_manager_check_account(AccountManager *m, LinphoneProxyC create_account=TRUE; m->accounts=ms_list_append(m->accounts,account); } - tmp=linphone_address_as_string(account->modified_identity); + /*modify the username of the identity of the proxy config*/ + linphone_address_set_username(id_addr, linphone_address_get_username(account->modified_identity)); + tmp=linphone_address_as_string(id_addr); linphone_proxy_config_set_identity(cfg,tmp); ms_free(tmp); diff --git a/tester/flexisip_tester.c b/tester/flexisip_tester.c index dc0250eb8..0f8d5457c 100644 --- a/tester/flexisip_tester.c +++ b/tester/flexisip_tester.c @@ -680,6 +680,22 @@ static void call_with_ipv6(void) { CU_ASSERT_TRUE(call(marie,pauline)); pauline_call=linphone_core_get_current_call(pauline->lc); CU_ASSERT_PTR_NOT_NULL(pauline_call); + if (pauline_call){ + /*check that the remote contact is IPv6*/ + const char *contact=linphone_call_get_remote_contact(pauline_call); + LinphoneAddress *ct_addr; + + CU_ASSERT_PTR_NOT_NULL(contact); + if (contact){ + ct_addr=linphone_address_new(contact); + CU_ASSERT_PTR_NOT_NULL(ct_addr); + if (ct_addr){ + CU_ASSERT_TRUE(linphone_address_get_domain(ct_addr)[0]=='['); + } + linphone_address_destroy(ct_addr); + } + + } liblinphone_tester_check_rtcp(marie,pauline); end_call(marie,pauline);