Refresh register if state is failed when activity resumes
This commit is contained in:
parent
b21625995e
commit
80f40f345d
1 changed files with 8 additions and 0 deletions
|
@ -330,6 +330,14 @@ public abstract class MainActivity extends LinphoneGenericActivity
|
|||
displayMissedChats();
|
||||
displayMissedCalls();
|
||||
}
|
||||
|
||||
ProxyConfig proxyConfig = core.getDefaultProxyConfig();
|
||||
if (proxyConfig != null) {
|
||||
if (proxyConfig.getState() == RegistrationState.Failed) {
|
||||
Log.w("[Main Activity] Default proxy config's registration state is failed, refresh registers");
|
||||
core.refreshRegisters();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue