Restcomm Cloud throwing ERR_CONNECTION_TIMED_OUT when connecting via WSS://mydomain.com:5083/

↘锁芯ラ 提交于 2019-12-11 15:17:12

问题


I have created my domain (XYZ.restcomm.com) on https://cloud.restcomm.com and i have created some Accounts and created RVD App and created short demos too. Now i am creating a Node JS based Application to open the WSS connection to my restcomm cloud instance by using https://github.com/RestComm/restcomm-web-sdk. And the code i am in my HTML Page is as follows

I have ensured that i am able to access my restcomm cloud domain "XYZ.restcomm.com" and i created the account with user id "guest" and i am able to login to the WebRTC demo hosted on restcomm cloud too.

Also i have tried using the port 5083 and 8443 (just to check) but result is same and i am getting the same error...

Also At present i am running my Application on my personal laptop working with my Home Wifi

Any help would be appreciated, Thanks in advance

`function initRestComm() { var agentVid = document.getElementById("agentVideo"); var custVid = document.getElementById("customerVideo");

var setupParams = {
        'debug': true,
        'username': 'guest',
        'password': '#######',
        // If you want to register to a local Restcomm Connect instance running at localhost and you want to use unencrypted signaling you need to provide those as well and use a provisioned client as a name (like bob or alice)
        'registrar': 'wss://XXX.restcomm.com:5083',
        'domain': 'XXX.restcomm.com'
};

         RestCommClient.Device.setup(setupParams);

        RestCommClient.Device.ready(function(device) {
          alert("Ready");
        });

        RestCommClient.Device.error(function(error) {
              alert("Error: " + error.message);
           });

       RestCommClient.Device.connect(function(connection) {
               alert("Successfully established call");
      });
     }`

But the above codes is throws the following error

jain-sip.js:25448 WebSocket connection to 'wss://ias.restcomm.com:5083/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT WSMessageChannel.createWebSocket @ jain-sip.js:25448

来源:https://stackoverflow.com/questions/55866096/restcomm-cloud-throwing-err-connection-timed-out-when-connecting-via-wss-mydom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!