Ok, here it goes: I know CVS and I know how to program. I don't know much about linux program installation. I have a WORKING asterisk based on CVS from 04/2004. It's running and, as of three days ago, it's in production as well (production = my wife's using it without knowing it). I want to patch voicemail.c to allow for configurable pager-messages. Looked at the code, and I know I can do that in 10 minutes. Once done, I'm planning to make this "patch" available to the community, provided the paperwork (release form etc) takes less time than the actual patch. Of course I know that I should based my modification on the latest-available code, but I'm a bit reluctant to upgrade my WORKING asterisk to the latest CVS. Can I rename my asterisk-dir in /usr/src to something different, then check out the latest CVS, make my changes, and if it doesn't work, revert to my working version? Or will Make and its friends throw me for a loop? Thanks -- JM
Jay Milk wrote:> Of course I know that I should based my modification on the > latest-available code, but I'm a bit reluctant to upgrade my WORKING > asterisk to the latest CVS. Can I rename my asterisk-dir in /usr/src to > something different, then check out the latest CVS, make my changes, and > if it doesn't work, revert to my working version? Or will Make and its > friends throw me for a loop?You can check out another copy of the CVS code into a directory using the "-d" parameter to the CVS checkout command. Do your work in there, and produce a patch that can be sent upstream. You'll still have to figure out how to get the patch working with your older version, though, if you want to stick with that version.
On Tue, 2004-07-06 at 10:42, Jay Milk wrote:> I want to patch voicemail.c to allow for configurable pager-messages. > Looked at the code, and I know I can do that in 10 minutes. Once done, > I'm planning to make this "patch" available to the community, provided > the paperwork (release form etc) takes less time than the actual patch. > > Of course I know that I should based my modification on the > latest-available code, but I'm a bit reluctant to upgrade my WORKING > asterisk to the latest CVS. Can I rename my asterisk-dir in /usr/src to > something different, then check out the latest CVS, make my changes, and > if it doesn't work, revert to my working version? Or will Make and its > friends throw me for a loop?Not only can you rename your working version, you also are able to checkout to a different directory. Add to it the ability to make you changes to your current install and just backup the modules you are messing with and reinstall it no problem. Then when you are happy with the patch, you could try a test against current to make sure nothing changed in the interim and submit it. The paperwork to allow work to be incorporated into asterisk is basically downloading a form, filling it out(under 2 minutes) and faxing a copy of it and mailing it to Digium. Pretty simple. -- Steven Critchfield <critch@basesys.com>
Hi Jay, Jay Milk wrote:> I want to patch voicemail.c to allow for configurable pager-messages. > Looked at the code, and I know I can do that in 10 minutes. Once done, > I'm planning to make this "patch" available to the community, provided > the paperwork (release form etc) takes less time than the actual patch. > > Of course I know that I should based my modification on the > latest-available code, but I'm a bit reluctant to upgrade my WORKING > asterisk to the latest CVS. Can I rename my asterisk-dir in /usr/src to > something different, then check out the latest CVS, make my changes, and > if it doesn't work, revert to my working version? Or will Make and its > friends throw me for a loop?Yes you can. I do it from time to time. Be sure to remove the contents of /usr/lib/asterisk/modules before installing any version (your current or the latest one), because new modules (if there are any) will not be removed when reverting back to the previous version and you will have problems. And just issue a 'make install' (not a 'make samples'!) -- Nicolas Gudino House Internet S.R.L. Buenos Aires - Argentina