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

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
Well No one really know what is going on in the teams mind...... sometimes not even the team!

Tom
 

gvtricks

Guru
Joined
Feb 26, 2010
Messages
25
Reaction score
0
The incrediblefax is working like a charm.
I have tested it on an Oracle VirtualBox and a VMWare Player,
with the latest 1.7561.iso, the purple load and the incrediblepbx with only a google voice account for in and outbound, it is a hit and miss some times but it works most of the time.

Here is a free test number you can use in case you want to:
HP fax Test number

8884732963

Thanks Wards for the excellent job and documentation
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,221
Thanks for the feedback. We've got the install working well now. The real trick is using one of the magic providers. If you switch to them for your fax calls, it's darn near perfect. Unless you do high volume faxing, a penny a minute isn't too bad. :wink5:
 

localnation

New Member
Joined
Apr 29, 2011
Messages
19
Reaction score
0
Google Voice

I've managed to get my faxes working great in and out through sipgate. This even works if someone calls the google voice number that points to my sipgate number. My question is: What is the difference in dialing out through google voice callback? I always seem to get a random error (normally a DCS error). I've tried everythign I can think of... any suggestions (short of NOT using GV in the first place)? Session Trascript to HP TestFaxbelow:

[9650]: SESSION BEGIN 000000080 6158884732963
[9650]: HylaFAX (tm) Version 4.4.4
[9650]: SEND FAX: JOB 20 DEST 8884732963 COMMID 000000080 DEVICE '/dev/ttyIAX2' FROM 'xxx' USER admin
[9650]: STATE CHANGE: RUNNING -> SENDING
[9650]: <-- [12:AT+FCLASS=1\r]
[9650]: --> [2:OK]
[9650]: MODEM set XON/XOFF/FLUSH: input ignored, output disabled
[9650]: DIAL 8884732963
[9650]: --> [7:CONNECT]
[9650]: --> HDLC<25:FF C0 02 1A 82 62 0A 12 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 B1 33>
[9650]: --> [2:OK]
[9650]: REMOTE CSI "HPFAX"
[9650]: <-- [9:AT+FRH=3\r]
[9650]: --> [7:CONNECT]
[9650]: --> HDLC<11:FF C8 01 04 77 1F 23 01 08 18 4F>
[9650]: --> [2:OK]
[9650]: REMOTE best rate 33600 bit/s
[9650]: REMOTE max A4 page width (215 mm)
[9650]: REMOTE max unlimited page length
[9650]: REMOTE best vres 7.7 line/mm
[9650]: REMOTE format support: MH, MR, MMR
[9650]: REMOTE supports T.30 Annex A, 256-byte ECM
[9650]: REMOTE best 0 ms/scanline
[9650]: USE 14400 bit/s
[9650]: USE error correction mode
[9650]: SEND file "docq/cover20;f1"
[9650]: USE A4 page width (215 mm)
[9650]: USE unlimited page length
[9650]: USE 7.7 line/mm
[9650]: USE 2-D MMR
[9650]: USE 0 ms/scanline
[9650]: SEND training at v.17 14400 bit/s
[9650]: <-- [9:AT+FRS=7\r]
[9650]: --> [2:OK]
[9650]: <-- [9:AT+FTH=3\r]
[9650]: --> [7:CONNECT]
[9650]: <-- HDLC<23:FF C0 C2 B6 A6 26 F6 B6 1A 82 92 04 04 04 04 04 04 04 04 04 04 04 04>
[9650]: <-- data [23]
[9650]: <-- data [2]
[9650]: --> [7:CONNECT]
[9650]: <-- HDLC<7:FF C8 C1 00 46 1F 22>
[9650]: <-- data [7]
[9650]: <-- data [2]
[9650]: --> [2:OK]
[9650]: <-- [9:AT+FTS=7\r]
[9650]: --> [2:OK]
[9650]: MODEM set XON/XOFF/FLUSH: input interpreted, output disabled
[9650]: <-- [11:AT+FTM=145\r]
[9650]: --> [7:CONNECT]
[9650]: DELAY 400 ms
[9650]: <-- data [1024]
[9650]: <-- data [1024]
[9650]: <-- data [652]
[9650]: <-- data [2]
[9650]: --> [2:OK]
[9650]: MODEM set XON/XOFF/DRAIN: input ignored, output disabled
[9650]: <-- [9:AT+FRH=3\r]
[9650]: --> [7:CONNECT]
[9650]: --> HDLC<25:FF C0 02 1A 82 62 0A 12 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 B1 33>
[9650]: --> [2:OK]
[9650]: REMOTE CSI "HPFAX"
[9650]: <-- [9:AT+FRH=3\r]
[9650]: --> [7:CONNECT]
[9650]: --> HDLC<11:FF C8 01 00 77 1F 23 01 08 1E EE>
[9650]: --> [2:OK]
[9650]: SEND training at v.17 14400 bit/s
[9650]: <-- [9:AT+FRS=7\r]
[9650]: --> [2:OK]
[9650]: <-- [9:AT+FTH=3\r]
[9650]: --> [7:CONNECT]
[9650]: <-- HDLC<23:FF C0 C2 B6 A6 26 F6 B6 1A 82 92 04 04 04 04 04 04 04 04 04 04 04 04>
[9650]: <-- data [23]
[9650]: <-- data [2]
[9650]: --> [7:CONNECT]
[9650]: <-- HDLC<7:FF C8 C1 00 46 1F 22>
[9650]: <-- data [7]
[9650]: <-- data [2]
[9650]: --> [2:OK]
[9650]: <-- [9:AT+FTS=7\r]
[9650]: --> [2:OK]
[9650]: MODEM set XON/XOFF/FLUSH: input interpreted, output disabled
[9650]: <-- [11:AT+FTM=145\r]
[9650]: --> [7:CONNECT]
[9650]: DELAY 400 ms
[9650]: <-- data [1024]
[9650]: <-- data [1024]
[9650]: <-- data [652]
[9650]: <-- data [2]
[9650]: --> [2:OK]
[9650]: MODEM set XON/XOFF/DRAIN: input ignored, output disabled
[9650]: <-- [9:AT+FRH=3\r]
[9650]: --> [7:CONNECT]
[9650]: --> HDLC<25:FF C0 02 1A 82 62 0A 12 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 B1 33>
[9650]: --> [2:OK]
[9650]: REMOTE CSI "HPFAX"
[9650]: <-- [9:AT+FRH=3\r]
[9650]: --> [7:CONNECT]
[9650]: --> HDLC<11:FF C8 01 00 77 1F 23 01 08 1E EE>
[9650]: --> [2:OK]
[9650]: SEND training at v.17 14400 bit/s
[9650]: <-- [9:AT+FRS=7\r]
[9650]: --> [2:OK]
[9650]: <-- [9:AT+FTH=3\r]
[9650]: --> [7:CONNECT]
[9650]: <-- HDLC<23:FF C0 C2 B6 A6 26 F6 B6 1A 82 92 04 04 04 04 04 04 04 04 04 04 04 04>
[ 9650]: <-- data [23]
[ 9650]: <-- data [2]
[ 9650]: --> [7:CONNECT]
[ 9650]: <-- HDLC<7:FF C8 C1 00 46 1F 22>
[ 9650]: <-- data [7]
[ 9650]: <-- data [2]
[ 9650]: --> [2:OK]
[ 9650]: <-- [9:AT+FTS=7\r]
[ 9650]: --> [2:OK]
[ 9650]: MODEM set XON/XOFF/FLUSH: input interpreted, output disabled
[ 9650]: <-- [11:AT+FTM=145\r]
[ 9650]: --> [7:CONNECT]
[ 9650]: DELAY 400 ms
[ 9650]: <-- data [1024]
[ 9650]: <-- data [1024]
[ 9650]: <-- data [652]
[ 9650]: <-- data [2]
[ 9650]: --> [2:OK]
[ 9650]: MODEM set XON/XOFF/DRAIN: input ignored, output disabled
[ 9650]: <-- [9:AT+FRH=3\r]
[ 9650]: --> [7:CONNECT]
[ 9650]: --> HDLC<25:FF C0 02 1A 82 62 0A 12 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 B1 33>
[ 9650]: --> [2:OK]
[ 9650]: REMOTE CSI "HPFAX"
[ 9650]: <-- [9:AT+FRH=3\r]
[ 9650]: --> [7:CONNECT]
[ 9650]: --> HDLC<11:FF C8 01 00 77 1F 23 01 08 1E EE>
[ 9650]: --> [2:OK]
[ 9650]: DIS/DTC received 3 times; DCS not recognized
[ 9650]: SEND: Giving up after 3 attempts to send same page "docq/cover20;f1", dirnum 0
[ 9650]: <-- [9:AT+FRS=7\r]
[ 9650]: --> [2:OK]
[ 9650]: <-- [9:AT+FTH=3\r]
[ 9650]: --> [7:CONNECT]
[ 9650]: <-- HDLC<3:FF C8 DF>
[ 9650]: <-- data [3]
[ 9650]: <-- data [2]
[ 9650]: --> [2:OK]
[ 9650]: MODEM input buffering enabled
[ 9650]: <-- [5:ATH0\r]
[ 9650]: --> [2:OK]
[ 9650]: MODEM set DTR OFF
[ 9650]: MODEM set baud rate: 0 baud (flow control unchanged)
[ 9650]: STATE CHANGE: SENDING -> MODEMWAIT (timeout 5)
[ 9650]: SESSION END
 

