mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 17:29:20 +00:00
Removed specific rc files for audio bypass
This commit is contained in:
parent
eafef5b618
commit
471f92ef77
3 changed files with 5 additions and 134 deletions
|
|
@ -428,12 +428,12 @@ static void only_enable_payload(LinphoneCore *lc, const char *mime, int rate, in
|
|||
}
|
||||
|
||||
static void audio_bypass(void) {
|
||||
LinphoneCoreManager *marie = linphone_core_manager_new("marie_rc_audio_bypass");
|
||||
LinphoneCoreManager *marie = linphone_core_manager_new("marie_rc");
|
||||
LinphoneCore *marie_lc = marie->lc;
|
||||
MSFactory *marie_factory = linphone_core_get_ms_factory(marie_lc);
|
||||
MSSndCardManager *marie_sndcard_manager = ms_factory_get_snd_card_manager(marie_factory);
|
||||
|
||||
LinphoneCoreManager *pauline = linphone_core_manager_new("pauline_rc_audio_bypass");
|
||||
LinphoneCoreManager *pauline = linphone_core_manager_new("pauline_rc");
|
||||
LinphoneCore *pauline_lc = pauline->lc;
|
||||
MSFactory *pauline_factory = linphone_core_get_ms_factory(pauline_lc);
|
||||
MSSndCardManager *pauline_sndcard_manager = ms_factory_get_snd_card_manager(pauline_factory);
|
||||
|
|
@ -444,6 +444,9 @@ static void audio_bypass(void) {
|
|||
double similar=1;
|
||||
const double threshold = 0.85;
|
||||
|
||||
lp_config_set_string(marie_lc->config, "sound", "features", "None");
|
||||
lp_config_set_string(pauline_lc->config, "sound", "features", "None");
|
||||
|
||||
/*make sure the record file doesn't already exists, otherwise this test will append new samples to it*/
|
||||
unlink(recordpath);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,67 +0,0 @@
|
|||
[sip]
|
||||
sip_port=-1
|
||||
sip_tcp_port=-1
|
||||
sip_tls_port=-1
|
||||
default_proxy=0
|
||||
ping_with_options=0
|
||||
composing_idle_timeout=1
|
||||
store_ha1_passwd=0 #used for sipp
|
||||
|
||||
[auth_info_0]
|
||||
username=marie
|
||||
userid=marie
|
||||
passwd=secret
|
||||
realm=sip.example.org
|
||||
|
||||
[proxy_0]
|
||||
reg_proxy=sip.example.org;transport=tcp
|
||||
reg_route=sip.example.org;transport=tcp;lr
|
||||
reg_identity="Super Marie" <sip:marie@sip.example.org>
|
||||
reg_expires=3600
|
||||
reg_sendregister=1
|
||||
publish=0
|
||||
dial_escape_plus=0
|
||||
|
||||
[friend_0]
|
||||
url="Paupoche" <sip:pauline@sip.example.org>
|
||||
pol=accept
|
||||
subscribe=0
|
||||
|
||||
[rtp]
|
||||
audio_rtp_port=18070-28000
|
||||
video_rtp_port=28070-38000
|
||||
text_rtp_port=39000-49000
|
||||
|
||||
[video]
|
||||
display=0
|
||||
capture=0
|
||||
show_local=0
|
||||
size=qcif
|
||||
enabled=0
|
||||
self_view=0
|
||||
automatically_initiate=0
|
||||
automatically_accept=0
|
||||
device=StaticImage: Static picture
|
||||
|
||||
[sound]
|
||||
echocancellation=0 #to not overload cpu in case of VG
|
||||
features=NONE
|
||||
|
||||
[net]
|
||||
dns_srv_enabled=0 #no srv needed in general
|
||||
stun_server=stun.linphone.org
|
||||
|
||||
[misc]
|
||||
add_missing_audio_codecs=1
|
||||
|
||||
[audio_codec_0]
|
||||
mime=L16
|
||||
rate=44100
|
||||
channels=2
|
||||
enabled=0
|
||||
|
||||
[audio_codec_1]
|
||||
mime=L16
|
||||
rate=44100
|
||||
channels=1
|
||||
enabled=1
|
||||
|
|
@ -1,65 +0,0 @@
|
|||
[sip]
|
||||
sip_port=-1
|
||||
sip_tcp_port=-1
|
||||
sip_tls_port=-1
|
||||
default_proxy=0
|
||||
ping_with_options=0
|
||||
composing_idle_timeout=1
|
||||
|
||||
[auth_info_0]
|
||||
username=pauline
|
||||
userid=pauline
|
||||
passwd=secret
|
||||
realm=sip.example.org
|
||||
|
||||
[proxy_0]
|
||||
reg_proxy=sip2.linphone.org;transport=tls
|
||||
reg_route=sip2.linphone.org;transport=tls
|
||||
reg_identity=sip:pauline@sip.example.org
|
||||
reg_expires=3600
|
||||
reg_sendregister=1
|
||||
publish=0
|
||||
dial_escape_plus=0
|
||||
|
||||
#[friend_0]
|
||||
#url="Mariette" <sip:marie@sip.example.org>
|
||||
#pol=accept
|
||||
#subscribe=0
|
||||
|
||||
[rtp]
|
||||
audio_rtp_port=18070-28000
|
||||
video_rtp_port=39072-49000
|
||||
|
||||
[video]
|
||||
display=0
|
||||
capture=0
|
||||
show_local=0
|
||||
size=qcif
|
||||
enabled=0
|
||||
self_view=0
|
||||
automatically_initiate=0
|
||||
automatically_accept=0
|
||||
device=StaticImage: Static picture
|
||||
|
||||
[sound]
|
||||
echocancellation=0 #to not overload cpu in case of VG
|
||||
features=NONE
|
||||
|
||||
[net]
|
||||
dns_srv_enabled=0 #no srv needed in general
|
||||
stun_server=stun.linphone.org
|
||||
|
||||
[misc]
|
||||
add_missing_audio_codecs=1
|
||||
|
||||
[audio_codec_0]
|
||||
mime=L16
|
||||
rate=44100
|
||||
channels=2
|
||||
enabled=0
|
||||
|
||||
[audio_codec_1]
|
||||
mime=L16
|
||||
rate=44100
|
||||
channels=1
|
||||
enabled=1
|
||||
Loading…
Add table
Reference in a new issue