Book Image

FreeSWITCH Cookbook

Book Image

FreeSWITCH Cookbook

Overview of this book

FreeSWITCH is an open source telephony platform designed to facilitate the creation of voice, chat, and video applications. It can scale from a soft-phone to a PBX and even up to an enterprise-class softswitch.In the FreeSWITCH Cookbook, members of the FreeSWITCH development team share some of their hard-earned knowledge with you in the book's recipes. Use this knowledge to improve and expand your FreeSWITCH installations.The FreeSWITCH Cookbook is an essential addition to any VoIP administrator's library.The book starts with recipes on how to handle call routing and then discusses connecting your FreeSWITCH server to the outside world.It then teaches you more advanced topics like CDR handling, practical examples of controlling FreeSWITCH with the event socket, and configuring many features commonly associated with a PBX installation.
Table of Contents (12 chapters)
FreeSWITCH Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating users


Each FreeSWITCH system has a directory of users. In most cases a user is the literal person who has a telephone. When we say that we are "adding a user" we mean that we are creating a user account in the directory of users. Each "user" has the SIP credentials for making outbound calls as well as a PIN number for accessing voicemail. In fact, you cannot have a voicemail box without having a corresponding user account.

Getting ready

At a minimum you will need a terminal window to issue commands to your system. To use the add_user script your system will need to have Perl installed.

How to do it...

There are two basic steps for creating a user. The steps are as follows:

  1. Adding the user to the directory.

  2. Adding the corresponding extension number to the dialplan.

Let's assume we have a fresh installation of FreeSWITCH, which means we have user ID's 1000 through 1019 (the Local_Extension in conf/dialplan/default.xml is set to route calls to those ID's).

Let's add a new user with these...