Howto Upgrade IAXmodem,Hylafax,& Install Avantfax

k2kmb

Joined
Oct 1, 2008
Messages
10
Likes
0
Points
0
#1
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!
 

wholly

Joined
Sep 6, 2008
Messages
14
Likes
0
Points
0
#2
Utilising your instructions to upgrade Hylafax on Elaxtix 1-5.2

It will not change the server version from 4.3.3

telnet localhosy hylafax.

I would like to upgrade to hylafax 6.0.1

Any ideas !!!

wayne
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#3
If you have a good reason to upgrade, and you have a very good understanding of what you are doing, then:

read first

http://www.hylafax.org/content/HylaFAX_6.0.0_release

then

http://git.hylafax.org/HylaFAX?a=blob;f ... AFAX-6_0_0

and then if you agree with all you read:

rpm -Uhv ftp://ftp.hylafax.org/binary/linux/redh ... 5.i386.rpm
rpm -Uhv ftp://ftp.hylafax.org/binary/linux/redh ... 5.i386.rpm


This should upgrade Hylafax to 6.0.1, It apparently worked for me yesterday but that was on a dedicated fax server and Elastix or avantfax where not involved although asterisk and iaxmodems where (I also had a good image of the hylafax server before I proceeded), I guess monday will be the truthtelling day! . I look forward to your success story . . .
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#4
Nice tutorial k2kmb!

But why don't you install Avantfax 3.1.6?
 

wholly

Joined
Sep 6, 2008
Messages
14
Likes
0
Points
0
#5
Excellent Post !!.

Only problem is that I needed to a a procedure to the end of the Hylafax upgrade.

that was faxsetup

then I configured as needed ...

Then you beauty.....!!! Bingo Hylafax v6.0.1

No I just need to get the dammm faxing working over Voip.

Still getting a 1k PDF via email and No Dial Tone and No Carrier Detected >????

Any ideas !>>>?!!

wayne
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#6
Faxes only work over g711 codecs, and even then unless your VSP and your connection to it is "perfect" it just won't be acceptable (unless all endpoints are t38 compliant, unfortunately elastix/asterisk can only do "passthrough" right now). the /var/spool/hylafax/logs directory might give you insight, and "no dialtone" suggests that your iaxmodems aren't quite right yet (call one from an extension and subjectively listen to the "fax tones" ) , does the asterisk CLI show you making the call? As a test setup send a fax to another local iaxmodem and run:
watch faxstat
in bash

I suggest that following ramoncio's avantfax install script might get you to the next step.

(watch out for hfaxd etc. being in /usr/local/* rather than /usr/* as per the original post, and where iaxmodem, hylafax and avantfax have all been updated in the last 6 months, thanks to k2kmb, I used his post way back when, but ramoncio's method is more "Elastix mainline" (if you are a native spanish speaker, (my guess is your aussie so even pommie won't work for you :( ) , otherwise I suggest you modify his script a little :) )
 

wholly

Joined
Sep 6, 2008
Messages
14
Likes
0
Points
0
#7
I can't get access to the rmp files on hylafax.org

Can anyone else ???

wayne
 

jessie

Joined
Sep 17, 2008
Messages
124
Likes
0
Points
0
#8
Wholly,

Here is the working rpm link:

rpm -Uhv ftp://ftp.hylafax.org/binary/linux/redh ... 5.i386.rpm

rpm -Uhv ftp://ftp.hylafax.org/binary/linux/redh ... 5.i386.rpm

Yes, this is right but on my part, I am running in Elastix 1.6.7 beta2 version and I am having problem in upgrading hylafax.

For Dicko,

Hi Dicko it is me again. I am currently playing on the Elastix 1.6.7 beta2 release. I noticed also that the current version of hylafax is still in 4.3.3. I just wonder (based on the release notes) will fixed my problem in fax, so I decided to play this around again. I am having this error upon running the rpm:

[root@voip ~]# rpm -Uhv ftp://ftp.hylafax.org/binary/linux/redh ... 5.i386.rpm
Retrieving ftp://ftp.hylafax.org/binary/linux/redh ... 5.i386.rpm
error: Failed dependencies:
hylafax is needed by (installed) elastix-1.6-7.noarch
[root@voip ~]# rpm -Uhv ftp://ftp.hylafax.org/binary/linux/redh ... 5.i386.rpm
Retrieving ftp://ftp.hylafax.org/binary/linux/redh ... 5.i386.rpm
error: Failed dependencies:
hylafax-client = 6.0.3-1rhel5 is needed by hylafax-server-6.0.3-1rhel5.i386
libhylafax-6.0.so.3 is needed by hylafax-server-6.0.3-1rhel5.i386

Your thought and ideas are needed again.


Best regards to all,

Jessie
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#9
Hi jessie,

Try with:

rpm -Uhv --nodeps whatever.rpm
 

jessie

Joined
Sep 17, 2008
Messages
124
Likes
0
Points
0
#10
Thank you very much Ramoncio, that realy works...


cheers,

jessie
 

netview

Joined
Jul 20, 2010
Messages
2
Likes
0
Points
0
#11
i make all the steps and install AvantFax but when i try to login with default user name /pass it display the error : Illegal operation. The link i try to login is https://192.168.1.2/avantfax/index.php. Any help?
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,888
Members
17,568
Latest member
mehdii_igi
Top