In this example, there are two departments within a company, where the Administration will use the Grandstream PBX system, while the Sales Department will use MikoPBX and will need integration with 1C. Below is a guide for integrating both PBX systems:
Administration: Internal numbering plan 1XX is managed by Grandstream.
Sales Department: Internal numbering plan 3XX is managed by MikoPBX.
Grandstream: Connected to the external line for city calls.
MikoPBX: Should use Grandstream’s external line for making city calls.
Users in 1XX can call 3XX numbers.
Users in 3XX can call 1XX numbers.
Go to "Extensions / Trunk" → "VoIP Trunk", and click "Add SIP Trunk".
For "Provider Name", use a descriptive name like MikoPBX.
Set the "Host Name" to the address of MikoPBX.
Set "Transport" to UDP.
Enable "Keep Original CID".
Click "Save".
This rule allows Grandstream users (1XX) to call MikoPBX internal numbers (2XX).
Go to "Extensions / Trunk" → "Outbound Routes".
Add a new route and set the Trunk to "SIP Trunks – MikoPBX".
Set Calling Rule Name to MikoPBX.
Set Pattern to:
This rule allows MikoPBX users (2XX) to call Grandstream internal numbers (1XX).
Go to "Extensions / Trunk" → "Inbound Routes".
Select the trunk "SIP Trunks – MikoPBX".
Add a route with the Pattern = _1XX.
Set Allowed DID Destination to Extension.
Outbound to [78]XX...
This rule allows MikoPBX users to make external calls through Grandstream.
Go to "Extensions / Trunk" → "Inbound Routes".
Select the trunk "SIP Trunks – MikoPBX".
Add a route with Pattern = [78]XXXXXXXXXX.
Ensure that the correct CallerID is set for the Grandstream extensions under "Extensions / Trunk" → "Extension".
Go to "Routing" → "Providers" and add a new provider.
Set the Provider Name to something descriptive like Grandstream.
Set the Account Type to "Authentication by IP".
Set Host or IP Address to the address of Grandstream.
This rule allows Grandstream users (1XX) to call MikoPBX internal numbers (2XX).
Go to "Routing" → "Inbound Routes".
Add a new rule for provider "Grandstream" and set the DID pattern to "2XX".
This rule allows MikoPBX users (2XX) to call Grandstream users (1XX).
Go to "Routing" → "Outbound Routes".
Create a rule where numbers starting with "1" and consisting of three digits are routed through "Grandstream".
This rule allows MikoPBX to make external calls through Grandstream.
Go to "Routing" → "Outbound Routes".
Create a rule for numbers starting with "7" or "8" and consisting of 10 digits, to be routed through "Grandstream".
By following these steps, you will integrate MikoPBX and Grandstream UCM6202, allowing communication between the two systems and external call routing.