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

Creating users


Each FreeSWITCH system has a directory of users. In most cases, a user is literally a 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 the voicemail. In fact, you cannot have a voicemail box without having a corresponding user account.

Getting ready

As 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. Add the user to the directory.

  2. Add the corresponding extension number to the dialplan.

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

Let's add a new user with...