Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
707566b0
Commit
707566b0
authored
Mar 07, 2019
by
Sylvain Berfini
🐮
Browse files
Revert changes on how we restart core in tester
parent
58ccb98f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
22 deletions
+1
-22
tester/tester.c
tester/tester.c
+1
-22
No files found.
tester/tester.c
View file @
707566b0
...
...
@@ -535,29 +535,8 @@ void linphone_core_manager_reinit(LinphoneCoreManager *mgr) {
bctbx_free
(
uuid
);
}
static
void
core_restart_global_state_changed
(
LinphoneCore
*
lc
,
LinphoneGlobalState
state
,
const
char
*
message
)
{
if
(
state
==
LinphoneGlobalReady
)
{
LinphoneCoreCbs
*
cbs
=
linphone_core_get_current_callbacks
(
lc
);
LinphoneCoreManager
*
mgr
=
(
LinphoneCoreManager
*
)
linphone_core_cbs_get_user_data
(
cbs
);
configure_lc
(
lc
,
bc_tester_get_resource_dir_prefix
(),
mgr
);
}
}
void
linphone_core_manager_restart
(
LinphoneCoreManager
*
mgr
,
bool_t
check_for_proxies
)
{
//linphone_core_manager_reinit(mgr);
if
(
mgr
->
lc
)
{
linphone_core_stop
(
mgr
->
lc
);
// This listener will wait for the core to be ready again and then re-apply the tester specifics like DNS hosts etc...
LinphoneCoreCbs
*
cbs
=
linphone_factory_create_core_cbs
(
linphone_factory_get
());
linphone_core_cbs_set_user_data
(
cbs
,
mgr
);
linphone_core_cbs_set_global_state_changed
(
cbs
,
core_restart_global_state_changed
);
linphone_core_add_callbacks
(
mgr
->
lc
,
cbs
);
linphone_core_cbs_unref
(
cbs
);
}
else
{
linphone_core_manager_configure
(
mgr
);
}
reset_counters
(
&
mgr
->
stat
);
linphone_core_manager_reinit
(
mgr
);
linphone_core_manager_start
(
mgr
,
check_for_proxies
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment