![]() Create a table called subscriber with 4 fields: id, domain, username and ha1: CREATE TABLE `subscriber` (`id` int(11) unsigned NOT NULL AUTO_INCREMENT,`domain` varchar(100) DEFAULT NULL,`username` varchar(100) DEFAULT NULL,`ha1` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8.Create a table called credentials with 4 fields: id, auth_username, ha1 and realm: CREATE TABLE `credentials` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `auth_username` varchar(100) DEFAULT NULL, `ha1` varchar(256) DEFAULT NULL, `realm` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8.Create a DB named as specified in the configuration file.On your MySQL instance perform the following steps:.Configure access to the database on the mysql_db section. ![]() Set the turn_relay_addr to the same IP as above.Set udp_listen and tcp_listen to the IP address of the interface you want to attach the server to followed by port 3478.Step 4 opens the required ports to the internet and on Step 5 we show how to test your restund instance. Step 3 builds, installs and configures restund. In step 2 we install libmysqlclientdev, needed to build this module. To run a TURN server you need authentication, and restund comes with a module to pull credentials from a MySQL database. Step 1 installs libre, a real-time communications toolkit restund depends on. We are going to build restund from its C source and run it as a service on an Amazon EC2 Ubuntu instance. This guide assumes that you understand WebRTC and you know why you want/need a STUN/TURN server. If you need to run your own STUN/TURN server this step by step guide will show you how to run restund. Hopefully this will make things easier for you than they were for us. In just a few minutes you can get their demo running and start exploring how everything works. ![]() If you want to get started with WebRTC then is where you need to go.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |