mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 03:58:08 +00:00
Resolve stun server after the network reachable callback
This commit is contained in:
parent
583b0ed767
commit
83ff452587
1 changed files with 3 additions and 2 deletions
|
|
@ -2754,6 +2754,9 @@ void linphone_core_iterate(LinphoneCore *lc){
|
|||
if (lc->network_reachable_to_be_notified) {
|
||||
lc->network_reachable_to_be_notified=FALSE;
|
||||
linphone_core_notify_network_reachable(lc,lc->sip_network_reachable);
|
||||
if (lc->sip_network_reachable) {
|
||||
linphone_core_resolve_stun_server(lc);
|
||||
}
|
||||
}
|
||||
if (linphone_core_get_global_state(lc) == LinphoneGlobalStartup) {
|
||||
if (sal_get_root_ca(lc->sal)) {
|
||||
|
|
@ -5598,8 +5601,6 @@ static void set_sip_network_reachable(LinphoneCore* lc,bool_t is_sip_reachable,
|
|||
sal_reset_transports(lc->sal);
|
||||
/*mark all calls as broken, so that they can be either dropped immediately or restaured when network will be back*/
|
||||
bctbx_list_for_each(lc->calls, (MSIterateFunc) linphone_call_set_broken);
|
||||
}else{
|
||||
linphone_core_resolve_stun_server(lc);
|
||||
}
|
||||
#ifdef BUILD_UPNP
|
||||
if(lc->upnp == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue