[Freeswitch-users] Multi Tenant (Company), User unable to register ( SIP/2.0 403 Forbidden)

Ahmed Habiba ahabiba at gmail.com
Mon Sep 22 01:24:57 MSD 2014


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 at 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 at 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 at 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 at lists.freeswitch.org>
Reply-To: FreeSWITCH Users Help <freeswitch-users at 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 at 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 at gmail.com>
To: FreeSWITCH Users Help <freeswitch-users at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140922/529fdfd4/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list