Book Image

Freeswitch 1.6 Cookbook

Book Image

Freeswitch 1.6 Cookbook

Overview of this book

Table of Contents (14 chapters)
FreeSWITCH 1.6 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Verto signaling in JavaScript using Verto.js (Verto client)


Let's implement a click-to-call button that will allow anyone to click on a web page to join a conference in video-audio chat (more information about conferences is covered in the next chapter).

For security reasons, we need an "anonymous" user that we can allow into our system without risks, that is, a user that can do only what we have preplanned.

Create an anonymous user for click-to-call by adding to the directory and the dialplan as instructed in the SIP Signaling in JavaScript with SIP.js(WebRTC client) section. Then use reloadxml from fs_cli, or restart FreeSWITCH.

The end user does not need to log in or identify themselves; insert your name is there just for aesthetic purposes.

A minimal click-to-call Verto client looks like this:

How to do it...

In a directory served by your HTPS server (for example, Apache with an SSL certificate), put these two files:

HTML (3.html):

<!DOCTYPE html>
<html>
 <head>
  <meta...