gvtricks

Guru
Joined
Feb 26, 2010
Messages
25
Reaction score
0
I had managed to find an update for the Hylafax server to version 5.5.0, and the avantfax to 3.3.3. and I have not have not a miss on in and outbound faxes with Gvoice.
I have been testing for a some time with a 100% success.
on 6 to 15 pages faxes.

I have uploaded the zip in case someone want to test it.
It is a litter variation of the incrediblefax.sh published by Ward.
I hope he don't mind.

gvtricks

View attachment gvtrickfax.zip
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,221
Thanks. Tried it out. Works great and seems to be a bit more stable. I've updated Incredible Fax with the new modules. Good find!
 

localnation

New Member
Joined
Apr 29, 2011
Messages
19
Reaction score
0
Upgrading from A-Fax to new scripts

Ward / GVTricks,

Is there anything short of a full reload that those uf us currently using the A-Fax solution can do / need to do to upgrade ti these new scripts? I'm excited to try GVTricks adaptation and finally get GV fax out working!:banghead:
 

Bruce

New Member
Joined
Nov 16, 2007
Messages
162
Reaction score
0
Are the instruction of Fax install at the beginning of this thread still valid?

Hello Everyone,

Is the installation steps posted tshif still valid today with FreePBX 2.8x and Piaf (latest versions)?

