TrixBox-2.3.0.3 with Postfix, Iaxmodem, Hylafax and Avantfax working perfectly

lamarmora
Posts: 20
Member Since:
2006-12-21

I managed to have a TB box with Iaxmodem, Hylafax and Avantfax working perfectly.
So I wrote down what I did step by step.
Be only carefull that my box is a TrixBox-2.3.0.3 and there could be some differences if you run TrixBox-2-.2.4 expecially for what is related to upgrading PHP4 to PHP5.
I also troubled a lot to get it all working so I presume that any little difference on your box could break the system and could need adjustments.
So please don't use my step-by-step giude straight on your working box, but try it first on a spare one.
I really would hate to see people around searching for me with a knife between their teeth.
Forgive, moreover, the grammar and/or spellig mistakes that you will surely find, but English is not my mother language.

1) INSTALL POSTFIX INSTEAD OF SENDMAIL (much easier to configure)
But you can jamp this step if you already managed to get Sendmail working.

#rpm -e --nodeps sendmail
#yum install postfix
#vi /etc/postfix/main.cf
insert this line:

relayhost = mail.my_provider.com (use your smtp server)

check that all the other lines with "relayhost=xyz...." are commented out.

close an save /etc/postfix/main.cf

#service postifix start

2) INSTALL IAXMODEM AND HYLAFAX

#yum install ghostscript sharutils mgetty-voice
#ln -s /usr/share/fonts/default/ghostscript/ /usr/share/ghostscript/fonts

#yum install iaxmodem
#mkdir /var/log/iaxmodem
#touch /var/log/iaxmodem/iaxmodem-cfg.IAX
#vi /etc/iaxmodem/iaxmodem-cfg.ttyIAX
and this is my one:

