For TURN and STUN server I am using http://code.google.com/p/rfc5766-turn-server/
Wanted to create diagnostics to know whether STUN or TURN server is connected.
It would be great help if anyone can help me
1) How to implement it on the server.
2) How to implement it on the client side (browser).
FYI:
1) How to implement it on the server.
Practical: (Step 1:)
[root@server2 ~]# service turnserver status
turnserver (pid 3765) is running...
[root@server2 ~]# telnet localhost 5766
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
TURN Server
rfc5766-turn-server
Citrix-3.1.2.3 'Arch Lector'
Type '?' for help
> ?
TURN Server
rfc5766-turn-server
Citrix-3.1.2.3 'Arch Lector'
?, h, help - print this text
quit, q, exit, bye - end CLI session
stop, shutdown, halt - shutdown TURN Server
pc - print configuration
tc <param-name> - toggle a configuration parameter
(see pc command output for togglable param names)
cc <param-name> <param-value> - change a configuration parameter
(see pc command output for changeable param names)
ps [username] - print sessions, with optional exact user match
psp usernamestr - print sessions, with partial user string match
pu - print current users
> pc
verbose: OFF
daemon process: ON
stale-nonce: OFF (*)
stun-only: OFF (*)
no-stun: OFF (*)
secure-stun: OFF (*)
do-not-use-config-file: OFF
RFC5780 support: ON
new net engine: OFF
enforce fingerprints: OFF
mobility: OFF (*)
udp-self-balance: OFF
pidfile: /var/run/turnserver.pid
process user ID: 496
process group ID: 492
process dir: /
cipher-list: ALL:eNULL:aNULL:NULL
ec-curve-name: prime256v1
DH-key-length: 1066
cert-file: turn_server_cert.pem
pkey-file: turn_server_pkey.pem
SHA type: SHA1 and SHA256
Listener addr: 127.0.0.1
Listener addr: 192.168.1.12
Listener addr: ::1
no-udp: OFF
no-tcp: OFF
no-dtls: ON
no-tls: ON
listener-port: 3478
tls-listener-port: 5349
alt-listener-port: 0
alt-tls-listener-port: 0
Relay addr: 192.168.1.12
server-relay: OFF (*)
no-udp-relay: OFF (*)
no-tcp-relay: OFF (*)
min-port: 49152
max-port: 65535
no-multicast-peers: OFF (*)
no-loopback-peers: OFF (*)
DB type: file
DB: turnuserdb.conf
Long-term authorization mechanism: OFF
Short-term authorization mechanism: OFF
Anonymous credentials: OFF
REST API: OFF
total-quota: 0 (**)
user-quota: 0 (**)
total-current-allocs: 0
max-bps: 0
cli-max-output-sessions: 256 (**)
(Note 1: params with (*) are togglable)
(Note 2: params with (**) are changeable)
>
2) How to implement it on the client side (browser).
> Open the Browser debug logs and check the logs