Broadcasting with WebRTC not working

Radu

New Member
I have set up the webcallserver according to the docs, I have 2 java processes running and I'm watching the logs from /logs/flashphoner_manager.log and /logs/server_logs/flashphoner.log and they all look fine.

I've set up a cert for port 8443 and I'm trying to publish from the Manager dashboard.
However it hangs here, with no callbacks:
Create new session with url wss://[HOST]:8443/cf588f15

Watching the websocket traffic I see an initial "data" being sent from the client and ping-pongs every 5 secs so the websocket conn works.

upload_2017-12-5_14-43-41.png

The server log says only:
13:44:21,946 INFO WSServerHandler - WSS-pool-8-thread-1 Orgign: https://[HOST]

and the SESSION_STATUS.ESTABLISHED event is never fired.
Any idea what I'm doing wrong?
 

Radu

New Member
I think it has to do with failing to connect to the REST api:

WARN ManagerApiConnection - API-ASYNC-pool-21-thread-16 Failed to get object from REST with exception:java.rmi.ConnectException: Connection refused to host: [different ip than the server]; nested exception is: ...

How can I configure the REST API hostname/ip?
 

Radu

New Member
14:07:39,858 INFO WSClient - API-ASYNC-pool-21-thread-17 Close connection for channel [id: 0x22f9c8fd, /109.96.137.180:61772 => /[SERVER_IP]:8443] with status code: 1000 ; reason: Disconnected by error on REST method /connect
 

Max

Administrator
Staff member
Hello,

Please confirm that
1. port 8443 is available
Code:
telnet yourdomain.com 8443
and is being listened by WCS
Code:
netstat -nlp | grep java
2. server hostname is correctly resolved to its IP address in /etc/hosts
Code:
hostname
 

Radu

New Member
Confirmed all. Again, the websocket does connect. I'm almost sure it's the rest api calling the wrong host somehow and timing out.
Where can I adjust/disable alltogether the REST API?
 

Max

Administrator
Staff member
Please provide ssh access. We will check. Looks like something was misconfigured.

If you can't provide ssh, please provide
1.
Code:
hostname
2.
Code:
cat /etc/hosts
3.
Code:
ifconfig
4.
Code:
netstat -nlp | grep java
5.
Code:
WCS_HOME/logs/flashphoner_manager.log
You can provide ssh access by email logs@flashphoner.com
 

Radu

New Member
Ok, I solved it by setting the proper public hostname here and it's now working! Thank you for your quick response

-Djava.rmi.server.hostname=rtc.******.com
 
Top