I add the alias in the internal.xml inside the alias tag.

<alias name="compa.mydomain.com"/>
<alias name="compb.mydomain.com"/>

Then restart the FreeSWITCH. sofia status shows like below

internal       profile          sip:mod_sofia@A.B.C.D:5060      RUNNING (0)
compa.mydomain.com         alias                                   internal      ALIASED
compb.mydomain.com         alias                                   internal      ALIASED


Then I dial out from the phone BLF works for 10 sec then switch off automatically, but the phone still connected to the outside or any other extension.

Phone configuration SPA942  and SPA504 G I use compa.mydomain.com   in the 
proxy and outbound proxy fields. There is no IP involve in the phone configuration.


Thanks
Lloyd

On Tue, Mar 15, 2011 at 12:39 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
You need to alias every domain into your profile as well.  (See the
alias tag in the example profile)
This allows the domains to reverse map to the profile.
You also must 100% use hostnames in all of your sip phones for the
domain field.  You can still set the proxy addr to an ip but you must
have the domain present in the sip headers.


On Sun, Mar 13, 2011 at 5:20 PM, Aloysius Lloyd
<lloyd.aloysius@gmail.com> wrote:
> Hi All,
> I could not make the BLF working in multi tenant environment. Any help is
> appreciated. Discussion with BKW, he suggest to use multiple profiles. But
> if I want to use this box for x number of tenants then I need to setup x no
> of profiles. I like to use one profile for all my tenants.
> Multi tenant settings works for months without any issue.
> Here is my lab setup
> compa.mydomain.com
> Ext 201 - Cisco 504G + SPA500S Expansion Module - BLF 202,203
> Ext 202 -SPA942
> Ext 203 -SPA942
> BLF : Not working reliably .
> compb.mydomain.com
> Ext 201 - Aastra 57i  and Topkeys Configured for BLF 202,203
> Ext 202 - Aastra 6731i
> Ext 203 - Aastra 6731
> BLF: working for couple of hours then completely stop working. A reboot of
> the phone required
>
> internal profile - The following lines comments
> <!--<param name="force-register-domain" value="$${domain}"/>-->
> <!--<param name="force-subscription-domain" value="$${domain}"/>-->
> <!--<param name="force-register-db-domain" value="$${domain}"/>-->
> ---
> Any help is appreciated how to make it work with single profile
>
> Thanks
> Lloyd
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users@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@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org