Cover; Copyright; Credits; About the Author; About the Reviewers; Table of Contents; Preface; Chapter 1: Introduction to SIP; SIP basics; SIP operation theory; SIP registering process; Server operating as a SIP proxy; Server operating as a SIP redirect; Basic messages; SIP dialog flow; SIP transactions and dialogs; The RTP protocol; Codecs; DTMF relay; Real Time Control Protocol (RTCP); Session Description Protocol (SDP); The SIP protocol and the OSI model; VoIP provider, the big picture; SIP proxy; User administration and provisioning portal; PSTN gateway; Media server
Hardware requirementsSoftware requirements; Lab-installing Linux for OpenSIPS; Downloading and installing OpenSIPS v1.6.x; OpenSIPS console; Lab-running OpenSIPS at the Linux boot; OpenSIPS v1.6.x directory structure; Configuration files (etc/opensips); Modules (/lib/opensips/modules); Binaries (/sbin); Log files; Redirecting OpenSIPS log files; Startup options; Summary; Chapter 4: Script and Routing Basics; Where we are; Scripting OpenSIPS; Global parameters; Listen interfaces; Logging; Number of processes; Daemon options; SIP identity; Miscellaneous; Standard script for global parameters
Media Proxy or RTP Proxy for Nat traversalAccounting and CDR generation; Monitoring tools; Where you can find more information; Summary; Chapter 2: Introduction to OpenSIPS; Where we are; What is OpenSIPS?; OpenSIPS history; Main characteristics; Speed; Flexibility; OpenSIPS is extendable; Portability; Small footprint; Usage scenarios; OpenSIPS configuration file; Core and modules; Sections of the opensips.cfg file; Sessions, dialogs, and transactions; Message processing in the opensips.cfg; SIP proxy-expected behavior; Stateful operation; Summary; Chapter 3: OpenSIPS Installation
Modules and their parametersStandard configuration for modules and parameters; Scripting basics; Core functions; Core values; Core keywords; Pseudo-variables; Script variables; Attribute-Value Pair (AVP) overview; Flags; The module GFLAGS; Statements; if-else; Switch; Subroutes; Routing basics; Routing requests and replies; Initial and sequential requests; Sample route script; Using the standard configuration; Common issues; Daemon does not start; Client unable to register; Too many connections; Summary; Chapter 5: Adding Authentication with MySQL; Where we are; The AUTH_DB module
The REGISTER authentication sequenceRegister sequence; Register sequence code snippet; The INVITE authentication sequence; INVITE sequence packet capture; INVITE code snippet; Digest authentication; WWW-Authenticate response header; The Authorization request header; QOP-Quality Of Protection; Plaintext or hashed passwords; Installing MySQL support; Analysis of the opensips.cfg file; Register requests; Non-Register requests; The opensipsctl shell script; The resource file-opensipsctlrc; The opensipsctlrc file; Using OpenSIPS with authentication; Enhancing the script; Managing multiple domains
0
8
8
8
8
"This book will give you a competitive edge by helping you to create a SIP infrastructure capable of handling tens of thousands of subscribers. You can extend the examples given in this book easily to other applications such as a SIP router, load balancing, IP PBX, and Hosted PBX as well. This book is an update of the title Building Telephony Systems with OpenSER. The book starts with the simplest configuration and evolves chapter by chapter teaching you how to add new features and modules. It will first teach you the basic concepts of SIP and SIP routing. Then, you will start applying the theory by installing OpenSIPS and creating the configuration file. You will learn about features such as authentication, PSTN connectivity, user portals, media server integration, billing, NAT traversal, and monitoring. The book uses a fictional VoIP provider to explain OpenSIPS. The idea is to have a simple but complete running VoIP provider by the end of the book"--Resource description page.