Book Image

Building Telephony Systems with OpenSER

Book Image

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
6
Building the User Portal with SerMyAdmin
Index

openser.cfg Analysis


Copy the file openser.nat (http://www.asteriskguide.com/openser/openser.nat) to /etc/openser.cfg. Let's analyze the required changes to the openser.cfg file.

Modules Loading

NatHelper and MediaProxy are responsible for handling the NAT traversal. Some functions such as fix_nated_contact(), fix_nated_register(), fix_nated_sdp(), and nat_uac_test() are made available by the NatHelper module. The MediaProxy module exports the functions client_nat_test, fix_contact(), use_media_proxy(), and end_media_session().

loadmodule "/usr/lib/openser/modules/nathelper.so"
loadmodule "/usr/lib/openser/modules/mediaproxy.so"

Modules' Parameters

The modules NatHelper and MediaProxy comes from two different solutions (RTPproxy and MediaProxy). There are some redundancies between them. So we will disable some functions from NatHelper such as natping. We don't need two natping processes to be active simultaneously.

modparam("nathelper", "rtpproxy_disable", 1)
modparam("nathelper", "natping_interval...