[Freeswitch-users] Multi-tenat PBX using xml_curl

Chris B. Ware chrisbware at yahoo.it
Wed Apr 24 14:01:22 MSD 2013



Thank you Anthony!

It works as expected. I've changed just a small thing to let it work:

<action application="bridge" data="{ignore_early_media=true}user/${Called_Exten}@${domain}"/>


Just one $ in front of domain, otherwise it takes binded IP for all domains.
--------------------------------------------------------------------------------------------------------------------------------
Date: Tue, 23 Apr 2013 17:22:18 -0500
From: Anthony Minessale <anthony.minessale at gmail.com>
Subject: Re: [Freeswitch-users] Multi-tenat PBX using xml_curl
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Message-ID:
    <CAKbxfG_mwSrGjCvcm3AUTwMchSXW+OwSwt0RcSKfE4dkzLjpcw at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Try

<param name="dial-string"
value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@
${dialed_domain}}${sofia_contact(*/${dialed_user}@${di\
aled_domain})}"/>

and


<action application="bridge" data="{ignore_early_media=true}user/${
Called_Exten}@$${domain}"/>



________________________________
 Da: Chris B. Ware <chrisbware at yahoo.it>
A: "freeswitch-users at lists.freeswitch.org" <freeswitch-users at lists.freeswitch.org> 
Inviato: Martedì 23 Aprile 2013 9:45
Oggetto: Re: [Freeswitch-users] Multi-tenat PBX using xml_curl
 


Anthony,

any domain has the same dial-string:

<param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>



and when an extension calls another extension I use:

<action application="bridge" data="{ignore_early_media=true}sofia/$${domain}/${Called_Exten}"/>











Date: Mon, 22 Apr 2013 16:58:13 -0500
From: Anthony Minessale <anthony.minessale at gmail.com>
Subject: Re: [Freeswitch-users] Multi-tenat PBX using xml_curl
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Message-ID:
    <CAKbxfG9YOB9pPPyBok-srfYQ8a1KRxbE2S7TaKESYwxiG_uFng at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

What is the dial string you are using to call them?


On Mon, Apr 22, 2013 at 4:51 PM, Chris B. Ware <chrisbware at yahoo.it> wrote:

> Hi guys,
>
> I've looked for a help on this issue on irc and mailing-list archive
> without success.
> I need to configure a multitenant PBX using xml_curl. I've followed wiki
> to do it.
>
> I've two domains:
>
> DomainA.voip.com
> DomainB.voip.com.
>
> I can register extensions to those domains but when I call one extensions
> from another I receive
> an "INVALID PROFILE" error.
>
> The only way I've found to fix this issue is to add those domains as
> aliases under internal profile.
>
> I thought they were automatically added: what should I set to generate
> their aliases automatically?
>
> Please, help. Thanks.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130424/be695177/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list