How to connect Freepbx Cloud (Vultr) to another on-site PBX (MX)

Hello community,

I have a Freepbx hosted on Vultr and another locally that uses a Meraki firewall. How can I make an IAX or PJSIP trunk between PBXs?

Do I need a site-to-site VPN? or maybe play a bit in meraki with the traffic?

I appreciate any comments or help.

Thanks a lot,

Edit:

typo on the port 4569 not 4549

You just need a bidirectional route for UDP/4569 between the two.

How exactly can I do that? plis

Unless you have a networking or other restriction that precludes SIP, I recommend against IAX. You would have to replace it if you changed the PBX at either end to one that was not Asterisk based. IAX is a binary protocol so you are at the mercy of the interpretation in whatever debug tools you are using. And, there are many more experts in SIP than in IAX.

I know nothing about Meraki, but if the on-site PBX has existing SIP trunks (to the PSTN), you can set up a trunk to the Vultr system exactly the same. If the Meraki needed any trunk-specific settings, e.g. to whitelist provider IP addresses, do the analogous settings for Vultr.

At the Vultr end, set up the trunk for Registration Receive, or use IP authentication.

If you have trouble, try to register an IP phone, softphone or SIP app at the Meraki site directly to the Vultr instance. If that works, you should be able to get the local PBX to register in the same way.

The pros anc cons of IAX2

Pros)
It was developed by Mark Spencer as his ‘InterAsteriskeXchange’ protocol. First as IAX, then improved to IAX2.
It is efficient and faster than SIP, with trunk=yes even more so as the connection is always up so no Sessions needed to Initaiate for every call.
It uses one port, so it is easy to route and will go boldly where SIP can’t or won’t.
Rarely, if ever, will you see an attack against it.
It is very stable, s well aged and time proven, so doesn’t need much maintainance.

Cons)
Many folks deride and sneer at it. But likely none of them has ever tried it.

Given these, and FWIW, I have been using it for donkeys years, never had a problem, ever!

I still maintain that it is perfect where a static trunk is needed between ‘well known places’

Create firewall rules both at Vultr and on your Meraki firewall for the IAX UDP/4549. On your Freepbx systems create an IAX2 trunk to link.

The wiki has a guide that might work for you. https://wiki.freepbx.org/pages/viewpage.action?pageId=4161588

Yep, I did it on another on-site PBX behind SonicWall and it worked fine. However, I can’t open the ports correctly :frowning: and the documentation doesnt say much.

Just create a rule to forward udp/4569 to your pbx (on both ends if needed)

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.