There are 48 pages of posting to this thread. Wondering if I should go through it or if there is an easier way.

I understand any fax module in freepbx is dependent on something like Hyla or Avanti fax at the back-end like tshif describes right?

Thanks
 

gvtricks

Guru
Joined
Feb 26, 2010
Messages
25
Reaction score
0
First Thing, just to clarify I do not want or deserve to take credit for the real hard work others have done before and I am not very good at documenting the steps. I’m pretty sure Ward will test it and make the necessary changes if he finds it useful. It looks like the Hylafax server 5.5.0 and the Avantfax 3.3.3 version can do a better job as far as handling sip faxes because a lot of the bugs have been worked out.
With that said, this are the steps I have used to do this install.

The incrediblefax.sh have been updates!! Thank Ward.

So go to this page for instructions:

http://nerdvittles.com/?p=738

Credits go to:

Joe Roper

tshif

Ward Mundy

And anybody else contributing to this project.

Gvtricks
 

localnation

New Member
Joined
Apr 29, 2011
Messages
19
Reaction score
0
Skip 99% of this thred...

Is the installation steps posted tshif still valid today with FreePBX 2.8x and Piaf (latest versions)?

There are 48 pages of posting to this thread. Wondering if I should go through it or if there is an easier way.

Bruce,
If you've never installed fax software on your PIAF server yet, you should use the info from WardMundy a few posts back, which is also explained further on the latest NerdVittles article.

