Log network state when failing to register proxy config
This commit is contained in:
parent
5ddc65371c
commit
57148290d1
1 changed files with 19 additions and 2 deletions
|
@ -1104,8 +1104,25 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
|
||||||
Log.i("[Manager] New registration state [" + state + "]");
|
Log.i("[Manager] New registration state [" + state + "]");
|
||||||
|
|
||||||
if (state == RegistrationState.Failed) {
|
if (state == RegistrationState.Failed) {
|
||||||
boolean isIdle = Compatibility.isAppIdleMode(mServiceContext);
|
ConnectivityManager connectivityManager =
|
||||||
Log.w("[Manager] PowerManager isIdleMode returned " + isIdle);
|
(ConnectivityManager)
|
||||||
|
mServiceContext.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||||
|
|
||||||
|
NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
|
||||||
|
Log.i("[Manager] Active network type: " + activeNetworkInfo.getTypeName());
|
||||||
|
if (activeNetworkInfo.isAvailable() && activeNetworkInfo.isConnected()) {
|
||||||
|
Log.i("[Manager] Active network is available");
|
||||||
|
}
|
||||||
|
Log.i(
|
||||||
|
"[Manager] Active network reason and extra info: "
|
||||||
|
+ activeNetworkInfo.getReason()
|
||||||
|
+ " / "
|
||||||
|
+ activeNetworkInfo.getExtraInfo());
|
||||||
|
Log.i(
|
||||||
|
"[Manager] Active network state "
|
||||||
|
+ activeNetworkInfo.getState()
|
||||||
|
+ " / "
|
||||||
|
+ activeNetworkInfo.getDetailedState());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue