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 Websocket connection #778

Closed WolandPL closed 6 years ago

WolandPL commented 6 years ago

How to configure a connection to Restcomm server via Secure Websocket (WSS)?

I'm currently using Restcomm server via websocket and everything is working fine. But when trying to use secure version, I cannot connect from Android to the server. What change should I do in the configuration?

I tried simply setting SIGNALING_SECURE_ENABLED to true and leave anything else unchanged - no connection.

When I try to add "wss:" prefix in front of SIGNALING_DOMAIN I got an exception (SDK doesn't expect any protocol in front of the address).

In your code I found WSS commented out in jainSipClientBind method of JainSipClient. Does it mean WSS is not supported?

atsakiridis commented 6 years ago

@WolandPL by using 'wss' instead of 'tls' in jainSipClientBind you can enable wss for secure signaling, but the problem is that we currently have a regression that is related to introduction of DNS SRV. Seems that DNS SRV doesn't work well with wss. Once we fix #744 you should be able to use wss. I'd suggest monitoring #744.

Hope that helps

Best regards, Antonis