[Freeswitch-users] domain

Boris Kovalenko boris at tagnet.ru
Fri Jun 3 13:16:48 MSD 2011


Hello!

     There is a variable named ${sip_from_user}. You may do something like

<action application="set" 
data="from_domain=${regex(${sip_from_user}|^.*@(.*)$|%1)}" inline="true"/>
<action application="transfer" data="${from_domain} XML domain_context"/>

> The call would be coming from outside to FS and not within , so the 
> call would be routed from public to different domains ,
>
> and after that following the doc 
> http://wiki.freeswitch.org/wiki/Multi-tenant
>
> Here how can we recognized from the header on which domain is it ?  
> like if we get an from header as 1001 at xyz.com <mailto:1001 at xyz.com>
> how can we recognized the domain and route the call accordingly ... 
> when an outside system sends a call via acl .
>
> regards
> Sam
>
> On Fri, Jun 3, 2011 at 1:51 PM, Boris Kovalenko <boris at tagnet.ru 
> <mailto:boris at tagnet.ru>> wrote:
>
>     Hello!
>
>         What do You mean? You may (for example) set the domain
>     variable for a user and test it inside condition.
>
>>     Hello,
>>
>>     I have a user registered by domain (1001 at xyz.com
>>     <mailto:1001 at xyz.com>) and when the invite comes to my FS server
>>     it should recognize the domain and route
>>     the calls accordingly to the group <domain name="xyz.com
>>     <http://xyz.com>">  ... </domain> .
>>     The call would be entering via the acl to public.xml. Here i want
>>     to route the call according to domain names, how will i do that.
>>
>>     Any suggestions...
>>
>>
>>     Regards
>>     Sam
>>
>>
>>
>>     _______________________________________________
>>     FreeSWITCH-users mailing list
>>     FreeSWITCH-users at lists.freeswitch.org  <mailto: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
>
>
>     -- 
>     Regards,
>     Boris
>
>
>
>     _______________________________________________
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto: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
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> 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


-- 
Regards,
Boris


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110603/b5649c66/attachment.html 


More information about the FreeSWITCH-users mailing list