I am creating an Android application which uses Linphone to enable Voip calls.
When the connection is lost, I'm attempting to reconnect to the Sip server like this:
@Override
public void reregister()
{
handler.post(new Runnable()
{
@Override
public void run()
{
linphoneCore.getDefaultProxyConfig().edit();
linphoneCore.getDefaultProxyConfig().enableRegister(true);
linphoneCore.getDefaultProxyConfig().done();
}
});
}
The problem is that many times when using it, the onRegisterFailed, onRegisterSucceeded and even onRegisterProcessing are not getting called, even though the internet connection is fine.
Is the way I'm trying to reregister correct?