mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 19:48:07 +00:00
Improved default values test
This commit is contained in:
parent
7d64dedf12
commit
4e9d8a1e97
1 changed files with 4 additions and 2 deletions
|
|
@ -77,12 +77,14 @@ static void remote_provisioning_invalid(void) {
|
|||
}
|
||||
|
||||
static void remote_provisioning_default_values(void) {
|
||||
LinphoneProxyConfig *lpc;
|
||||
LinphoneCoreManager* marie = linphone_core_manager_new2("marie_remote_default_values_rc", FALSE);
|
||||
CU_ASSERT_TRUE(wait_for(marie->lc,NULL,&marie->stat.number_of_LinphoneConfiguringSuccessful,1));
|
||||
LinphoneProxyConfig *lpc = linphone_core_create_proxy_config(marie->lc);
|
||||
CU_ASSERT_TRUE(lpc->reg_sendregister == 1);
|
||||
lpc = linphone_core_create_proxy_config(marie->lc);
|
||||
CU_ASSERT_TRUE(lpc->reg_sendregister == TRUE);
|
||||
CU_ASSERT_TRUE(lpc->expires == 604800);
|
||||
CU_ASSERT_TRUE(strcmp(lpc->reg_proxy, "<sip:sip.linphone.org:5223;transport=tls>") == 0);
|
||||
CU_ASSERT_TRUE(strcmp(lpc->reg_route, "<sip:sip.linphone.org:5223;transport=tls>") == 0);
|
||||
CU_ASSERT_TRUE(strcmp(lpc->reg_identity, "sip:?@sip.linphone.org") == 0);
|
||||
linphone_core_manager_destroy(marie);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue