Hello everybody! I'm setting up a Multi Tenant FS server and i'd like to define global variables for every customer in order to implement features like Day/Nite mode like the guide posted on http://wiki.freeswitch.org/wiki/Simple_Day_Nite_Mode Defining variables on vars.xml, i think i'll not have a clean variables space if i put on the server more than one domain. Do you suggest me a way to solve this in a clean way? Thank you in advice Gabriele -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Global-Variable-Domain-Scoped-... Sent from the freeswitch-users mailing list archive at Nabble.com.
you can set the needed channel variables at the beginning of each context. Then they will be visible within the current call only. ________________________________ From: crazygabry <crazygabry@gmail.com> To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, September 24, 2013 3:43 PM Subject: [Freeswitch-users] Global Variable Domain Scoped Hello everybody! I'm setting up a Multi Tenant FS server and i'd like to define global variables for every customer in order to implement features like Day/Nite mode like the guide posted on http://wiki.freeswitch.org/wiki/Simple_Day_Nite_Mode Defining variables on vars.xml, i think i'll not have a clean variables space if i put on the server more than one domain. Do you suggest me a way to solve this in a clean way? Thank you in advice Gabriele -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Global-Variable-Domain-Scoped-... Sent from the freeswitch-users mailing list archive at Nabble.com. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
Yes i know it. But how can i manage for example Day/Nite mode in a multi tenant environment? Thanks a lot -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Global-Variable-Domain-Scoped-... Sent from the freeswitch-users mailing list archive at Nabble.com.
Use your imagination. You can either define variables inside the domain tag in your user directory instead of in the user, or you can give your different tenants a dedicated context in the dialplan or you can use lua or xml curl to deliver dynamic content. On Wed, Sep 25, 2013 at 9:24 AM, crazygabry <crazygabry@gmail.com> wrote:
Yes i know it. But how can i manage for example Day/Nite mode in a multi tenant environment?
Thanks a lot
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Global-Variable-Domain-Scoped-... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Solved using you first suggestion. Thank you very much :) -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Global-Variable-Domain-Scoped-... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (3)
-
Anthony Minessale
-
crazygabry
-
Stanislav Sinyagin