device /dev/ttyIAX
owner uucp:uucp
mode 660
port 4570 (it should be 4569 but I already have other IAX Trunks on that port)
refresh 60 (you can leave 300 but you'll get nasty messages on"/var/log/asterisk/full")
server 127.0.0.1
peername 444 (this is the extension I created for fax in my TrixBox)
secret my_password
cidname S.CHIARA-BRESCIA (whatever name you want to be displayed on your sent faxes
cidnumber 0303542080 (whatever number you want to be displayed on your sent faxes)
codec alaw

COMMENT to "codec alaw": I'm in Italy and it works fine with this codec, it should be "ulaw" in the States I presume -- you can try "slinear" as well
Only don't forget to put the same codec in the IAX extension in your TrixBox -444 in my case described below.

Log into your FreePBX Control Pannel with your browser and create a new "IAX extenson"

Setup ---> Extensions ---> IAX2

Display Name: IaxModem
Extension Number: 444

secret my_password
notransfer yes
context from-internal
host dynamic
type friend
port 4570
qualify yes
disallow all
allow alaw
dial IAX2/444
accountcode
mailbox 444@device

Record Incoming: Never
Record Outgoing: Never

COMMENT: what I personally did at this point was disable TrixBox fax recognition and set up a SIP trunk pointed to my provider (Eutelia) with a telephone number that I use only for faxing.
Then I set up an InboundRoute "my_fax_number/any cid" pointing to extension 444. In this way when I get a fax on my fax line I get it without even hearing the telephone bells but if somebody sends me by mistake a fax on another line (one of the ones I use for voice) I can just transfer it on to extension 444.

Now download the latest binaries of "hylafax"

#cd /whre_you_put_your_download
#rpm -ivh hylafax-4.4.1-1rhel4.i386.rpm (could be a newer one by the time you do all this)
#faxsetup (answer yes or the default to everything except from "AreaCode" and: "do you want faxaddmodem to configure a modem[yes]": say "no" to this one)
#cd /var/spool/hylafax/etc
#touch xferfaxlog
#chown uucp:uucp xferfaxlog
#vi FaxDispatch (create it if it doesn't exists)
insert these two lines:

SENDTO=my_address@my_domain.com; # by default email to FaxMaster
FILETYPE=pdf; # in PDF format

close and save FaxDispatch

#chown uucp:uucp FaxDispatch

COMMENT: with FaxDispatch set in this way every fax that you recieve will be sent to your mail box. If it is enaugh for your needs: stop here, but you will have to send faxes manually with the command "sendfax" which is not very confortable. Therefore I also installed "AVANTFAX"

COMMENT: check the Hylafax config files: this is the "/var/spool/hylafax/etc/config.ttyIAX" that works for me. It could be different in other Nations:

CountryCode: 39
AreaCode: 030
FAXNumber: +39.030.2056784
LongDistancePrefix: 0
InternationalPrefix: 00
DialStringRules: etc/dialrules.europe
ServerTracing: 0xFFF
SessionTracing: 0xFFF
RecvFileMode: 0644
LogFileMode: 0644
DeviceMode: 0644
RingsBeforeAnswer: 2
SpeakerVolume: off
GettyArgs: "-h %l dx_%s"
LocalIdentifier: "S.CHIARA-BRESCIA"
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "Ricevuto da %%l|%c|Pagina %%P di %%T"
MaxRecvPages: 200
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType: Class1 # use this to supply a hint

#
# The modem is taken off-hook during initialization, and then
# placed back on-hook when done to prevent glare.
#
ModemResetCmds: "ATH1\nAT+VCID=1" # enables CallID display
ModemReadyCmds: ATH0

Class1AdaptRecvCmd: AT+FAR=1
Class1TMConnectDelay: 400 # counteract quick CONNECT response
Class1RMQueryCmd: "!24,48,72,96" # V.17 fast-train recv doesn't work well

CallIDPattern: "NMBR="
CallIDPattern: "NAME="
CallIDPattern: "ANID="
CallIDPattern: "NDID="
# Uncomment these if you really want them, but you probably don't.
#CallIDPattern: "DATE="
#CallIDPattern: "TIME="
#20060302 JDG - Fix for broken libtiff JBIG support in tiff2pdf
Class1JBIGSupport: no

COMMENT: and this is my "/var/spool/hylafax/etc/config":

LogFacility: daemon
CountryCode: 39
AreaCode: 030
LongDistancePrefix: 0
InternationalPrefix: 00
DialStringRules: dialrules.europe
ServerTracing: 1

Then to start Hylafax and Iaxmodem:

#vi /etc/inittab
add these 2 lines at the bottom:

t2:23:respawn:/usr/sbin/faxgetty ttyIAX
IAX:2345:respawn:/usr/sbin/iaxmodem iaxmodem-cfg.ttyIAX

COMMENT: if you follow my suggestion and start "iaxmodem" and "fax-getty" with "inittab" make sure that they are not run as services as well:
#setup
go to "services" and check that these two are switched off.

3)UPGRADE TO PHP5

#vi /etc/yum.repos.d/CentOS-Base.repo
Go to " and centosplus" and change "enable=0" to enable=1 (at line 55 in my file)

#yum upgrade php
and this is what happened on my system:

php i386 5.1.6-3.el4s1.7 centosplus 1.1 M
Installing for dependencies:
mysql-libs i386 5.0.48-1.el4.centos centosplus 1.8 M
mysqlclient14 i386 4.1.22-1.el4s1.1 centosplus 1.2 M
php-cli i386 5.1.6-3.el4s1.7 centosplus 2.0 M
php-common i386 5.1.6-3.el4s1.7 centosplus 135 k
php-pdo i386 5.1.6-3.el4s1.7 centosplus 219 k
Updating for dependencies:
mysql i386 5.0.27-1.el4.centos centosplus 3.3 M
mysql i386 5.0.48-1.el4.centos centosplus 2.7 M
mysql-devel i386 5.0.48-1.el4.centos centosplus 2.8 M
mysql-server i386 5.0.48-1.el4.centos centosplus 9.7 M
perl i386 4:5.8.8-4.el4s1 centosplus 11 M
perl-DBD-MySQL i386 3.0008-1.el4.centos centosplus 145 k
php-gd i386 5.1.6-3.el4s1.7 centosplus 102 k
php-imap i386 5.1.6-3.el4s1.7 centosplus 48 k
php-mbstring i386 5.1.6-3.el4s1.7 centosplus 969 k
php-mysql i386 5.1.6-3.el4s1.7 centosplus 77 k
php-pear noarch 1:1.4.11-1.el4s1.1 centosplus 345 k
php-snmp

#ln -s /usr/lib/php/modules/* /usr/lib/php4/
#yum install ImageMagick ghostscript libtiff netpbm-progs libungif sudo a2ps psutils expect php-pecl-Fileinfo php-devel
#pear upgrade-all
#pear install db mail mail_mime
#pear channel-update pear.php.net
#mysql_fix_privilege_tables --user=root --password=passw0rd
#chown -R asterisk:asterisk /var/lib/php/session

4) INSTALL AVANTFAX

DOWNLOAD AND UNTAR AVANTFAX

#cd /anywhere_you_untarred_the_sources/avantfax-2.2.6
#chown -R asterisk:asterisk avantfax
#mv avantfax /var/www/html/
#mysql -uroot -ppassw0rd < create_user.sql
#mysql -uavantfax -pd58fe49 avantfax < create_tables.sql
#cd /var/www/html/avantfax/includes/
#cp -a local_config-example.php local_config.php
#vi local_config.php
and change "$dft_config_lang = "en";" to your language ("it" in my case)

#chmod -R 777 /var/www/html/avantfax/tmp
#chmod -R 777 /var/www/html/avantfax/faxes
#cd /var/spool/hylafax/bin
#mv faxrcvd faxrcvd.old
#mv notify notify.old
#ln -s /var/www/html/avantfax/includes/faxrcvd.php /var/spool/hylafax/bin/faxrcvd
#ln -s /var/www/html/avantfax/includes/notify.php /var/spool/hylafax/bin/notify
#mv /usr/bin/faxcover /usr/bin/faxcover.old
#ln -s /var/www/html/avantfax/includes/faxcover.php /usr/bin/faxcover
#/usr/sbin/faxadduser -a pwd asterisk
#/usr/sbin/faxdeluser localhost
#/usr/sbin/faxdeluser 127.0.0.1
#echo 127.0.0.1 >> /var/spool/hylafax/etc/hosts.hfaxd
#vi /etc/sudoers
and add the following line (all on one line):
asterisk ALL = NOPASSWD: /sbin/reboot, /sbin/halt, /usr/sbin/faxdeluser, /usr/sbin/faxadduser -u * -p * *

#vi /etc/crontab
and add the following 2 lines:
0 * * * * /var/www/html/avantfax/includes/phb.php
0 0 * * * /var/www/html/avantfax/includes/remold.php

#vi /etc/yum.repos.d/CentOS-Base.rep
Go to " and centosplus" and set back "enable=1" to enable=0 (always at line 55 in my file)

Reboot.

Now point your browser to:
"http://where_your_FreePBX_is/avantfax/admin"
and configure a user for AVANTFAX
and then to
"http://where_your_FreePBX_is/avantfax"
to login with the user you just created.

To make everything work I picked up a lot from things written by "GuardianiUS" and "rrisco", so let me thank them very much.

It works for me and I hope somebody can find it usefull.

If you want to see my Avantfax start page: "http://fax.ovsc.it:8080"

Giuliano



drose25
Posts: 59
Member Since:
2007-01-16
Wow! Thanks

Thanks for the great walk-through! I used it to install AvantFax and it's worked like a charm.



GSnover
Posts: 1300
Member Since:
2006-11-19
I will have to try this tonight - Looks GREAT!

I love when people post howto's - nice to not have to reinvent the wheel every time...

Greg



markwho
Posts: 645
Member Since:
2006-09-24
Great work

Great work. Thanks for the step-by-step!!

--

Mark



grolo
Posts: 25
Member Since:
2006-11-23
Great job, i followed your

Great job, i followed your link and also this one

http://www.julianmenendez.es/documentos/asterisk_hylafax_iaxmodem

and everything works perfect, unless avantfax, but i am using winprinthylafax to send mails from MS Windows, which i think is easier because you don't have to convert the files into pdf or tiff before send.

Thanks.



lamarmora
Posts: 20
Member Since:
2006-12-21
I'm glad you liked it

I'm really glad that some of you found usefull my step-by-step little howto.
Sice I started to use VoIP telephony and Trixbox I took so many suggestions and ideas form this and other forumus that I can honestly say that I couldn't do much without other people's help.
So I'm really satisfied by the fact that I managed to pay back a little bit of what I took.

Grolo I'm sorry that your Avantfax is not working. If you need it and try to post here the errors you get I can try to help you.

Greetings

Giuliano



grolo
Posts: 25
Member Since:
2006-11-23
I have created in the admin

I have created in the admin a modem named ttyIAX and a user.

When i log as the user i have created, and i try to send a fax i receive this message:

Fatal error: Call to a member function get_name() on a non-object in /var/www/html/avantfax/sendfax.php on line 129

But i realized just now that i can't even access to settings in my own user because i receive:

Fatal error: Call to a member function check_login() on a non-object in /var/www/html/avantfax/settings.php on line 15

So it seems there is a problem with the object "user".



Nimesh
Posts: 8
Member Since:
2007-05-23
Everything Went Smooth But.....

When i try to send a fax thru web client without attachments using coverpage goes perfectly no problem there...When i try to attach any file like pdf, tiff or ps files it won't accept..Help is really needed....

Thanks
Nemo



lamarmora
Posts: 20
Member Since:
2006-12-21
For Grolo and Nemo:

For Grolo:
the fact you can login onto Avantfax with the user you created means that you shouldn't have problem with MySQL. I would check mysql logs anyway. The path to the logs is in "/etc/my.cnf": my one is "/var/log/mysqld.log". I'd also check if you have "old_passwords=1" in my.cnf.
Also try to check very well if you have all the nedded packages installed: see point "3)UPGRADE TO PHP5" of my step-by-step mini-mini-howto and check that you have not only the packages you had to install manually, but also the ones that should have been upgraded for dependencies.
Then check all the "permission settings" (chown and chmod) that needed to be changed following my howto: if one is wrong everything would stop at that point.
In the end try to see in the logs: "/var/log/messages" and all the logs of apache. If you find something strange there post it here and I'll see if I can understand it.
You can also try to change "log_errors = Off" to On in "/etc/php.ini" to see a wider explanation of the errors you get (don't forget to restart apache after you have modified php.ini)
Sorry, but I cannot help you any better, I am only an end-user, no a 'guru'.
Let me know how it goes.

For Nemo,
check in "var/www/html/avantfax/faxes/sent/2007/10(the month)/09(the day)/0363xxxxx(the telephone number you sent the fax to)/155244 (the hour)/"
You should find two files in that folder: fax.pdf and thumb.gif.
If you don't it can mean either that Avantfax cannot write in that folder (chmod -R 777 /var/www/html/avantfax/faxes", or that you have troubles with creating the pdf files.
If so check in "/var/www/html/avantfax/includes/local_config.php" if "$BINARYDIR" is set to the path where the files "ps2pdf" and "tiff2pdf"" are on your system (/usr/bin in my case).
Let me know.

Giuliano



Nimesh
Posts: 8
Member Since:
2007-05-23
This is what i get

You can only attach PostScript (.ps), PDF (.pdf), and TIFF (.tif) files.
Error:

when i attach any file and hit send i get the above message..But if i dont attach anything just use the coverpage it goes fine.....I did try your suggetions and its all there. little confused here...By the way excellent "how to"...Keep it up we need people like you....

Thanks
Nemo



lamarmora
Posts: 20
Member Since:
2006-12-21
For Nemo

Excuse me Nemo,
but I'm not sure I understood well the error you get.
If it is:
"You can only attach PostScript (.ps), PDF (.pdf), and TIFF (.tif)"
it is NOT an error, it is the way Avantfax works.

If you are trying to fax another type of document, like **.txt or **.doc or **.rtf, Avantfax will never send it: you must first convert it to PDF.

If you work with any version of Microsoft Windows it can be done very easly with "PDFCreator" , which is Open Source and can be downloaded from here:

http://sourceforge.net/projects/pdfcreator/

So first convert your documents to PDF and then send the PDF with Avantfax.

If I misunderstood the error you get, I beg your pardon.

Giuliano



Nimesh
Posts: 8
Member Since:
2007-05-23
You are correct

I am only attaching .pdf,.ps and .tiff files but none of those will be accepted i don't know why...
That's when i get the error....

Thanks
Nemo



costi0n
Posts: 1
Member Since:
2007-10-29
For grolo

Avantfax
Fatal error: Call to a member function get_name() on a non-object in /var/www/html/avantfax/sendfax.php on line 129

I find the solution, you must set register_globals to off ( php.ini )

regards.



lmarco
Posts: 1
Member Since:
2007-11-01
Avantfax and .pdf

Very very good work and how-to !!!!
I sorry because pdf2ps not work correctly on lunux machine and if you try to attach from web page .pdf files background conversion to .ps was wrong.

If attacched .ps it work but with any other for example .pdf it create a wrong .ps and the result not correct.



phonebuff
Posts: 346
Member Since:
2007-02-15
Thank You for the hard work.

Thank You for the hard work.

Waiting for the next Beta (Today ?) then I will try this, much prefer Hylafax !



jbauman
Posts: 12
Member Since:
2007-03-29
"You can only attach

"You can only attach PostScript (.ps), PDF (.pdf), and TIFF (.tif) files." even when the attached file is one of these types.

Unable to view faxes from the Avantfax web interface, and no thumbnails are displayed beside the faxes listed in Inbox.

To fix these errors, run the following commands:

pecl uninstall fileinfo
yum remove php-pecl-Fileinfo
yum install php-pecl-Fileinfo
service httpd restart

To keep these errors from happening to begin with, the 'pecl install fileinfo' command should be removed from the step-by-step.



rfenn
Posts: 24
Member Since:
2007-02-05
Almost There

Thanks for this post. It was really cool. I almost have it all working but I am not sure what the problem is. I have iaxmodem and HLYFax working with asterisk.

I am using the Trixbox 2.3.1 with MYSQL5 and PHP 5 already installed.

I can send a fax from the command line , that works. I can receive faxes and they are in the
/var/spool/hylafax/recvq. It did not email it to me but that maybe a send mail error. But in any case it works.

I have the AvantFax up. I can add users, etc. When I try to send a fax as soon as I click Send I get a screen that says:
Array ( )
/usr//bin/sendfax -R -n -o 'rfenn' -f 'Rober' -r 'test' -h @ -d "Test"@'5634052165' /var/www/html/avantfax/tmp/9c33d40e.ps

The fax is created in the directory: /var/www/html/avantfax/tmp

but it never gets sent.

I have tried many things to no avail. Any ideas? I really want to get this to work.
Thanks



lamarmora
Posts: 20
Member Since:
2006-12-21
Correction

Thank you very much Jbauman: I followed your suggestion and cancelled
#pecl install fileinfo
you were right!

Giuliano



lamarmora
Posts: 20
Member Since:
2006-12-21
For Rfenn

Check if you have 127.0.0.1 in the "/var/spool/hylafax/etc/hosts.hfaxd" file.
If you don't have it, just don't simply put it in but follow the instuctions either from the how-to or from Avantfax installation instruction.
Take a look at this and following:
"http://sourceforge.net/forum/message.php?msg_id=4233261"

Another possibility is that I see that you get this error:
"/usr//bin/sendfax -R -n -o 'rfenn' -f 'Rober' -r 'test' -h @ -d "Test"@'5634052165' /var/www/html/avantfax/tmp/9c33d40e.ps"

The first part: "/usr//bin/sendfax" is wrong: it should be "/usr/bin/sendfax".
You have a double "//".
Check that in "/your/path/to/avantfax/includes/local_config.php" the option "$BINARYDIR " is set to "/usr/bin";" and not to "/usr/bin/";

If none of these solution work can you please tell me if you can send fax at the command line?
Example: "/usr/bin/sendfax -n -d number-to-send-fax-to /etc/hosts" should send to the number-to-send-fax-to a fax with your /etc/hosts file without a cover page.

Hope it helped.

Giuliano



rfenn
Posts: 24
Member Since:
2007-02-05
Ok here is where I am

Thanks Giuliano

I was always able to send faxes using the command line and receive them. So I have IAXModem and most of Hylafax working. The problem I am having with Hylafax is that it is not sending me an email of incomming faxes and its not sending a receipt for outbound faxes. I am using sendmail and I know that it is working correctly.

I have been working on this all day. Now, I am not sure what I did but I am able now to send out faxes with AvantFax.
I use avantfax, it says it is sending the fax
I check the outbox and it is in there.
Once is sends it I still see the .ps file in the tmp directory but it does not show up in the Archive under sent faxes or any where. I checked the avantfax database and I see no entry for it.

So here are the things I am trying to get to happen.
1. Hylafax send the recieved faxes as email to me
2. Avantfax to show sent and recieved faxes

I will check out your answers and see if they work out. Thanks and any ideas would be great!
Thanks



rfenn
Posts: 24
Member Since:
2007-02-05
One Last Problem

Avantfax is working now but I have one problem. I am able to send faxes, watch modem status. The problem I was having was that I did not have the below settings correct:

#ln -s /var/www/html/avantfax/includes/faxrcvd.php /var/spool/hylafax/bin/faxrcvd
#ln -s /var/www/html/avantfax/includes/notify.php /var/spool/hylafax/bin/notify

I had to add the following to the /var/spool/hylafax/etc/config.ttyIAX
## AvantFAX configuration
FaxrcvdCmd: bin/faxrcvd.php
and

this to the /var/spool/hylafax/etc/config
## AvantFAX configuration
NotifyCmd: bin/notify.php

Then to import the faxes I already had in my inbox I used this command
cd /var/spool/hylafax; for i in `ls recvq/*`; do bin/faxrcvd.php $i ttyS0; done

That worked great. I could now see the faxes, I already did in my inbox.

Below is my problem now. Any new faxes are not registering in my inbox unless I do the above manually.

I then used this command to bring in the sent faxes:
cd /var/spool/hylafax; for i in `ls sendq/*`; do bin/notify.php $i done :30; done

I get this error:
Warning: require_once(classes.php): failed to open stream: No such file or directory in /var/spool/hylafax/bin/notify.php on line 13
Fatal error: require_once(): Failed opening required 'classes.php' (include_path='.:/usr/share/pear') in /var/spool/hylafax/bin/notify.php on line 13

I think this is my problem. I am not sure what to do. I have tried a few things and they are not working, It has something to do with pear.

Any help would be great! Thanks



n7okn
Posts: 48
Member Since:
2006-07-09
I messed up

OK I tried this on a Trixbox 2.2.4 box (non-production), and all heII broke loose. I'm not in a position nor do I feel motivated enough to surgically remove all the shrapnel this caused, so I will lay the mortally wounded configuration down and pull the plug. Three's nothin like a fresh Trixbox ISO to give new birth to such mistreated hardware.



fr31
Posts: 8
Member Since:
2007-11-27
all fine for me but...

Hi all, this paper work for me using an isdn line.

Hi lamarmora I'm trying to configure the fax on a sip number of Eutelia (without isdn). If I have understand do you have this kind of configuration. I'm right?

I have create:
- a trunk for my eutelia voip number (normaly work perfect)
- an incoming route using the trunk and pointing to the 444

The call arrive, asterisk answer and trasfer the call to 444 but the 444 after some second hungup.

Any ideas?

Franco



lamarmora
Posts: 20
Member Since:
2006-12-21
For fr31

First does Euteliavoip work if you make normal calls instead of faxes?
Sure you set up "/etc/asterisk/sip_nat.conf" in the way Euteliavoip wants it?
This is my one:

nat=yes
externip=xx.xxx.xxx.xxx (my static IP)
localnet=192.168.2.0/255.255.255.0

Then check the log: post here what "/var/spool/hylafax/etc/xferfaxlog" says and/or check on hylafax's forums what they say about the mistakes pointed out by 'xferfaxlog'.

Then check if you can send and receive faxes without Avantfax:
try to send a fax from the command line to a friend of yours (let' say n° 02123456789)

#sendfax -n -d 02123456789 /etc/hosts

and see your friend gets your file "hosts" as a fax.

If it is not enaugh to make you see what is your problem, or if you can send faxes but not recieve them, try to restore the backups you made of the files "faxrcvd" and "notify" in '/var/spool/hylafax/bin/' and see if you can recieve faxes in "/var/spool/hylafax/recvq/"

Hope that helps.
Regards.

Giuliano



mo_uk
Posts: 1
Member Since:
2007-01-17
Mysql Failed to Start

Great guide, but somehow I got an error error starting mysqld. The error message was as follows in /var/log/mysqld.log:

[ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 472 error messages,but it should contain at least 474 error messages.
Check that the above file is the right version for this program!

It seems like the old errmsg.sys got carried over in the yum update. So I located the source rpm and
1. downloaded it to /tmp:
#wget http://mirror.centos.org/centos/4/centosplus/SRPMS/mysql-5.0.48-1...
2. extracted it:
#rpm2cpio mysql-5.0.48-1.el4.centos.src.rpm | cpio -idv
3. untarred the mysql-5.0.48.tar.gz that was within the archive (I'm a linux noob so didn't have the brains to simply extract errmsg.sys from the "english" directory):
#tar -zxvf mysql-5.0.48.tar.gz

4. copied over errmsg.sys from /tmp/mysql-5.0.48/sql/share/english to /usr/share/mysql/english/:

#rm /usr/share/mysql/english/errmsg.sys
#cp /tmp/mysql-5.0.48/sql/share/english/errmsg.sys /usr/share/mysql/english/
#service mysqld start

Should work fine now!



fr31
Posts: 8
Member Since:
2007-11-27
for lamarmora

Hi Giuliano, thanks for your answer.

I haven't configure /etc/asterisk/sip_nat.conf but eutelia work fine for voice, I can call a recive phone call. I'm behind a nat but I don't know why eutelia works fine, maybe is the ports redirect on the firewall.

I haven't install avantfax because I sent fax with whfc (windows hylafax client) and recive it on my mail. All works fine using isdn (an old trust isdn hrfc card with misdn) with alaw protocol.

The problem is that now I want try to do all on a sip number (eutelia) without using isdn.

If I send a fax trough sip (I use voipstunt.com to send because I haven't credit on eutelia) to a normal fax all is fine.

If I recive a fax using sip (eutelia) instead of isdn, asterisk answer but the fax don't arrive.

This is my xferfaxlog:
11/29/07 19:30 CALL 000000006 ttyIAX "" fax "+39.085.799xxxx" "" 0 0 0:20 0:20 "Failure to receive silence (synchronization failure)." "anonymous" "49821568xxxx" "::s""" ""

It seams to be a problem of sincronization.

Any suggestion?



kspare
Posts: 446
Member Since:
2007-02-16
To run this on the trixbox

To run this on the trixbox 2.2.4 or higher, do a yum install iaxmodem, download the latest iaxmodem from sourcefource, do a static build and copy the new binary over the one from yum.

Iaxmodem 0.3.1 is broken, from what I can see it has a memory leak, installing the new version fixes it. I've verified this on 2.2.4 and 2.2.9.



fr31
Posts: 8
Member Since:
2007-11-27
Hi kspare, I do what you

Hi kspare,
I do what you suggest but nothing change... the error in xferfaxlog is the same. I'm on 2.2.9.

This is /var/log/asterisk/full


Nov 30 11:18:40 VERBOSE[3564] logger.c: -- IAX2/444-2 is ringing
Nov 30 11:18:45 VERBOSE[3564] logger.c: -- IAX2/444-2 answered SIP/085799151 5-083ba7b8
Nov 30 11:18:45 DEBUG[3046] chan_iax2.c: Ooh, voice format changed to 8
Nov 30 11:18:47 DEBUG[3048] chan_sip.c: Stopping retransmission on '2cd41e8e18c4 c13931a5022a609a14a4@192.168.0.45' of Request 102: Match Found
Nov 30 11:18:48 NOTICE[3564] rtp.c: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 62.94.199.39
Nov 30 11:18:55 DEBUG[3046] chan_iax2.c: Peer lastms 17, historicms 17, maxms 20 00
Nov 30 11:18:58 DEBUG[3425] manager.c: Manager received command 'Command'
Nov 30 11:18:58 DEBUG[3425] manager.c: Manager received command 'Command'
Nov 30 11:18:58 DEBUG[3425] manager.c: Manager received command 'Command'
Nov 30 11:19:05 WARNING[3048] chan_sip.c: Maximum retries exceeded on transmissi on 744B84BB-9E6411DC-9A9FC043-51088926@83.211.2.218 for seqno 102 (Critical Resp onse)
Nov 30 11:19:05 WARNING[3048] chan_sip.c: Hanging up call 744B84BB-9E6411DC-9A9F C043-51088926@83.211.2.218 - no reply to our critical packet.
Nov 30 11:19:05 DEBUG[3564] channel.c: Didn't get a frame from channel: SIP/0857 991515-083ba7b8
Nov 30 11:19:05 DEBUG[3564] channel.c: Bridge stops bridging channels SIP/085799 1515-083ba7b8 and IAX2/444-2
Nov 30 11:19:05 DEBUG[3564] chan_iax2.c: We're hanging up IAX2/444-2 now...
Nov 30 11:19:05 VERBOSE[3564] logger.c: -- Hungup 'IAX2/444-2'

can be a protocol or codec problem?



kspare
Posts: 446
Member Since:
2007-02-16
can you post your tty

can you post your tty configs for iaxmodem and hylafax?



fr31
Posts: 8
Member Since:
2007-11-27
Hi, I have resolved changing

Hi, I have resolved changing sip provider... I have big problems with Eutelia.

Thanks all for help.



fr31
Posts: 8
Member Since:
2007-11-27
avantfax problems

Hi Giuliano, I have install avantfax and when I try to login on http://locahost/avantafax/admin with the default user afadmin and password password it stay on the login form without errors. The user is correct but don't access to the admin configuration. I have tried with IE6 and FIREFOX too.

In the avantfax mysql db in the table AdminAccount I find

1 AvantFax Admin afadmin 5f4dcc3b5aa765d61d8327deb882cf99 YOUR_EMAIL_ADDRESS 2007-12-12 20:15:50 2007-12-12 20:15:50 192.168.0.44 NULL 1 NULL 0

Any idea?

Thank you.



riscomsrl
Posts: 2
Member Since:
2008-01-08
Error in web server

HI Giuliano,
i've followed your instruction for installing Hylafax and Avantfax on trixbox. At now trixbox framework work perfectly but when i try to log in to Avantfax i get this error:
Warning: require_once(ampuser.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/html/avantfax/includes/classes.php on line 21

Fatal error: require_once() [function.require]: Failed opening required 'ampuser.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/avantfax/includes/classes.php on line 21
have you got any idea to solve?
Thanks in advance



nemo
Posts: 10
Member Since:
2007-02-09
just create ampuser.php in

just create ampuser.php in /var/www/html/avantfax/includes/
# touch ampuser.php
it works :)



riscomsrl
Posts: 2
Member Since:
2008-01-08
Avantfax troubles

hi all!
by creating ampuser.php i resolve the previous error but at now i've got some different problems.
When i log into the admin page i see the welcome but if i click on a menu for setting modem, users etc, avantfax come back to login page. Maybe a php session problem?



cmajewski
Posts: 1
Member Since:
2007-12-07
Solution: Admin links bounce you back to login

Edit your \etc\php.ini and change:
register_globals=On

to

register_globals=Off

and restart apache



rbrock
Posts: 14
Member Since:
2008-02-19
avantfax user?

I followed the above but what user did i add?? What do i login to advantfax admin with?



nscgi
Posts: 12
Member Since:
2007-02-17
getting this error when

getting this error when trying to access the admin page...

Warning: require_once(MDB2.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/html/avantfax/includes/SQL.php on line 18

Fatal error: require_once() [function.require]: Failed opening required 'MDB2.php' (include_path='.:/php/includes:/var/www/html/avantfax/includes') in /var/www/html/avantfax/includes/SQL.php on line 18

i have tried including the path in php.ini
still same error



manuelvr
Posts: 1
Member Since:
2007-02-11
avantfax default admin user and password

I post here some info for the ones who might find them useful.
I had to spend some time over it but in the end everything works well.
To access Avantfax for the first time I used

user: admin
password: password

and not "afadmin" as I found out here and there around the web.
Maybe that's because I installed the last version 3.1.0...i don't know
Also, I installed the program in the default path /var/www/avantfax and created a virtual server on a new virtual interface (eth0:1) with a different IP to access avantfax and trixbox/freePBX through http port 80 on the same box.
http://www.avantfax.com/configure-apache.php

Grazie Giuliano per i molti suggerimenti.



rosshire
Posts: 1
Member Since:
2006-06-13
Error fixed

I had the same error..
just execute this command

#pear install MDB2_driver_mysql

all fixed now...

many thanks



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.