[Freeswitch-users] Multi Tenant (Company), User unable to register ( SIP/2.0 403 Forbidden)
Vik Killa
vipkilla at gmail.com
Mon Sep 22 05:52:30 MSD 2014
Lloyd that's not necessary as long as the sip client is capable of using an
outbound proxy. I have tested using domains that do not resolve for example
'test.domain01'
This works on every client I've tested, polycoms, Ciscos, blink, Ekiga,
xlite.
On Sunday, September 21, 2014, Lloyd Aloysius <lloyd.aloysius at gmail.com>
wrote:
> Another note, you need to setup the DNS. Use your own domain, not the
> company-a.org.
>
> Lloyd
>
>
> On Sun, Sep 21, 2014 at 9:10 PM, Vik Killa <vipkilla at gmail.com
> <javascript:_e(%7B%7D,'cvml','vipkilla at gmail.com');>> wrote:
>
>> *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 <http://company-a.org>*
>>
>>
>> *like:outbound-proxy: 192.168.0.11*
>> *domain: **company-a.org <http://company-a.org>*
>> *user: 1000 (or **1000@**company-a.org <http://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 <http://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 <http://company-a.org/>*"> -->
>> <group name="*d <http://company-a.org/>efault*">
>> <users>
>> <X-PRE-PROCESS cmd="include" data="*company-a.org/*.xml
>> <http://company-a.org/*.xml>*"/>
>> </users>
>> </group>
>>
>> </groups>
>>
>> </domain>
>> </include>
>>
>>
>> Thanks
>> /V
>>
>> On Sun, Sep 21, 2014 at 5:24 PM, Ahmed Habiba <ahabiba at gmail.com
>> <javascript:_e(%7B%7D,'cvml','ahabiba at 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
>>> <http://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 <http://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 <http://company-a.org>*">
>>> <users>
>>> <X-PRE-PROCESS cmd="include" data="*company-a.org/*.xml
>>> <http://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@*company-a.org <http://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
>>> <javascript:_e(%7B%7D,'cvml','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
>>> <javascript:_e(%7B%7D,'cvml','freeswitch-users at lists.freeswitch.org');>>
>>> *Reply-To: *FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org
>>> <javascript:_e(%7B%7D,'cvml','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
>>> <javascript:_e(%7B%7D,'cvml','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
>>>> <javascript:_e(%7B%7D,'cvml','luis.daniel.lucio at gmail.com');>>
>>>> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org
>>>> <javascript:_e(%7B%7D,'cvml','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
>>>> <javascript:_e(%7B%7D,'cvml','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.
>>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> <javascript:_e(%7B%7D,'cvml','consulting at freeswitch.org');>
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>>
>>>
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> <javascript:_e(%7B%7D,'cvml','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
>>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> <javascript:_e(%7B%7D,'cvml','consulting at freeswitch.org');>
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>>
>>
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> <javascript:_e(%7B%7D,'cvml','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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140921/584c57f3/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list