Configuration Preservation through Trunk Updates
Hi, What is the philosophy/technique for preserving user configuration when doing updates to the latest SVN ? For example, under Windows, using Visual C++ 2008 Express, the program is built under the "\FreeSwitch\.\Debug" directory with all other FreeSwitch directories below that. When FreeSwitch is installed, the configuration directories, including conf\autoload_configs, conf\dialplan, conf\directory etc, are copied from the distro. What is the best way of preserving user configuration through future rebuilds, i.e., dialplans, extensions etc. which may have been modified from the defaults ? Can previously configs just be copied back into the appropriate directory ? Is compatibility of configs "guaranteed" to be preserved between releases, e.g., 1.0.4 to 1.0.5 or even between SVNs of the same release ? How do others manage this ? Regards Dave
The best bet is to never touch the installed configs. And thats what we don on linux. /b On Jan 20, 2010, at 10:17 AM, Dave Stevenson wrote:
What is the philosophy/technique for preserving user configuration when doing updates to the latest SVN ?
Hi Thanks Brian, OK, but I'm sure everyone has their own requirements for dialplan actions, extensions etc. If I understand you right, you're saying that I should leave all the defaults (dialplans, extensions etc.) in place and do anything specific to my installation in separate files ? I think that I can see how that would work :- Provided that I use extensions not already defined in dialplan\default.xml. then any extensions that I add won't be touched by FS. What if I redefined a pre-defined extension, would it take precedence over the data in dialpan\default.xml ? Any user dialplan actions would go into nn_xxxx.xml files in the dialplan\defaults dir and be processed after dialpan\default.xml ? If I understand correctly, I'll head off and put things right ! regards Dave ----- Original Message ----- From: Brian West To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, January 20, 2010 4:28 PM Subject: Re: [Freeswitch-users] Configuration Preservation through TrunkUpdates The best bet is to never touch the installed configs. And thats what we don on linux. /b On Jan 20, 2010, at 10:17 AM, Dave Stevenson wrote: What is the philosophy/technique for preserving user configuration when doing updates to the latest SVN ? ------------------------------------------------------------------------------ _______________________________________________ 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
You should NEVER install anything into a config folder if one already exists. But you're free to do what you want locally but we will NEVER allow the install process to install extra files or overwrite existing configs its bad behavior to do so. /b On Jan 20, 2010, at 11:29 AM, Dave Stevenson wrote:
Hi Thanks Brian,
OK, but I'm sure everyone has their own requirements for dialplan actions, extensions etc. If I understand you right, you're saying that I should leave all the defaults (dialplans, extensions etc.) in place and do anything specific to my installation in separate files ?
I think that I can see how that would work :-
Provided that I use extensions not already defined in dialplan\default.xml. then any extensions that I add won't be touched by FS. What if I redefined a pre-defined extension, would it take precedence over the data in dialpan\default.xml ?
Any user dialplan actions would go into nn_xxxx.xml files in the dialplan\defaults dir and be processed after dialpan\default.xml ?
If I understand correctly, I'll head off and put things right !
regards Dave
Brian, Following on from before, there's one item that I can't see how to do outside of modifying the directory\default.xml file, and that is setting up call groups. I thought that I'd perhaps be able to do something similar to creating user dial plans and create a new file in directory\default\ which would be loaded before the other extensions, i.e., called something like 00_groups.xml and have the call group created there. (My test file is shown below). That did not seem to work, am I on the right lines or should custom groups get created somewhere else ? regards Dave <!-- Group Configuration File --> <include> <groups> <group name="primrose"> <users> <user id="101" type="pointer"/> <user id="111" type="pointer"/> </users> </group> </groups> </include> ----- Original Message ----- From: Brian West To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, January 20, 2010 5:34 PM Subject: Re: [Freeswitch-users] Configuration Preservation throughTrunkUpdates You should NEVER install anything into a config folder if one already exists. But you're free to do what you want locally but we will NEVER allow the install process to install extra files or overwrite existing configs its bad behavior to do so. /b On Jan 20, 2010, at 11:29 AM, Dave Stevenson wrote: Hi Thanks Brian, OK, but I'm sure everyone has their own requirements for dialplan actions, extensions etc. If I understand you right, you're saying that I should leave all the defaults (dialplans, extensions etc.) in place and do anything specific to my installation in separate files ? I think that I can see how that would work :- Provided that I use extensions not already defined in dialplan\default.xml. then any extensions that I add won't be touched by FS. What if I redefined a pre-defined extension, would it take precedence over the data in dialpan\default.xml ? Any user dialplan actions would go into nn_xxxx.xml files in the dialplan\defaults dir and be processed after dialpan\default.xml ? If I understand correctly, I'll head off and put things right ! regards Dave ------------------------------------------------------------------------------ _______________________________________________ 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
On Wed, Jan 20, 2010 at 11:44 AM, Dave Stevenson <stevendt@primrosebank.net>wrote:
Brian,
Following on from before, there's one item that I can't see how to do outside of modifying the directory\default.xml file, and that is setting up call groups.
I thought that I'd perhaps be able to do something similar to creating user dial plans and create a new file in directory\default\ which would be loaded before the other extensions, i.e., called something like 00_groups.xml and have the call group created there. (My test file is shown below). That did not seem to work, am I on the right lines or should custom groups get created somewhere else ?
This leads to the bigger question of where people should put their customizations without breaking the defaults. A good example of the issue is with ivr.conf.xml and the corresponding phrase macros in conf/lang/en/en.xml. In some cases it is impossible to add customizations without modifying the default config files. I will bring this up on tomorrow's conference call. If you want to be heard on this topic then please join us on the call. I will get the agenda posted ASAP. -MC
Hi Michael, thanks for picking this up - I'm glad that it's something that is relevant to a wider audience than just me ! I'll try and join the call tomorrow - if only to listen in, regards Dave ----- Original Message ----- From: Michael Collins To: freeswitch-users@lists.freeswitch.org Sent: Thursday, January 21, 2010 7:20 PM Subject: Re: [Freeswitch-users] Configuration PreservationthroughTrunkUpdates On Wed, Jan 20, 2010 at 11:44 AM, Dave Stevenson <stevendt@primrosebank.net> wrote: Brian, Following on from before, there's one item that I can't see how to do outside of modifying the directory\default.xml file, and that is setting up call groups. I thought that I'd perhaps be able to do something similar to creating user dial plans and create a new file in directory\default\ which would be loaded before the other extensions, i.e., called something like 00_groups.xml and have the call group created there. (My test file is shown below). That did not seem to work, am I on the right lines or should custom groups get created somewhere else ? This leads to the bigger question of where people should put their customizations without breaking the defaults. A good example of the issue is with ivr.conf.xml and the corresponding phrase macros in conf/lang/en/en.xml. In some cases it is impossible to add customizations without modifying the default config files. I will bring this up on tomorrow's conference call. If you want to be heard on this topic then please join us on the call. I will get the agenda posted ASAP. -MC ------------------------------------------------------------------------------ _______________________________________________ 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
participants (3)
-
Brian West
-
Dave Stevenson
-
Michael Collins