How To Make Voice and Video Calling Website Using NextCloud

Make Voice and Video Calling Website Using NextCloud

Today, We will learn how to make voice and video calling websites using NextCloud on the Ubuntu server. Voice and Video calling website is so simple using NextCloud Server. Everyone can make a video calling website by following our guidelines. You can also convert this website into an android app with android WebView.

Step 1: Install NextCloud Server To Make Voice and Video Calling Website

First of All, Nextcloud Server is most important to make a video calling website. So we need to install the NextCloud server on our website. If you don’t know how to install NextCloud Server. So please visit another tutorial How to install NextCloud on the ubuntu server. You can also install using Shared Hosting service by uploading a zip file which is described in that article. But without TurnServer users cannot do Voice and Video calls in shared hosting service. Because shared hosting does not allow to install TurnServer on their VPS server. Therefore, You need to purchase a VPS server from Cloudcone or Digital Ocean.

Step 2: Install TurnServer On Your Ubuntu

We need to Install a TurnServer on our Ubuntu VPS server for video calling communication. Therefore, Simply log in with root user using putty into your Ubuntu server and run following commands to install the TurnServer server.

 sudo apt-get install coturn 
sudo sed -i '/TURNSERVER_ENABLED/c\TURNSERVER_ENABLED=1' /etc/default/coturn 

After installing TurnServer, We need the following configuration setting in
/etc/turnserver.conf

Run the following command to open the turn server configuration file.

sudo nano /etc/turnserver.conf  

Uncomment following options

listening-port=3478 

#tls-listening-port=5349 (if you want SSL port and uncomment and enter 443)

listening-ip=185.XX.XXX.XXX (put here your ip)

relay-ip=185.XX.XXX.XXX (put here your ip)

fingerprint

lt-cred-mech

use-auth-secret

static-auth-secret=751c45cae60a2839711xxxxxxxxx
( open new window in putty, generate a secret by running command openssl rand -hex 32 copy secrete and paste here )


uncomment this option and change it to your FQDN
realm=xxxxx.netways.de

total-quota=100

stale-nonce

(if you want to use ssl then uncomment and give ssl path here)
#cert=/ssl/nws.crt
# pkey=/ssl/nws.pem
also set cipher-list="ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AES:RSA+3DES:!ADH:!AECDH:!MD5"

no-stun

no-loopback-peers

no-multicast-peers


After that, we need to restart the turn server by running the following commands.

 
service coturn restart
or
/etc/init.d/coturn restart

Step 3: Enable Video Talk App In NextCloud Server

After installing the NextCloud server, Now we need to enable the NextCloud Talk app. Please log in with the admin username and open Apps option. Then search Talk App from the Social & Communication option then click download and enable button. Now, Go to Setting > under Administration > Talk. You will see the screenshot. Put in stun server option your-IP:3478. Put in turn server option your-IP:3478 & shared secret which you have given in turn server configuration file.

make voice and video calling website

Setup JavaScript XMPP Chat In NextCloud

The JavaScript XMPP Chat is another option for user video calling and group chat in NextCloud. If you want to use JavaScript XMPP for video calling on your website. Therefore, enable this app and open configuration setting option under the Administration option. Follow the guideline which is given in the screenshot and hit the register button.

 Setup JavaScript XMPP Chat In NextCloud

In conclusion: We will hope, You will make your own audio and video calling website by following our guidelines. If you are facing any problem, please tell us in the comment we will try to solve your problem.