RestComm / restcomm-android-sdk

Android Mobile SDK to easily integrate communication features (WebRTC, messaging, presence, voice, video, screensharing) based on RestComm into native Mobile Applications
http://www.restcomm.com/
GNU Affero General Public License v3.0
153 stars 109 forks source link

Secure connection (TLS) not working #851

Open WolandPL opened 6 years ago

WolandPL commented 6 years ago

While TCP connections are working fine, I'm unable to establish TLS one. REGISTER is correctly created and sent, gets to the server, but after server response SDK seems to close the connection without any exception or error information in Android logs.

I'm working with MEDIA_TURN_ENABLED=true and MEDIA_ICE_SERVERS_DISCOVERY_TYPE=ICE_SERVERS_CUSTOM if that matters.

domimod commented 6 years ago

Additional information related to this issue from server side:

  1. packet 7 - server (213.32.22.60) replies with 'Server Hello, Certificate, Server Hello Done'
  2. packet 8 - client acknowledges (ACK)
  3. packet 9 - client terminates TCP connection (FIN) instead of following up with key exchange (providing own certificate)

image

dump-mode-mobileapp-v09or-tls-01-5081.zip