mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 07:59:20 +00:00
Few more fixes for the tester
This commit is contained in:
parent
c74da6e6d0
commit
ac54014751
6 changed files with 8 additions and 53 deletions
|
|
@ -1,5 +1,5 @@
|
|||
EXTRA_DIST= empty_rc laure_rc marie_early_rc marie_no_sdp_rc marie_rc multi_account_lrc pauline_alt_rc \
|
||||
marie_remote_rc pauline_remote_rc marie_remote_404_rc marie_remote_invalid_rc \
|
||||
marie_remote_rc marie_remote_https_rc marie_remote_404_rc marie_remote_invalid_rc \
|
||||
pauline_rc pauline_wild_rc pauline_tcp_rc tester_hosts sounds images certificates
|
||||
|
||||
|
||||
|
|
|
|||
2
tester/marie_remote_https_rc
Normal file
2
tester/marie_remote_https_rc
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[misc]
|
||||
config-uri=https://smtp.linphone.org/marie_xml
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
[misc]
|
||||
config-uri=https://smtp.linphone.org/pauline_xml
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<config xmlns="http://www.linphone.org/xsds/lpconfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.linphone.org/xsds/lpconfig.xsd lpconfig.xsd">
|
||||
<section name="sip">
|
||||
<entry name="sip_port">-1</entry>
|
||||
<entry name="sip_tcp_port">-1</entry>
|
||||
<entry name="sip_tls_port">-1</entry>
|
||||
<entry name="default_proxy">0</entry>
|
||||
<entry name="ping_with_options">0</entry>
|
||||
<entry name="register_only_when_network_is_up">0</entry>
|
||||
<entry name="composing_idle_timeout">1</entry>
|
||||
</section>
|
||||
<section name="auth_info_0">
|
||||
<entry name="username">pauline</entry>
|
||||
<entry name="userid">pauline</entry>
|
||||
<entry name="passwd">secret</entry>
|
||||
<entry name="realm">sip.example.org</entry>
|
||||
</section>
|
||||
<section name="proxy_0">
|
||||
<entry name="reg_proxy">sip2.linphone.org;transport=tls</entry>
|
||||
<entry name="reg_route">sip2.linphone.org;transport=tls</entry>
|
||||
<entry name="reg_identity">sip:pauline@sip.example.org</entry>
|
||||
<entry name="reg_expires">3600</entry>
|
||||
<entry name="reg_sendregister">1</entry>
|
||||
<entry name="publish">0</entry>
|
||||
<entry name="dial_escape_plus">0</entry>
|
||||
</section>
|
||||
<section name="rtp">
|
||||
<entry name="audio_rtp_port">8090</entry>
|
||||
<entry name="video_rtp_port">9092</entry>
|
||||
</section>
|
||||
<section name="video">
|
||||
<entry name="display">0</entry>
|
||||
<entry name="capture">0</entry>
|
||||
<entry name="show_local">0</entry>
|
||||
<entry name="size">vga</entry>
|
||||
<entry name="enabled">0</entry>
|
||||
<entry name="self_view">0</entry>
|
||||
<entry name="automatically_initiate">0</entry>
|
||||
<entry name="automatically_accept">0</entry>
|
||||
<entry name="device">StaticImage: Static picture</entry>
|
||||
</section>
|
||||
<section name="sound">
|
||||
<entry name="echocancellation">0 #to not overload cpu in case of VG</entry>
|
||||
</section>
|
||||
</config>
|
||||
|
|
@ -49,12 +49,13 @@ static void remote_provisioning_http(void) {
|
|||
}
|
||||
|
||||
static void remote_provisioning_https(void) {
|
||||
LinphoneCoreManager* pauline = linphone_core_manager_new2("pauline_remote_rc", FALSE);
|
||||
LinphoneCoreManager* marie = linphone_core_manager_new2("marie_remote_https_rc", FALSE);
|
||||
char rootcapath[256] = {0};
|
||||
snprintf(rootcapath, sizeof(rootcapath), "%s/rootca.pem", liblinphone_tester_file_prefix);
|
||||
linphone_core_set_root_ca(pauline->lc, rootcapath);
|
||||
CU_ASSERT_TRUE(wait_for(pauline->lc,NULL,&pauline->stat.number_of_LinphoneConfiguringSuccessful,1));
|
||||
linphone_core_manager_destroy(pauline);
|
||||
linphone_core_set_root_ca(marie->lc, rootcapath);
|
||||
CU_ASSERT_TRUE(wait_for(marie->lc,NULL,&marie->stat.number_of_LinphoneConfiguringSuccessful,1));
|
||||
CU_ASSERT_TRUE(wait_for(marie->lc,NULL,&marie->stat.number_of_LinphoneRegistrationOk,1));
|
||||
linphone_core_manager_destroy(marie);
|
||||
}
|
||||
|
||||
static void remote_provisioning_not_found(void) {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ static void core_sip_transport_test(void) {
|
|||
linphone_core_get_sip_transports(lc,&tr);
|
||||
CU_ASSERT_EQUAL(tr.udp_port,5060); /*default config*/
|
||||
CU_ASSERT_EQUAL(tr.tcp_port,5060); /*default config*/
|
||||
CU_ASSERT_EQUAL(tr.tls_port,LC_SIP_TRANSPORT_RANDOM); /*default config*/
|
||||
|
||||
tr.udp_port=LC_SIP_TRANSPORT_RANDOM;
|
||||
tr.tcp_port=LC_SIP_TRANSPORT_RANDOM;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue