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@gmail.com>
Subject: Re: [Freeswitch-users] Multi-tenat PBX using xml_curl
To:
FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Message-ID:
<CAKbxfG_mwSrGjCvcm3AUTwMchSXW+OwSwt0RcSKfE4dkzLjpcw@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@yahoo.it>
A: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@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}"/>