Implementations

From Kolmisoft Wiki
Jump to navigationJump to search

This page shows some ways how MOR system can be used. Examples are from real implementations.

On all implementations listed below, it's recommended to deploy Asterisk and DB servers in the same datacenter. This will ensure stable system functioning.

Even though it's possible to deploy these elements in different locations, but such implementations may cause many issues, related with delays between different networks.

For M2 implementations please check here




Redundancy between two data centers

There's always a risk that data center in which you keep your servers can be down for various reasons.

To reduce such risk you can consider implementing redundancy between two data centers that are located in different countries or continents.

However, such implementation can work only if both data centers can meet requirements which are described here (see Redundant servers).

The most common problem is that different data centers cannot ensure such requirements for Virtual IP.



1 Server Basic System

Up to 500cc

This is a very basic solution All-in-one-Server. No redundancy, no High-Availability, no Scalability.

We recommend to use it only in the testing environment.

Not safe to use in the real business environment.


MOR 1server.png



2 Servers Solution with 2 IP Addresses

Up to 1000cc

The solution allows placing two servers in different locations.

In case of broken connection or broken database replication between servers, each site will become separated systems and runs its own billing, which is not desirable in most cases.

It provides double capacity with increased risk of malfunctioning in case of hardware/software/network failure.

2 IP Addresses allows route balancing at the side of the customers/vendors. They will use 2 IPs to balance traffic on their side.

2serversaASTDBandGUIDB v2.png




2 Server Redundant High-Availability Solution

Up to 500cc

This is the most popular solution because it is fully redundant and most stable.

More info: 2 Server Redundant Solution


2serverredundant withlinuxha v2.png




3 Server Non-High Availability Solution

Up to 1000cc

Not-recommended solution because of the risk to have main components on one server.

Mor proxy 1000cc non ha.png




SIP Balancer solutions

Multiple Asterisk servers, high performance system with SIP balancer and DB Replication

Impl 1sipbalnast2db1gui.png

  • SIP balancer
  • If one of Asterisk servers fails, SIP balancer routes calls via remained Asterisk servers.
  • LinuxHA heartbeat monitors Database servers
    • When Main Database fails - Backup Database sees that and after 10s (default) will take Virtual IP, it is done automatically.
    • When Main Database is back up - Backup Database returns Virtual IP to Main Database and system starts to function in normal work flow (done automatically).
  • GUI server is connected to Backup Database to avoid load on Main Database in normal work flow.

This solution can handle up to 1000 simultaneous calls. Certain amount of calls may vary depending on hardware, codecs used and transcoding. Additional Asterisk servers can be added if larger amount of simultaneous calls is needed.

Complete Redundancy, high performance system with SIP balancer

MOR proxy full.png

SIP balancer for docs.png

Detailed schematic of SIP Proxy solution:

SIP balancer detailed.png

NOTES:

  • GUI is on DB servers
  • Proxy servers share 1 IP managed by Heartbeat
  • DB (Asterisk/GUI) servers share another 1 IP also managed by Heartbeat
  • More Asterisk Nodes can be connected, example with 2 is bare minimum



For more details about SIP Balancer solution click here