I'm using the code explained here (https://developer.android.com/guide/topics/connectivity/sip.html) and my test SIP server is OfficeSIP
The connection is ok, but whe i try to make disconnection with this lines code
public void closeLocalProfile() {
if (mSipManager == null) {
return;
}
try {
if (mSipProfile != null) {
mSipManager.close(mSipProfile.getUriString());
}
} catch (Exception ee) {
Log.d("WalkieTalkieActivity/onDestroy", "Failed to close local profile.", ee);
}
}
The server seems that doesn't disconnect the account (even if it is no longer reachable).
what am I doing wrong?
Just call the unregister API before to close: