Ahmed,

You are probably configuring your sip client wrong.
Make sure you set the outbound proxy of your SIP client to your FS and the SIP Client's domain to company-a.org

like:
outbound-proxy: 192.168.0.11
domain: company-a.org
user: 1000 (or 1000@company-a.org) 
password: 1234

it all depends on your SIP client, what client are you using?
Also, i would leave the group name as 'default' like below:

2-company-a.org.xml:
root@:/usr/local/freeswitch/conf/directory# cat company-a.org.xml 
<include>
  <!--the domain or ip (the right hand side of the @ in the addr-->
  <domain name="company-a.org">
    <params>
      <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
    </params>

    <variables>
      <variable name="record_stereo" value="true"/>
      <variable name="default_gateway" value="$${default_provider}"/>
      <variable name="default_areacode" value="$${default_areacode}"/>
      <variable name="transfer_fallback_extension" value="operator"/>
      <variable name="user_context" value="company-a.org"/>
    </variables>

    <groups>
<!--      <group name="company-a.org"> -->
      <group name="default">
        <users>
          <X-PRE-PROCESS cmd="include" data="company-a.org/*.xml"/>
        </users>
      </group>

    </groups>

  </domain>
</include>


Thanks
/V

On Sun, Sep 21, 2014 at 5:24 PM, Ahmed Habiba <ahabiba@gmail.com> wrote:
I’ve go through the book however I was not able to identify the issue, my configuration is as below:

1-Directory folder as below:

root@:/usr/local/freeswitch/conf/directory# ls -ltr
total 16
-rw-r--r-- 1 root root 2925 Aug 27 12:17 default.xml
drwxr-xr-x 2 root root 4096 Sep 19 20:47 default
-rw-r--r-- 1 root root  835 Sep 20 16:27 company-a.org.xml
drwxr-xr-x 2 root root 4096 Sep 20 16:50 company-a.org

2-company-a.org.xml:
root@:/usr/local/freeswitch/conf/directory# cat company-a.org.xml 
<include>
  <!--the domain or ip (the right hand side of the @ in the addr-->
  <domain name="company-a.org">
    <params>
      <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
    </params>

    <variables>
      <variable name="record_stereo" value="true"/>
      <variable name="default_gateway" value="$${default_provider}"/>
      <variable name="default_areacode" value="$${default_areacode}"/>
      <variable name="transfer_fallback_extension" value="operator"/>
      <variable name="user_context" value="company-a.org"/>
    </variables>

    <groups>
      <group name="company-a.org">
        <users>
          <X-PRE-PROCESS cmd="include" data="company-a.org/*.xml"/>
        </users>
      </group>

    </groups>

  </domain>
</include>

3-company-a.org.xml:
root@:/usr/local/freeswitch/conf/directory# ls -l company-a.org
total 100
-rw-r--r-- 1 root root  851 Sep 20 16:50 1000.xml
-rw-r--r-- 1 root root  751 Aug 27 12:17 1001.xml
-rw-r--r-- 1 root root  751 Aug 27 12:17 1002.xml
-rw-r--r-- 1 root root  751 Aug 27 12:17 1003.xml
-rw-r--r-- 1 root root  751 Aug 27 12:17 1004.xml
-rw-r--r-- 1 root root  751 Aug 27 12:17 1005.xml
-rw-r--r-- 1 root root  751 Aug 27 12:17 1006.xml

4- in internal.xml I commented the below lines:
root@openerp:/usr/local/freeswitch/conf/sip_profiles# vi internal.xml

    <!--all inbound reg will look in this domain for the users -->
    <!--<param name="force-register-domain" value="$${domain}"/>-->
    <!--force the domain in subscriptions to this value -->
    <!--<param name="force-subscription-domain" value="$${domain}"/>-->
    <!--all inbound reg will stored in the db using this domain -->
    <!--<param name="force-register-db-domain" value="$${domain}"/>-->

5-In zoiper client I use 1000@company-a.org as a user name instead of 1000.

and finally I still getting SIP/2.0 403 Forbidden

Your help is always appreciated.

Thanks in advance,

Ahmed Habiba.

From: Stanislav Sinyagin <ssinyagin@gmail.com>
Subject: Re: [Freeswitch-users] Multi Tenant (Company), User unable to register ( SIP/2.0 403 Forbidden)
Date: September 21, 2014 at 11:37:10 PM GMT+3
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>


Have you read the freeswitch book? It gives answers to most questions.
Also you haven't given a clue how your configuration looks like, so what kind of help do you expect?

Of course you can easily find someone who can set up your server for money... Although the book is usually enough.

On Sep 21, 2014 9:36 PM, "Ahmed habiba" <ahabiba@gmail.com> wrote:

What would be the extra value of FusionPBX if I'm not able to use the back-end manual configuration.

Your kind help will be appreciated.

Thanks,

Ahmed Habiba. 
-------------------------------------
From: Luis Daniel Lucio Quiroz <luis.daniel.lucio@gmail.com>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Cc: 
Date: Sat, 20 Sep 2014 18:33:38 -0400
Subject: Re: [Freeswitch-users] Multi Tenant (Company), User unable to register ( SIP/2.0 403 Forbidden)
Have you consider to use FusionPBX?

On Sep 20, 2014 5:36 PM, "Ahmed Habiba" <ahabiba@gmail.com> wrote:
Hello Everybody,

I’ve been trying to configure FreeSWITCH in multi tenant mode however I always get “403 Forbidden” during user registration, I use the same tutorial on wiki as is with name and paramters "https://wiki.freeswitch.org/wiki/Multiple_Companies” with consideration that my network scenario is as below:

[FreeSWITCH(real IP)]<———>[Internet]<———>[NAT]<———>[Client]

Your kind help will be appreciated.

Thanks and Best Regards,

Ahmed Habiba.


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

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