mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Fixing regid on register test
This commit is contained in:
parent
9f33a1671e
commit
0eda4c72a4
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue