TUTORIAL HylaFAX / AvantFax for PIAF! - Parts 1-4

I get this at the end of the install:
## Creating AvantFAX MySQL database ##
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'avantfax'@'localhost' (using password: YES)'
ERROR 1045 (28000): Access denied for user 'avantfax'@'localhost' (using password: YES)
mysqlshow: Access denied for user 'avantfax'@'localhost' (using password: YES)
ln: creating symbolic link `/usr/share/misc/magic' to `/usr/share/file/magic': File exists
Setting up sudo
ERROR 1045 (28000): Access denied for user 'avantfax'@'localhost' (using password: YES)
Configuring ttyIAX0 for AvantFAX
ERROR 1045 (28000): Access denied for user 'avantfax'@'localhost' (using password: YES)
Configuring ttyIAX1 for AvantFAX
ERROR 1045 (28000): Access denied for user 'avantfax'@'localhost' (using password: YES)
Configuring ttyIAX2 for AvantFAX
ERROR 1045 (28000): Access denied for user 'avantfax'@'localhost' (using password: YES)
Configuring ttyIAX3 for AvantFAX
Setting up /etc/cron.d/avantfax
Installation complete
 
Let me guess: you changed your MySQL password from the default. :confused5:
 
Yep, but I changed it in the scripts.
EDIT:
I changed the asteriskmanager password, not MYSQL.
 
Hi

This is the avantfax install script, and the only reason that I can think of for this error is that you have changed your MySQL root password.

You are not adding any security changing either the MySQL password or the Asterisk Manager password, all you are doing is causing yourself problems, which you are posting about, and as I wrote the script, and Tony wrote it up, we feel duty bound to answer.

The answer to the problem is in the CLI output you have posted. May I respectfully suggest that you leave the MySQL and AMI passwords set to the default until such time as you reach the level of experience where you can look at error messages, and immediately put your finger on the problem, and fix it yourself without recourse to the forum.

Inspection of the install fax script will tell you that it it calls an avantfax install script.

Inspection of that script will tell you that it takes its defaults from a file called rh-prefs.txt, closer inspection of this textfile shows that the MySQL root password is set in this text file.

Change this file to suit your install. It's to be found in /usr/src/avantfax-3.1.6 and rerun the avantfax install script also found in /usr/src/avantfax-3.1.6 called rh-install.sh

Joe
 
I, myself did not change them. I am going to a new box soon, so it will not be a problem anymore..
 
Check out these two articles which provide instructions to do what you want.

Code:
http://pbxinaflash.com/forum/showpost.php?p=22682&postcount=67
http://pbxinaflash.com/forum/showpost.php?p=22683&postcount=68


Thx for the reply, but after 2 days Im still struggling with this. Is there an easy way to detect faxtones on all incoming calls and send them to AvantFax.
 
Faxes can be brought in via dedicated inbound route, or using NV detect can be enabled on any/all inbound routes individually.

The use of NVDetect is outlined in the links I provided.

Basically - it sounds as if you want to create a single "Fax Extension", configure all your inbound routes to use NVDetect for inbound fax detection, with the "Fax Extension" as the destination when Fax IS detected, and whatever the inbound route's normal destination is if fax is NOT detected.
 
Faxes can be brought in via dedicated inbound route, or using NV detect can be enabled on any/all inbound routes individually.

The use of NVDetect is outlined in the links I provided.

Basically - it sounds as if you want to create a single "Fax Extension", configure all your inbound routes to use NVDetect for inbound fax detection, with the "Fax Extension" as the destination when Fax IS detected, and whatever the inbound route's normal destination is if fax is NOT detected.

I think the part Im getting stuck on is creating the "Fax Extension". I know how to create extensions, but not a extension for a virtual fax modem.
 
Faxes can be brought in via dedicated inbound route, or using NV detect can be enabled on any/all inbound routes individually.

The use of NVDetect is outlined in the links I provided.

Basically - it sounds as if you want to create a single "Fax Extension", configure all your inbound routes to use NVDetect for inbound fax detection, with the "Fax Extension" as the destination when Fax IS detected, and whatever the inbound route's normal destination is if fax is NOT detected.

Look Here:
http://pbxinaflash.com/forum/showpost.php?p=22682&postcount=67

Look for this Text:
SetUp “Fax Machine” Extension in FreePBX

Follow the instructions.If you get stuck in a specific place - tell us exactly where so we can be more helpful.

Got it thx.

Send and received 10 faxes with VoIP using HPs fax back program.
 
Change "from" address in emailed fax

Thanks for posting this. Got it up and running in no time. I can successfully receive faxes with no problems. I have only a small configuration tweak that I want to do but cannot seem to figure out how to do it.

I want to change the "from" address that the fax is emailed with.

I've searched this forum as well as the hylafax boards and information sites and cannot seem to be able to find what I need to change. The email with the fax attachment is sent with a "from" address "[email protected]".

I want the "from" address to be in the form of [email protected].

I have changed the FaxMaster alias in /etc/aliases and ran newaliases but it doesn't seem to affect the "from" address.

If somebody could point me in the right direction it would be greatly appreciated.


Mark
 
You need to edit the local_config.php file in /var/www/html/avantfax/includes and change the from address. Back it up first and then make the change. You can edit and change a number of parameters in that file. For instance, you can change the system so that it sends a whole copy of the fax not just a thumbnail with the confirmation.
 
Tony,

I followed your printer guide to a dead end. I have an OfficeJet 7300 series printer on network and it did not work no matter what way I set it up in CUPS.

So I went a different route and installed it via this website and Tom King's KDE script (I needed a GUI, could not figure out how to install it otherwise). Also, after I set up my printer this way, I did not change anything in CUPS. Test pages via CUPS on webmin printed (still need minor tweaking), but, fax printing still did not work.:confused5:

How true.
New info: This process is not fool proof - it seems some JetDirect devices are better at this than others. If you have a choice, make sure to have the most current firmware in your Jet Direct. Let us know about your successes and failures with this process.
A trip over to AvantFax forum pages uncovered this post, which clued me into changing the following line in /var/www/html/avantfax/includes/local_config.php. It is on line 266 on my system. Changed this line to true.
Code:
$PRINTFAXRCVD            = false;
Sent a couple of test faxes to my box and, bingo, faxes are now printing.

Hope this helps.
 
I just re-ran the install after changing my password, and now I can not get to FreePBX or anything else but AvantFax when I go to my server's IP. How do I get the other stuff back?
 
By inspection of my installation script, you will see that a file is deleted in /etc/httpd/conf.d line 188.

Code:
rm -rf /etc/httpd/conf.d/avantfax.conf

Do likewise, and restart httpd.

Joe
 
Tony,

I followed your printer guide to a dead end. I have an OfficeJet 7300 series printer on network and it did not work no matter what way I set it up in CUPS.

I have had the same poor experience with a LaserJet 3300 - but good experiences with LaserJet 4500, and 4600.

So I went a different route and installed it via this website and Tom King's KDE script (I needed a GUI, could not figure out how to install it otherwise). Also, after I set up my printer this way, I did not change anything in CUPS. Test pages via CUPS on webmin printed (still need minor tweaking), but, fax printing still did not work.:confused5:

A trip over to AvantFax forum pages uncovered this post, which clued me into changing the following line in /var/www/html/avantfax/includes/local_config.php. It is on line 266 on my system. Changed this line to true.
Code:
$PRINTFAXRCVD            = false;
Sent a couple of test faxes to my box and, bingo, faxes are now printing.

Hope this helps.

Extra info always helps. :smile5: Thanks for documenting your efforts. Clearly a more reliable and easier method needs to be discovered or cobbled together. I am not fond of having to install KDE to get Fax printing to work - Im sure you weren't to "happy" having to go that route either.

The change to local_config.php was definitely a good catch.

Well keep looking for better ways to get this done reliably - untill then - thanks for posting the way you made it work. Im sure it will help others in the same position. :cheers2:
 
re: Change "from" address in emailed fax

You need to edit the local_config.php file in /var/www/html/avantfax/includes and change the from address. Back it up first and then make the change. You can edit and change a number of parameters in that file. For instance, you can change the system so that it sends a whole copy of the fax not just a thumbnail with the confirmation.

Thanks for your help...exactly what I needed to find. Works as it should. I changed:

Code:
define('ADMIN_EMAIL', 'root@localhost');        // system return email address
to the return address I wanted.

Hope this also helps others.
 
Thanks for your help...exactly what I needed to find. Works as it should. I changed:

Code:
define('ADMIN_EMAIL', 'root@localhost');        // system return email address
to the return address I wanted.

Hope this also helps others.

Thanks markrmcs!

There's actually a lot of interesting stuff in that file - I recommend anyone working on fine tuning their config to read through it and carefully make any changes that improve the "fit" for your deployment.
 
default user/password

I know this is truly pathetic, but avantfax doesn't seem to be accepting my default user/password after install (i'm using admin/password as described).

If i enter non-sense, i get an invalid user message. When i enter the default it just refreshed the screen, but doesn't advance as if i've logged in.

Any help is appreciated.
 
I know this is truly pathetic, but avantfax doesn't seem to be accepting my default user/password after install (i'm using admin/password as described).

If i enter non-sense, i get an invalid user message. When i enter the default it just refreshed the screen, but doesn't advance as if i've logged in.

Any help is appreciated.

nevermind...some ownership issues got messed up...I noticed because my call logs were telling me that I needed to access my CDR via the asterisk management portal.

chown asterisk /var/lib/php/session fixed both problems.
 

Members online

Forum statistics

Threads
26,696
Messages
174,453
Members
20,265
Latest member
irenelanda64
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top