Fixing regid on register test

This commit is contained in:
Erwan Croze 2018-01-09 16:55:06 +01:00
parent 9f33a1671e
commit 0eda4c72a4

View file

@ -1246,14 +1246,14 @@ static void multi_devices_register_with_gruu(void) {
linphone_core_add_supported_tag(marie->lc,"gruu");
linphone_core_manager_start(marie,TRUE);
LinphoneProxyConfig *cfg=linphone_core_get_default_proxy_config(marie->lc);
if(cfg) {
const LinphoneAddress *addr = linphone_proxy_config_get_contact(cfg);
BC_ASSERT_PTR_NOT_NULL(addr);
BC_ASSERT_STRING_EQUAL(linphone_address_get_domain(addr),linphone_proxy_config_get_domain(cfg));
BC_ASSERT_TRUE(linphone_address_has_uri_param(addr,"gr"));
}
linphone_core_set_network_reachable(marie->lc,FALSE); /*to make sure first instance is not unregistered*/
linphone_core_manager_destroy(marie);
@ -1268,7 +1268,7 @@ static void multi_devices_register_with_gruu(void) {
BC_ASSERT_STRING_EQUAL(linphone_address_get_domain(addr),linphone_proxy_config_get_domain(cfg));
BC_ASSERT_TRUE(linphone_address_has_uri_param(addr,"gr"));
}
linphone_core_manager_destroy(marie);
}
@ -1280,7 +1280,7 @@ static void register_without_regid(void) {
if(cfg) {
const LinphoneAddress *addr = linphone_proxy_config_get_contact(cfg);
BC_ASSERT_PTR_NOT_NULL(addr);
BC_ASSERT_PTR_NOT_NULL(strstr(linphone_address_as_string_uri_only(addr), "regid"));
BC_ASSERT_PTR_NULL(strstr(linphone_address_as_string_uri_only(addr), "regid"));
}
linphone_core_manager_destroy(marie);
}