Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to load balance Freepbx ?

user-image
Question added by Anas kunnathiyil , IT Manager , AlQalam Group
Date Posted: 2017/04/29
Shuhaib Rahiman R
by Shuhaib Rahiman R , Desktop Support , Electrohub

Supposing my exensions are 4XXX, they will be registering randomly to both PBX1 and PBX2 (either with rrDNS or LinuxHA).Statistically, 50% of my extensions will be on PBX1 and 50% on PBX2.

How do I configure freepbx so that, say, SIP extension 4001 registered on PBX1 can call SIP/4002 on PBX2?

I figure I could create a IAX2 trunk between the 2 servers (type=friend).Then create an outgoing route with dial rule "4XXX" which uses the IAX2 trunk.Finally, for extension 4002 define a follow-me list including 4002 and 4002#.

But since PBX2 would have the same freepbx configuration/dialplan then wouldn't this lead to an infinite loop if, say, extension 4002 is unavailable/not registered on PBX2?

Or maybe I could avoid defining an outgoing route and use the "dial" field for each SIP extension. Instead of leaving it as, say, "SIP/4002" I might use something like "SIP/4002&IAX2/pbx2trunk:password@pbx1trunk/4002".But then again, if both servers have the same dialplan logic and serve the same extension ranges then I might end up with an infinite loop between the 2 PBXs.

I'm sure other users have already dealt with this situation.What would be the simplest approach?Does FreePBX already do this?

Md Amzad Hossain
by Md Amzad Hossain , Developer , Mathnary

use OpenSips - that is the good solution for the voice communication of large scale. In the freeware world I think OpenSips is the best one.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.