Happy Faxing!
 

Flash9999

Member
Joined
Sep 28, 2009
Messages
63
Reaction score
0
email notification for faxes are not being sent to my email? is this feature fully working?
 

gvtricks

Guru
Joined
Feb 26, 2010
Messages
25
Reaction score
0
email notification for faxes are not being sent to my email? is this feature fully working?

Yes it is fully working, check your spam folder on your gmail account and make a rule not to send it to spam.
 

Flash9999

Member
Joined
Sep 28, 2009
Messages
63
Reaction score
0
Yes it is fully working, check your spam folder on your gmail account and make a rule not to send it to spam.

I have inserted a line from my "mailq" command and it shows connection timed out for all of my 67 alerts. I've also configure the google dns servers and it is still not working.
 

Attachments

  • gmail.pdf
    28.3 KB · Views: 5

Flash9999

Member
Joined
Sep 28, 2009
Messages
63
Reaction score
0
Is there any way i can use postfix instead of sendmail, I'm asking because a currently have a working postfix server in my network
 

vcallaway

Guru
Joined
May 6, 2008
Messages
170
Reaction score
2
in /var/www/html/avantfax/includes/local_config.php there is a setting to use a remote smtp server.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,221
You can do the same thing with SendMail in one line of code. Then email works for your whole server, not just AvantFax.
 
Last edited by a moderator:

kdaffef02

Member
Joined
Apr 29, 2011
Messages
114
Reaction score
8
Thanks,

YajHFC - yet another java hylafax client works Great.

Now not only can we do print to fax. But we can also view all of the inbound faxes from this same client.

Has anyone managed to find out how to have these faxes print out automatically on their local printer? (some people still want to have the old-fashioned fax print out automatically).

Thanks,
KK
Hi KK,

I m using this great YajHFC and its really works great.

but, from yestreday and without changing anything, it can not connect to Hylafax server (same connection, same user, ...) ??

This is the error :
Connection timed out: connect

Anyhelp ??? Thanks

===============================================

java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at gnu.inet.ftp.FtpClientProtocol.connect(FtpClientProtocol.java:1561)
at gnu.hylafax.HylaFAXClientProtocol.open(HylaFAXClientProtocol.java:832)
at yajhfc.HylaClientManager.forceLogin(HylaClientManager.java:132)
at yajhfc.model.servconn.hylafax.HylaFaxListConnection.connect(HylaFaxListConnection.java:162)
at yajhfc.MainWin$LoginThread.run(MainWin.java:2778)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


YajHFC 0.5.1beta1
Java 1.6.0_24 (Sun Microsystems Inc.)
Java(TM) SE Runtime Environment 1.6.0_24-b07
Java HotSpot(TM) Client VM
Windows XP 5.1 (x86)
 

Sacrilego

Member
Joined
Jan 21, 2009
Messages
57
Reaction score
0
Active Directory Authentication.

AvantFax has been a big hit with us, so far the users like the idea of receiving faxes in their Exchange inbox :)

Thanks to Apache's Authentication modules, I even got AvantFax authenticating users through Active Directory.

Would a small howto be of interest?
 

ghurty

Senior Member
Joined
Jan 13, 2009
Messages
852
Reaction score
4
AvantFax has been a big hit with us, so far the users like the idea of receiving faxes in their Exchange inbox :)

Thanks to Apache's Authentication modules, I even got AvantFax authenticating users through Active Directory.

Would a small howto be of interest?

I know I would interested. Thanks
 

Members online

No members online now.

Forum statistics

Threads
25,812
Messages
167,763
Members
19,241
Latest member
bellabos
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.
Top