When operating a SIP proxy, you should guarantee that a valid account won't be used by non-authenticated users. The check_to()
and check_from()
functions are used to map the SIP users with the authentication user. The SIP user is in the FROM and TO header fields and the auth user is only used for authentication (Authorize header field) and it has its own password. In the current example, the function checks that a SIP user and the auth user are the same. This is to prevent a user form using the authentication of another user. These functions are enabled by the URI_DB
module.
Building Telephony Systems with OpenSER
Building Telephony Systems with OpenSER
Overview of this book
Table of Contents (18 chapters)
Building Telephony Systems with OpenSER
Credits
About the Author
About the Reviewers
Preface
Free Chapter
Introduction to SIP
The SIP Express Router
OpenSER Installation
OpenSER Standard Configuration
Adding Authentication with MySQL
Building the User Portal with SerMyAdmin
Connectivity to the PSTN
Call Forward and Voice Mail
SIP NAT Traversal
OpenSER Accounting and Billing
Troubleshooting Tools
After Words
Index
Customer Reviews