Skip navigation.
The fusion of 2-way radio systems and VOIP

Testing new code in ACID

The procedure for testing new code in ACID is as follows:


Testing a few files only

  1. 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
  2. Make a backup copy of the source file you want to change.
  3. 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)
  4. Move up one directory level (to /usr/src/astsrc/asterisk)
  5. Invoke make by typing: make at the shell prompt
  6. Fix syntax errors (if any)
  7. Install the new binaries by typing make install at the shell prompt
  8. Restart asterisk by typing: astres.sh
  9. Test your changes


Checking out a fresh source tree and compiling Asterisk from scratch

  1. 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
    
  2. Build and install the newer version of Asterisk
    cd trunk/asterisk
    ./configure
    make install
    
  3. Restart asterisk
    astres.sh
    
  4. Test away!
  5. Optional: Restoring the original version (in case things are really screwed up)
    cd /usr/src/astsrc/asterisk
    make install
    astres.sh
    
  6. 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
    

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.

Recent comments