[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Linphone over TLS problem: SSL ERROR ZERO RETU

Subject: Re: [Linphone-developers] Linphone over TLS problem: SSL ERROR ZERO RETURN - SHUTDOWN
Date: Thu, 5 Jul 2012 09:13:29 +0200

Well, I finally get rid of this one on iPhone...

By default, opensips has a tcp_connection_lifetime=120seg, so the server was dropping the connection after (more and less... ¿?) this time. I've enabled the tcp_persistent_flag in opensips, what sets tcp connection lifetime to the same value that session expiration time set on registry (600seg).

So, once this opensips tcp lifetime and Liphone keepalive frecuency are synchronized (600seg both), I do not receive that SSL ERROR ZERO RETURN - SHUTDOWN message and the connection isn't closed, BUT ONLY FOR IPHONE... :-(

For android, the problem persists 'cause for some reason, the keep alive mechanism within linphone launch the re-register, but looks like this register refresh is not refreshing the session, so the connection keeps being closed after 600 seg... 

I'm quite surprised 'cause this issue afects overall to linphone core library, that's common on both iPhone and Android... maybe a problem with the version (1.2.2 on Android, 1.1.2 on iPhone)...?

Thanks and regards,

2012/6/25 IVAN FERNANDEZ <address@hidden>

I've got news about this one...

I've created a linphone account to test my clients against and with the clients registered wit this account the problem disappears...!!

Looks clear now that the problem is in the server (OpenSIPS)... Anyone has got similar problem with the TLS connection between Linphone and OpenSIPS?

Thanks in advance...


2012/6/21 IVAN FERNANDEZ <address@hidden>

I'm testing both versions of Linphone, Android and iPhone (Linphone 1.1.2 on iPhone 4 iOS 5.1.1 and Linphone 1.2.2 on Android 4.0.2) with TLS transport enabled.

Registering both clients against OpenSIPS server works, and the clients remains connected for a while, but, eventually (about 3 minutes), the TLS connection becomes closed suddently with the following message on the console:


2012-06-21 13:40:15.277 AlisysPhone[3675:590b] keep alive: 178

2012-06-21 13:40:15.285 AlisysPhone[3675:590b] eXosip: Reseting timer to 10s before waking up!

2012-06-21 13:40:15.290 AlisysPhone[3675:590b] SSL ERROR ZERO RETURN - SHUTDOWN

2012-06-21 13:40:15.295 AlisysPhone[3675:590b] TLS closed  

On the opensips console doesn't shows any associated message to this shutdown, so I' suspect that the problem is on the client.

Despite of that, cause background mode is enabled on the clients, the linphone's keepalive mechanism is able to "wake up" and re-register the client on the server, but this only can be done with a frecuency of 600 seconds or more (apple's limitation...) 

Could be the SSL session timeout causing the problem? Is there a way to trace the SSL session data from linphone core? 

I've been methods like SSL_SESSION_set_timeout() on ssl.h file that could be the solution but I don't know how invocate them...

Any clues?

Thanks in advanced...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]