Setup PortSIP PBX for Linux

You are here:
← All Topics

From v12, PortSIP PBX has been migrated to the docker environment for Linux. Please follow the below steps to set up the PortSIP PBX.

Note: the OS required:

  • CentOS: 7.5+,less than 8.0.
  • Ubuntu: 16.04 or 18.04.
  • Debian: 9.5+, less than 10.0
  • Only supports 64bit OS

Step 1. Perform below command

$ sudo curl https://raw.githubusercontent.com/portsip/portsip-pbx-ha-guide/master/install_pbx_docker.sh|bash

Step 2: Now run the PortSIP PBX Docker container instance

Executing below command will run the PortSIP PBX docker instance on a CentOS server for which the IP is 66.175.222.20.

  • The POSTGRES_PASSWORD is used to specify the PortSIP DB password. In this case we will use 123456, you can change it by yourself. Suggest use alphanumeric only, special character maybe causes the problems.
  • The IP_ADDRESS is the IP address of your PBX server (CentOS Server). In this case it is 66.175.222.20, you will need to change it by yourself.

Note: if you want the PortSIP PBX to restart automatically if the Linux is restarted, please add --restart=always parameter in to below command.


$ docker container run -d --name portsip-pbx --restart=always --cap-add=SYS_PTRACE --network=host -v /var/lib/portsip:/var/lib/portsip -v /etc/localtime:/etc/localtime:ro -e POSTGRES_PASSWORD="123456" -e POSTGRES_LISTEN_ADDRESSES="*" -e IP_ADDRESS="66.175.222.20" portsip/pbx:12

Note: once you have created the transport in the PortSIP PBX, you will need to add a new firewall rule to enable your transport port. For example:if you create the UDP transport on port 5060, you will need add new firewall rule to enable the UDP port 5060:

CentOS:

$ sudo firewall-cmd --permanent --service=portsip-pbx --add-port=5060/udp

Ubuntu / Debian:

$ sudo ufw allow 5060/udp


if you create the TCP transport on port 5063, you will need add new firewall rule to enable the TCP port 5063.

CentOS:

$ sudo firewall-cmd --permanent --service=portsip-pbx --add-port=5063/tcp

Ubuntu / Debian:

$ sudo ufw allow 5063/tcp

Step 3: Open the PortSIP PBX Web Management Console to configure the PortSIP PBX, please follow the user guide: https://www.portsip.com/portsip-pbx-user-guide/

http://127.0.0.1:8888
https://127.0.0.1:8887
http://66.175.222.20:8888
https://66.175.222.20:8887