Testing new code in ACID
Submitted by hwstar on Mon, 04/27/2009 - 15:53
The procedure for testing new code in ACID is as follows:
Testing a few files only
- Change directories to /usr/src/astsrc/asterisk/apps for app_rpt.c or /usr/src/astsrc/asterisk/channels for chan_irlp.c or chan_echolink.c
- Make a backup copy of the source file you want to change.
- Move or download a new source file of the same name (e.g. svn export svn://qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk/asterisk/apps/app_rpt.c)
- Move up one directory level (to /usr/src/astsrc/asterisk)
- Invoke make by typing:
makeat the shell prompt - Fix syntax errors (if any)
- Install the new binaries by typing
make installat the shell prompt - Restart asterisk by typing:
astres.sh - Test your changes
Checking out a fresh source tree and compiling Asterisk from scratch
- Check out all of the source files to a temporary working directory:
mkdir your-working-directory cd your-working-directory svn co svn://qrvc.com/projects/allstar/astsrc-1.4.23-pre/trunk
- Build and install the newer version of Asterisk
cd trunk/asterisk ./configure make install
- Restart asterisk
astres.sh
- Test away!
- Optional: Restoring the original version (in case things are really screwed up)
cd /usr/src/astsrc/asterisk make install astres.sh
- Optional: Installing the newer source code in a permanent fashion
rm -rf /usr/src/astsrc/asterisk-old mv /usr/src/astsrc/asterisk /usr/src/astsrc/asterisk-old mkdir /usr/src/astsrc/asterisk cd your-working-directory/trunk/asterisk cp -a * /usr/src/astsrc/asterisk cd /usr/src/astsrc/asterisk make install astres.sh
»
- Login to post comments
Recent comments
- macros
1 year 2 weeks ago - Step 2
1 year 2 weeks ago - Missing in step 2
1 year 2 weeks ago - Functions
1 year 2 weeks ago
Missing in step 2
For completeness of step 2 of the fresh install procedure you might want to add:
./configure
make
in the appropriate place.
Step 2
./configure followed by make install should be adequate.