Bridging/Connecting Freeswitch servers
Hello I am experimenting with FS and would like to know how to connect two independent servers with user on one beinng able to call users on the other. Do I set each server to be the gateway of the corresponding one ? Pardon me if this has already benn dealt with. My search has drawn a blank Thanks.
On Wed, Dec 02, Otis wrote:
Hello
I am experimenting with FS and would like to know how to connect two independent servers with user on one beinng able to call users on the other. Do I set each server to be the gateway of the corresponding one ?
You can if you need them to authenticate to eachother. You have to decide on what you need. Do you not want extensions reachable from the public context? If not then you can do what I do. <extension name="fjc-pbx-inbound"> <condition field="network_addr" expression="^2001\:470\:1f..\:6..\:.e0\:.1f.\:fe34\:b29d$"/> <condition field="destination_number" expression="^(.*)$"> <action application="transfer" data="$1 xml default"/> </condition> </extension> You can certainly put an ipv4 address in instead of the mangled ipv6 that's in this example. Then create an extension that matches on the extensions on the other machine and bridge them to the correct hostname and port. If you just want all the extensions reachable from the public context then do something like this in your dialplan/public.xml <extension name="the_big_phat_transfer"> <condition field="destination_number" expression="^(0\d{7}$|^1\d{4}$|^[2-9]{2}\d{2}$)"> <action application="transfer" data="$1 xml default"/> </condition> </extension> There are yet other ways to get this done. HTH --FC
Frank Carmickle wrote:
On Wed, Dec 02, Otis wrote:
Hello
I am experimenting with FS and would like to know how to connect two independent servers with user on one beinng able to call users on the other. Do I set each server to be the gateway of the corresponding one ?
You can if you need them to authenticate to eachother. You have to decide on what you need. Do you not want extensions reachable from the public context? If not then you can do what I do.
<extension name="fjc-pbx-inbound"> <condition field="network_addr" expression="^2001\:470\:1f..\:6..\:.e0\:.1f.\:fe34\:b29d$"/> <condition field="destination_number" expression="^(.*)$"> <action application="transfer" data="$1 xml default"/> </condition> </extension>
You can certainly put an ipv4 address in instead of the mangled ipv6 that's in this example.
Then create an extension that matches on the extensions on the other machine and bridge them to the correct hostname and port.
If you just want all the extensions reachable from the public context then do something like this in your dialplan/public.xml
<extension name="the_big_phat_transfer"> <condition field="destination_number" expression="^(0\d{7}$|^1\d{4}$|^[2-9]{2}\d{2}$)"> <action application="transfer" data="$1 xml default"/> </condition> </extension>
There are yet other ways to get this done.
HTH --FC
Thanks. I would like all extensions on say server A to be contactable by those on server B and vice versa.
On Wed, Dec 02, Otis wrote: Snip...
Thanks.
I would like all extensions on say server A to be contactable by those on server B and vice versa.
The example I gave you should get you started. Let us know how you get along. Have a read through the wiki pages like http://wiki.freeswitch.org/wiki/Dialplan_XML http://wiki.freeswitch.org/wiki/Mod_dptools#Applications http://wiki.freeswitch.org/wiki/Sofia --FC
On Wed, Dec 2, 2009 at 9:58 AM, Frank Carmickle <frank@carmickle.com> wrote:
On Wed, Dec 02, Otis wrote: Snip...
Thanks.
I would like all extensions on say server A to be contactable by those on server B and vice versa.
The example I gave you should get you started. Let us know how you get along. Have a read through the wiki pages like
http://wiki.freeswitch.org/wiki/Dialplan_XML http://wiki.freeswitch.org/wiki/Mod_dptools#Applications http://wiki.freeswitch.org/wiki/Sofia
--FC
Remember, too, that gateways are useful for doing auth/reg so having a gateway on each box that registers to the other box is pretty handy. If you run into any trouble trying to set it up you can ask here or join us in #freeswitch on irc.freenode.net. -MC
Michael Collins wrote:
On Wed, Dec 2, 2009 at 9:58 AM, Frank Carmickle <frank@carmickle.com <mailto:frank@carmickle.com>> wrote:
On Wed, Dec 02, Otis wrote: Snip...
> Thanks. > > I would like all extensions on say server A to be contactable by those > on server B and vice versa.
The example I gave you should get you started. Let us know how you get along. Have a read through the wiki pages like
http://wiki.freeswitch.org/wiki/Dialplan_XML http://wiki.freeswitch.org/wiki/Mod_dptools#Applications http://wiki.freeswitch.org/wiki/Sofia
--FC
Remember, too, that gateways are useful for doing auth/reg so having a gateway on each box that registers to the other box is pretty handy. If you run into any trouble trying to set it up you can ask here or join us in #freeswitch on irc.freenode.net <http://irc.freenode.net>. -MC
Hi FC I used your code : <extension name="fjc-pbx-inbound"> <condition field="network_addr" expression="^2001\:470\:1f..\:6..\:.e0\:.1f.\:fe34\:b29d$"/> <condition field="destination_number" expression="^(.*)$"> <action application="transfer" data="$1 xml default"/> </condition> </extension> replacing with my box's ip address. I have received any errors in the fs_cli console neither is there any reference to my box'x ipddress. Any way to check all is well ? And how do I join join us in #freeswitch on irc.freenode.net <http://irc.freenode.net>. ? Went to the freenode.net site and got lost. Will persevere. Thanks
http://www.freeswitch.org/ On the right side. Join IRC Just fill in a nickname and click JOIN IRC -- W
Thanks. Will let you know Frank Carmickle wrote:
On Wed, Dec 02, Otis wrote: Snip...
Thanks.
I would like all extensions on say server A to be contactable by those on server B and vice versa.
The example I gave you should get you started. Let us know how you get along. Have a read through the wiki pages like
http://wiki.freeswitch.org/wiki/Dialplan_XML http://wiki.freeswitch.org/wiki/Mod_dptools#Applications http://wiki.freeswitch.org/wiki/Sofia
--FC
participants (4)
-
Frank Carmickle
-
Michael Collins
-
Otis
-
William Suffill