[SR-Users] Multi-tenant SBC Kamailio

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 22 15:29:36 CET 2014


On 22/12/14 13:24, Kalala Alexander wrote:
> I tried it ((Then do everything stops working ....

You can easily imagine that nobody can help you when you give such
details. You have to give more details about what happens, such as what
log messages you get in syslog, the sip traffic, etc...

How did you decide to give those lines from config in this email, what
you thought we were supposed to guess out of them?

Daniel


> http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
>  
> Kamailio 4.2
>  
> #!define WITH_MULTIDOMAIN
>  
> #!define MULTIDOMAIN 1
>  
> #!ifdef WITH_MULTIDOMAIN
> modparam("domain", "db_url", DBURL)
> modparam("domain", "register_myself", 1)
> #!endif
>  
>  
>  
> 22.12.2014, 14:44, "Daniel-Constantin Mierla" <miconda at gmail.com>:
>> Read the top part of kamailio.cfg (provided you are running 4.2 or
>> some other recent stable series) -- you should see there some notes
>> about enabling multi-domain.
>>
>> Should be like definining:
>>
>> #!define WITH_MULTIDOMAIN
>>
>> On more specific, see the parameters exported by modules and set
>> use_domain to 1.
>>
>> Cheers,
>> Daniel
>>
>> On 21/12/14 20:05, Kalala Alexander wrote:
>>> Yes it is...
>>> http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
>>>  
>>> route[LOCATION] {
>>>
>>> #!ifdef WITH_ALIASDB
>>> # search in DB-based aliases
>>> alias_db_lookup("dbaliases");
>>> #!endif
>>>
>>> if (!lookup("location")) {
>>> switch ($rc) {
>>> case -1:
>>> case -3:
>>> t_newtran();
>>> t_reply("404", "Not Found");
>>> exit;
>>> case -2:
>>> sl_send_reply("405", "Method Not Allowed");
>>> exit;
>>> }
>>> }
>>>  
>>> How to check the Multi-tenant?
>>>  
>>> 21.12.2014, 21:46, "Salman Zafar" <msalman212 at gmail.com>
>>> <mailto:msalman212 at gmail.com>:
>>>> Hi,
>>>>  
>>>> Make sure you have logic before location lookup that distinguishes
>>>> the multi domains and looks up with the caller's domain, and
>>>> ofcourse you have to have multi-domain enabled.
>>>>
>>>> On Sun, Dec 21, 2014 at 11:43 PM, Kalala Alexander
>>>> <klistrod at yandex.ru <mailto:klistrod at yandex.ru>> wrote:
>>>>
>>>>     Hi,
>>>>      
>>>>     Tried to make multitent authorization by Radius, for instructions:
>>>>     http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
>>>>
>>>>     But when calling subscriber 201 at domain1.com
>>>>     <mailto:201 at domain1.com>, Kamailio calls to all subscribers:
>>>>     201 at domain1.com <mailto:201 at domain1.com> and 201 at domain2.com
>>>>     <mailto:201 at domain2.com> and 201 at domain3.com
>>>>     <mailto:201 at domain3.com>
>>>>
>>>>     FreeSwitch the call to only one subscriber.
>>>>
>>>>     What can I change?
>>>>      
>>>>     /--
>>>>     С уважением/
>>>>     /Инженер по телекоммуникациям /
>>>>     /Калала Александр /
>>>>     /vel: 375291146285/
>>>>     /life: 375256819996//
>>>>     /
>>>>     /skype: klistrod
>>>>     /
>>>>     / /
>>>>     /VoIP Network Engineer
>>>>     dCAP, CCNAVoice
>>>>     Kalala Alexander/
>>>>     http://callcenters.by/ //
>>>>     http://skytel.by/
>>>>     http://voiplab.by/
>>>>     http://asterisk-pbx.by/
>>>>      
>>>>      
>>>>      
>>>>      
>>>>      
>>>>      
>>>>
>>>>     _______________________________________________
>>>>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
>>>>     mailing list
>>>>     sr-users at lists.sip-router.org
>>>>     <mailto:sr-users at lists.sip-router.org>
>>>>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>>
>>>>
>>>>  
>>>> -- 
>>>> Regards
>>>>
>>>> M. Salman Zafar
>>>> VoIP Professional
>>>> ,
>>>>
>>>> _______________________________________________
>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>>> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>  
>>>  
>>> /--
>>> С уважением/
>>> /Инженер по телекоммуникациям /
>>> /Калала Александр /
>>> /vel: 375291146285/
>>> /life: 375256819996//
>>> /
>>> /skype: klistrod
>>> /
>>> / /
>>> /VoIP Network Engineer
>>> dCAP, CCNAVoice
>>> Kalala Alexander/
>>> http://callcenters.by/ //
>>> http://skytel.by/
>>> http://voiplab.by/
>>> http://asterisk-pbx.by/
>>>  
>>>  
>>>  
>>>  
>>>  
>>>  
>>>
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>> -- 
>> Daniel-Constantin Mierla
>> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>> ,
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>  
>  
> /--
> С уважением/
> /Инженер по телекоммуникациям /
> /Калала Александр /
> /vel: 375291146285/
> /life: 375256819996//
> /
> /skype: klistrod
> /
> / /
> /VoIP Network Engineer
> dCAP, CCNAVoice
> Kalala Alexander/
> http://callcenters.by/ //
> http://skytel.by/
> http://voiplab.by/
> http://asterisk-pbx.by/
>  
>  
>  
>  
>  
>  

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20141222/44a6c1cc/attachment.html>


More information about the sr-users mailing list