How to Install VitalPBX on Google Cloud

Share on facebook
Share on google
Share on twitter
Share on linkedin
vpbx-gc

Some time ago we explained the procedures to install VitalPBX on Amazon AWS EC2, well, today it’s the turn of the internet industry mogul. We will configure and install VitalPBX in a virtual machine on Google Cloud, so let’s start!

Configuring the Environment

  • The first thing we have to do is comply with all the requirements: have a Gmail account, a credit card (which will be requested in the process). But don’t worry, the trial version gives us around three hundred dollars of credit for a year to try the platform.
  • After we have registered, we will proceed to the Google Console where we will create our virtual machine. The first thing that we have to do here is to create a new project. I will name my project “VitalPBX”.

Google Cloud Project

 

Configuring the Firewall

  • Before create our VM instance, we will configure the firewall to allow the most important ports. To configure the firewall we must to go to: Networking >> VPC Network >> Firewall Rules

Google Firewall

 

The ports we will configure are the following: udp:5060, tcp:5060, udp:10000-20000, tcp:3000. You can configure more ports according to your needs.VPC Network - Firewall

The fields we must configure at the moment of creating a new firewall rule are:

  1. Name: It could be any name.
  2. Priority: To define the order of the rules. Rules with lower numbers get prioritized first.
  3. Targets: It allows you to define if the new rule will be applied to all the instances, specific target tags or a specific service account.  We will choose the “Specific Target Tags” option and set the value to “vpbx“, this is with the aim of applying this rule only to specific instances as we will see later.
  4. Source IP Ranges: It allows you to define from which IP ranges (in CIDR notation) will allow the traffic to the defined ports on this rule. To allow traffic from any IP address we can set the value to 0.0.0.0/0
  5. Protocols and Ports: Here we will define the ports allowed for this rule.

New Firewall rule

New Firewall Rule - 2

Building the VM Instance

  • Now that we have configured the firewall, we will proceed to create the VM instance (Compute >> Compute Engine >> VM Instances).

New VM Instance

These are the settings that we must select for our new VM instance:

  1. Boot Disk: we must to select a “Centos 7” image
  2. Firewall: Check the options: Allow HTTP Traffic , Allow HTTPS Traffic
  3. Networking: we will set the value of “Network Tags” field to “vpbx” to match with the firewall rules that we have created previously

We are configuring this VM instance with the most basic settings. You can configure the rest of the settings according to your needs. E.g: you may increase the memory or the disk space.

VM Instance Config 1

VM Instance Config 2

  • After the instance has been created, we will proceed to connect through SSH, pressing the button labeled “SSH”, as shown below.

Connecting to VM Instance

Installing VitalPBX

  • After we have connected through SSH, we will proceed to scale privileges and authenticate as root, for this we will execute the following command: sudo su

Google Cloud SSH

  • Once inside the console we will follow the steps on the following link: Installing VitalPBX on a VPS. Once the installation is complete, the system will restart automatically.

VPBX Installed

Configuring NAT Settings

So that there is audio while having a call, we will have to configure in the global SIP configurations, the private network and the public network of our server in the following way:

 

NAT Settings

Test Call

Asterisk test call

mrivera

mrivera

About Us

This project started with the objective of creating a system/interface for the administration of PBX systems based on Asterisk,  easy to use, totally adapted for different mobile devices (Fully Responsive Design), and with all the characteristics of an advanced telecommunications system; Combining the flexibility from Asterisk with concepts that have been satisfactorily used in traditional telephone systems, concepts that somehow were ignored by the new generations of IP telephony.

Recent Posts

Follow Us

VitalPBX Overview

Sign up for our Newsletter

Subscribe and keep up to date with our news.