Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the practical skills of OpenSIPS one-click installation script and OpenSIPs+N FreeSWITCH?

Shulou Source: shulou.com Published: 2022-06-01 03:18:40 10月03日 Update

OpenSIPS one-click installation script and OpenSIPs+N FreeSWITCH actual combat skills, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.

An one-click installation package for OpenSIPS is provided, and OpenSIPs can be used as a front-end agent for FreeSwitch to achieve multiple FreeSwitch load balancing to handle call traffic.

Take opensips-2.1.2.tar.gz as an example

Installation environment CentOS 6.x 64 bit

Step 1 Download

Download database configuration file to modify database information

Wget https://hk-area1-file.oss-cn-hongkong.aliyuncs.com/fsgui/init.conf

Download the installation script

Wget https://hk-area1-file.oss-cn-hongkong.aliyuncs.com/fsgui/opensips_install.sh

Installation command

Sh opensips_install.sh

Installation completed opensips Custom Startup

Step 2 startup

/ usr/local/sbin/opensipsctl start

Stop it

/ usr/local/sbin/opensipsctl stop

Step 3 common commands

/ usr/local/sbin/opensipsctl start

Ps-ef | grep opensips

/ usr/local/sbin/opensipsctl stop

Ps aux | grep opensips (View process)

Netstat-ulpn | grep opensips (check UDP link status)

Netstat-utpn | grep opensips (check TCP link status)

/ usr/local/sbin/opensips-c check whether the configuration is correct

Add freeswitch back-end servers

Opensipsctl dispatcher show

Dispatcher addgw [description]

* Examples: dispatcher addgw 1 sip:1.2.3.1:5050 '050' og1' 'Outbound Gateway1'

* dispatcher addgw 2 sip:1.2.3.4:5050 '050' og2' 'Outbound Gateway2'

* dispatcher rmgw 4

Opensipsctl dispatcher addgw 1 sip:47.91.133.205:5099 "" 0 50 'us1'' cs.wdjbp.com'

Opensipsctl dispatcher addgw 1 sip:47.89.33.209:5099 "" 0 50 'us2'' wandan.wdjbp.com'

Insert into load_balancer (group_id,dst_uri,resources,description) values (1) the consumptive purse 47.91.133.205, the 5099 memorials, the pstnages, the 100 charms, the HK1'

Insert into load_balancer (group_id,dst_uri,resources,description) values (1) the consumptive purl 47.89.33.209)

Opensipsctl fifo lb_reload

Dispatcher show. Show dispatcher gateways

Dispatcher reload. Reload dispatcher gateways

Dispatcher dump. Show in memory dispatcher gateways

Dispatcher addgw [description]

.. Add gateway

Dispatcher rmgw. Delete gateway

Add freeswitch back-end servers

Opensipsctl dispatcher show

Dispatcher gateways

Opensipsctl dispatcher addgw 1 sip:182.92.158.206 "" 0 50 'hk1'' hk1.wdjbp.com'

Opensipsctl dispatcher addgw 1 sip:47.88.86.32 "" 0 50 'hk1'' hk2.wdjbp.com'

Make sure the SIP account is logged in before you log in

Vi / usr/local/freeswitch/conf/vars.xml

Modified the domain parameter in vars.xml

Change to

The FS node needs to add the IP of the opensips to the whitelist in the ACL

Test verification

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Script one-click command data database server status link help service configuration actual combat skill clarity balance information content front end parameter list Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Xiaomi MySQL Redmi Microsoft