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

Configuring a SIP gateway


Configuring a SIP gateway allows you to connect with outside carriers or other SIP machines. You can connect with other FreeSWITCH or Asterisk boxes, or to upstream carrier SIP trunks.

SIP gateways have many, many options—too many to list here, so we'll review just a few.

Getting ready

First you'll need to gather some information about the remote server to which you are connecting. The list generally includes:

  • IP address or hostname of the server you are connecting to

  • Username and password (if any)

  • How the carrier/gateway expects Caller ID to be handled (which SIP header Caller ID should be placed in)

  • Whether registration is required

You'll also need to know the phone number format your carrier expects when you send calls to them, and how they'll send calls to you.

Finally, you'll need to decide which of your existing SIP interfaces to tie this gateway to. All gateways must be associated with a SIP interface (port and IP address). Note that, in most cases, a gateway can...