Phone_User
Guru
- Joined
- Jun 9, 2008
- Messages
- 314
- Reaction score
- 0
I was having problems with faxing with Wards scripts (not his fault) and I was looking for somthing a bit more robust, so I started to look at Hylafax. I followed Ed's install instructions and again had some problems.
So, being the type of person I am I read, and read, and read, and spent my weekend playing with this.
******* Updated Jan 13, 2009 @ 7:02 am est ********
This link will download my setup script for Iaxmodem and Hylafax for a single modem.
*******************************
I have set this up on three machines in my Dundi Cloud, I can tell you that it will fax over my Dundi Cloud as well as my VoIP provider (Voicenetwork.ca) At this time I can only confirm that it works for PiAF 1.3.
If you follow these instuctions you should have a working fax system in about 15 minutes.
First in FreePBX create a new extension of the IAX2 type. Write down the extension number and the password. Save-reload and then go back and edit the extension. You will want to change the port to 4570 or better as well you want to remove 0.0.0.0/0.0.0.0 from deny and add 127.0.0.1/0.0.0.0 to allow. Also disable call waiting and voicemail.
Disable inbound fax support in general settings and add inbound fax detect in your inbound route. Select the extension number above as the fax extension. I found zaptel detection worked well for my zap lines. Still playing with inbound detection on my VoIP trunk. But outbound on my VoIP trunk works great.
****** Updated Jan 13, 2009 @ 7:02 est
Down load the script to your /usr/src directory and chmod +x hylafax_setup.sh
Then ./hylafax_setup.sh
*******************
This will install nessessary utilities, Iaxmodem, Hylafax and do 'MOST' of the configuration for you.
At the end of the script it runs faxsetup. Say yes to everything except your area code, put in yours. Also at then end when it says do you want to add a faxmodem say no.
Once the script is complete, go to /etc/iaxmodem and edit iaxmodem-cfg.ttyIAX you will want to make sure the port is 4570 or better.
Change the peername to the extention you made earlier as well as the secret.
Then change cidname and cidnumber to yours.
Change the codec to ulaw.
Now, cd to /var/spool/hylafax/etc and edit config.ttyIAX. Make sure the fax number and area code are set to yours. Go down the file a bit and you will see local identifier. Change that to your identifier (Name)
Now edit FaxDispatch and change the email address to yours.
Ok, we should almost be done. At the prompt type in init q and then hylafax restart.
If you received errors from the inittab reload go to /etc end edit inittab. Just remove the last two lines and then re-type them in. I had one instance where adding to it from the script caused problems but by deleting and re-adding it fixed it. I don't know why. If you do have to modify inittab do a init q and hylafax restart.
You will also want to start up webmin and go to boot up and shutdown and set Hylafax to start at boot.
To test your fax login to your server and type this sendfax -n -d 5555551212 /usr/src/hylafax_setup.txt . Replace the 5555551212 with your fax number (cannot be your machine your faxing from ) and you should receive a fax with a copy of the install script.
Now you can download and install DandyFax from this post.
DandyFax has been updated to support Hylafax as well you will get an email notification when your fax is sent. (Sendmail has to be set on your system)
Let me know if you run into any problems. And I will help or fix what I can.
*********** Udated Jan 13, 2009 @ 7:02 est
I re-did the scripts with information provided by a couple of users. Should work much better.
Rob
So, being the type of person I am I read, and read, and read, and spent my weekend playing with this.
******* Updated Jan 13, 2009 @ 7:02 am est ********
This link will download my setup script for Iaxmodem and Hylafax for a single modem.
*******************************
I have set this up on three machines in my Dundi Cloud, I can tell you that it will fax over my Dundi Cloud as well as my VoIP provider (Voicenetwork.ca) At this time I can only confirm that it works for PiAF 1.3.
If you follow these instuctions you should have a working fax system in about 15 minutes.
First in FreePBX create a new extension of the IAX2 type. Write down the extension number and the password. Save-reload and then go back and edit the extension. You will want to change the port to 4570 or better as well you want to remove 0.0.0.0/0.0.0.0 from deny and add 127.0.0.1/0.0.0.0 to allow. Also disable call waiting and voicemail.
Disable inbound fax support in general settings and add inbound fax detect in your inbound route. Select the extension number above as the fax extension. I found zaptel detection worked well for my zap lines. Still playing with inbound detection on my VoIP trunk. But outbound on my VoIP trunk works great.
****** Updated Jan 13, 2009 @ 7:02 est
Down load the script to your /usr/src directory and chmod +x hylafax_setup.sh
Then ./hylafax_setup.sh
*******************
This will install nessessary utilities, Iaxmodem, Hylafax and do 'MOST' of the configuration for you.
At the end of the script it runs faxsetup. Say yes to everything except your area code, put in yours. Also at then end when it says do you want to add a faxmodem say no.
Once the script is complete, go to /etc/iaxmodem and edit iaxmodem-cfg.ttyIAX you will want to make sure the port is 4570 or better.
Change the peername to the extention you made earlier as well as the secret.
Then change cidname and cidnumber to yours.
Change the codec to ulaw.
Now, cd to /var/spool/hylafax/etc and edit config.ttyIAX. Make sure the fax number and area code are set to yours. Go down the file a bit and you will see local identifier. Change that to your identifier (Name)
Now edit FaxDispatch and change the email address to yours.
Ok, we should almost be done. At the prompt type in init q and then hylafax restart.
If you received errors from the inittab reload go to /etc end edit inittab. Just remove the last two lines and then re-type them in. I had one instance where adding to it from the script caused problems but by deleting and re-adding it fixed it. I don't know why. If you do have to modify inittab do a init q and hylafax restart.
You will also want to start up webmin and go to boot up and shutdown and set Hylafax to start at boot.
To test your fax login to your server and type this sendfax -n -d 5555551212 /usr/src/hylafax_setup.txt . Replace the 5555551212 with your fax number (cannot be your machine your faxing from ) and you should receive a fax with a copy of the install script.
Now you can download and install DandyFax from this post.
DandyFax has been updated to support Hylafax as well you will get an email notification when your fax is sent. (Sendmail has to be set on your system)
Let me know if you run into any problems. And I will help or fix what I can.
*********** Udated Jan 13, 2009 @ 7:02 est
I re-did the scripts with information provided by a couple of users. Should work much better.
Rob
Last edited by a moderator: