Register now or log in to join your professional community.
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?
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.