MikoPBX and FreePBX (IAX)
Instructions for connecting multiple PBX systems
MikoPBX Configuration
In MikoPBX, navigate to "Routing" → "Telephony Providers":

Create a new IAX provider:

Fill in the parameters:
Provider Name – any name
Host or IP Address – the IP address of FreePBX
Username – “tmp”
Password – any (secure) password
Save the parameters.

After saving, you’ll see the provider ID in the browser’s address bar. Copy it into the Username field:

FreePBX Configuration
In FreePBX, go to "Connectivity" → "Trunks" and add a new IAX2 trunk:

Under the "General" tab, set Trunk Name to the login used in MikoPBX (seen in the browser address bar, e.g., “IAX-TRUNK-1E8B1CFE”):

Under "Dialed Number Manipulation Rules," define a pattern for outgoing calls:

Go to "pjsip Settings" → "iax2 Settings." Under Trunk Name, use the same login from MikoPBX (e.g., “IAX-TRUNK-1E8B1CFE”):

Fill in PEER Details:
type=friend
auth=plaintext
language=ru-ru
qualify=2000
transfer=mediaonly
disallow=all
;username=mikopbx
host=dynamic
trunk=yes
secret=123
allow=alaw&ulaw

In the "Incoming" tab, fill in the Register String field in the format “LOGIN:PASSWORD@IP_FREE_PBX”:

Routing Setup
MikoPBX
Define an incoming route (see “Incoming Routes” guide). In this example, all calls are routed to extension 202:

If needed, define a separate route for each DID with its own destination:

Define an outgoing route (see “Outbound Routes” guide):

FreePBX
Go to "Connectivity" → "Inbound Routes" and define an inbound route:

Go to "Connectivity" → "Outbound Routes" and define an outbound route:

Last updated
Was this helpful?