You might find this tutorial that describes how to configure FreeSWITCH for multi-tenant use to be helpful: https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+PBX+Example Basically, each profile listens on different ports, sends calls through different contexts and thus different dialplans to reach different tenants. The vanilla configuration that ships with FS is merely an example, but by no means should limit what you can do. FreeSWITCH is incredibly configurable. Bote
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch- users-bounces@lists.freeswitch.org] On Behalf Of Tanguy Sent: Tuesday, 15 September, 2015 16:49 To: FreeSWITCH Users Help Subject: [Freeswitch-users] Call a remote extension on specific domain
Hello
I have two multi-domains freeswitch servers 1 and 2 and i want to interconnect them for internal calls
I read https://wiki.freeswitch.org/wiki/Connect_Two_FreeSWITCH_Boxes but it did not fully fit to my need because I want to call from freeswitch1 a specific extension of freeswitch2 on a specific domain ( and not just default ). In short i want to tell to freeswitch2: Connect me with extension 1000@domain-name and not just connect me with extension 1000
My guess is send custom sip headers from freeswitch1 and parse X-domainname on freeswitch2 dialplan
<action application="set" data="sip_h_X-domainname=somedomain"/> <action application="bridge" data="sofia/internal/${destination_number}@freeswitch2.company.com "/>
This will probably work, but is there a clean way to do it without using non standard headers ?
Best Regards