This time around we're going to upgrade IAXmodem and Hylafax and then install Avantfax. Let's get started! [*]To upgrade IAXmodem Change to the temp directory Code: cd /usr/src Now download source code Code: wget http://superb-east.dl.sourceforge.net/sourceforge/iaxmodem/iaxmodem-1.1.1.tar.gz Now extract the contents of the download Code: tar xzvf iaxmodem-1.1.1.tar.gz Now change to extract directory Code: cd /usr/src/iaxmodem-1.1.1 Configure make environment Code: ./Configure Run make Code: make Once make completes, the binary file will be in the directory you're in. There is no make install so you have to manually copy the file to the proper place. First, you will have to kill the running iaxmodem process or you wont be able to overwrite the existing file. Use the following command to check for the running instances. Code: ps -A | grep iaxmodem Usually there will be 2 iaxmodem processes running. Make note of the process id's. Kill one of them off and it will take the other with it. Code: kill <proccess id> Now, make a backup of the EXISTING driver in case something goes horribly wrong. Code: cd /usr/sbin Code: cp iaxmodem iaxmodem.bak Now, copy the new driver over the old one Code: cp /usr/src/iaxmodem-1.1.1/iaxmodem /usr/sbin Hit 'y' when asked if you want to overwrite the existing one Now, restart iaxmodem Code: iaxmodem Check to make sure it started Code: ps -A | grep iaxmodem If you see it running you should be all set. [*]Now, to upgrade Hylafax to the latest version. Elastix has version 4.3.3 installed. The latest version from the 4.3 branch is 4.3.7 so thats what we will be installing. First, change to our temp directory. Code: cd /usr/src Download the latest source file Code: wget ftp://ftp.hylafax.org/source/hylafax-4.3.7.tar.gz Next, extract the files Code: tar xzvf hylafax-4.3.7.tar.gz Change to the source directory Code: cd hylafax-4.3.7 Next, configure the make environment Code: ./configure As long as everything comes back ok, make the files Code: make When completed, run the install Code: make install Once the install completes we need to put the new files in there proper place. By default, hylafax dumps all its binaries into /usr/local/sbin, however Elastix expects them in /usr/sbin. First, lets stop hylafax. Code: hylafax stop Now we can copy the new files to the proper directory. Code: cp /usr/local/sbin/* /usr/bin There will be a bunch of files that need to be overwritten, so make sure you answer yes to each one. Once the copy is complete there is one step left. The script that starts and stops hylafax is NOT copied to /usr/local/sbin during the install. You have to copy it from the source directory manually. Code: cp /usr/src/hylafax-4.3.7/etc/hylafax /usr/sbin *NOTE* In the source directory, the hylafax script is NOT flagged as executable. When copied to /usr/sbin it SHOULD take on the same attributes as the existing file, but if it doesn't then set the executable bit on it. Code: cd /usr/sbin Code: chmod +x hylafax Now let's start hylafax Code: hylafax start If there's no errors you should be all set with the new version. Now, onto the fun part. Installing Avantfax 3.1.4, which is actually pretty easy. First, change to source directory Code: cd /usr/src Next, download Avantfax Code: wget http://internap.dl.sourceforge.net/sourceforge/avantfax/avantfax-3.1.4.tgz Now extract the files Code: tar xzvf avantfax-3.1.4.tgz Change to the source directory Code: cd /usr/src/avantfax-3.1.4 Now, Avantfax has an install script that makes this easy, IF you follow the instructions first. If you don't make the changes below BEFORE running the install script you will gank your web interfaces. Don't ask how I know, just take my word for it. In the source directory you will see a script, called rh-install.sh. This script reads a file called rh-prefs.txt, which is what we must modify. Open the prefs file. Code: nano rh-prefs.txt Now, change the following entries as noted: Code: FAXDOMAIN=your.domain.com Code: INSTDIR=/var/www/html/avantfax Code: ROOTMYSQLPWD=your mysql root password if you changed it Code: HTTPDUSER=asterisk Code: HTTPDGROUP=asterisk Now, save the file, and then run the install script Code: ./rh-install.sh After a few seconds there will be a screen telling you how to login to Avantfax and start using it. That's it for this time! Enjoy!