restcomm-android-sdk
restcomm-android-sdk copied to clipboard
Secure connection (TLS) not working
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.
Additional information related to this issue from server side:
- From the trace (attached in zip) it looks like the client does not finish establishing the TLS handshake:
- packet 7 - server (213.32.22.60) replies with 'Server Hello, Certificate, Server Hello Done'
- packet 8 - client acknowledges (ACK)
- packet 9 - client terminates TCP connection (FIN) instead of following up with key exchange (providing own certificate)
- Thus the REGISTER message never reaches RestComm
