One of the goals for the OpenSIPS project is to make the software simpler to use. A great milestone in this direction was the script generator. Now, we can generate scripts for several scenarios. This can save a lot of time in coding and reduce errors. This book will use the Residential Script as the basis for most of the chapters. So, let's generate a residential script to start with:
Navigate to Generate OpenSIPS Script | Residential Script | Configure Residential Script. For now, just enable TCP:
Generate the script and copy it to
/usr/local/etc/opensips
and change the specific date generated by your installation:cp /usr/src/opensips_210/etc/opensips_residential_2014-12-22_9\:25\:40.cfg /etc/opensips/opensips.cfg
After generating the script, customize some lines of the code to your current IP address:
listen=udp:127.0.0.1:5060 # CUSTOMIZE ME listen=tcp:127.0.0.1:5060 # CUSTOMIZE ME