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

Force Google Voice Trunk For Outbound

After reading all 40+ pages of posts in this thread, I easily got avantfax/hylafax set up on my server.

However, I was having a problem forcing hylafax to use a specific google voice trunk for outbound faxing.

Here is the syntax that works on my box in case it helps anyone else:
Code:
[from-fax]
exten => _x.,1,Dial(local/${EXTEN}@gvoice-002)
exten => _x.,n,Hangup()

You would change "gvoice-002" to be whatever your gvoice trunk name is
 
i wanted to upgrade the avantfax to 3.3.3 i am currently on 316 on the piaf verson 1.2.9

can i just rerun the script or what is the best method?
 
Since the Centos 5.5 to 5.6 update, I have done about 10 fresh installs of Piaf, and cannot get Avantfax to send faxes any more.
The error is "Error: /invalidfont in /f" when I try to send a fax. Before the Centos update the installation always worked for me like a charm using a Gvoice incoming route.
But is not way to revert to 5.5 anymore.

This is a copy of my status file:

Code:
Date and Time =  20110418 214
PIAF color              =  PURPLE
Asterisk Status         =  ONLINE
Dahdi Status            =  ONLINE
Zaptel Status           =  OFFLINE
MySql Status            =  ONLINE
SSH Status              =  ONLINE
Apache Status           =  ONLINE
Iptables Status         =  ONLINE
Ip6tables Status        =  ONLINE
Fail2ban Status         =  ONLINE
IP Connect Status       =  ONLINE
Bluetooth Status        =  ONLINE
HIDD Status             =  ONLINE
NTPD Status             =  ONLINE
Sendmail Status         =  ONLINE
Samba Status            =  OFFLINE
Webmin Status           =  ONLINE
Ethernet 0 Status       =  ONLINE
Ethernet 1 Status       =  ONLINE
Wlan Status             =  N/A
PIAF Version            =  1.7.5.5
Freepbx Version         =  2.8.1.3
Running Asterisk        =  Asterisk 1.8.3.2
Asterisk Source Version =  1.8.3.2
Dahdi Source            =  2.4.1.1+2.4.1
Zaptel Source           =  UNAVAILABLE
Libpri Source           =  1.4.11.5
Addons Source           =  UNAVAILABLE
pbx.local on 192.168.56.101 - eth0
CentOS release 5.6 (Final) :32 Bit Kernel: 2.6.18-194.26.1.el5
********************************************************************
Ifconfig output
eth0      Link encap:Ethernet  HWaddr 08:00:27:EF:BA:56  
          inet addr:192.168.56.101  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:feef:ba56/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2059 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2274 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:321378 (313.8 KiB)  TX bytes:1230227 (1.1 MiB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:2C:24:F2  
          inet addr:10.0.3.15  Bcast:10.0.3.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe2c:24f2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3139 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3758 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:720635 (703.7 KiB)  TX bytes:956178 (933.7 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:5731 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5731 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:667654 (652.0 KiB)  TX bytes:667654 (652.0 KiB)

********************************************************************
Network Configuration output ifconfig-eth0
# Intel Corporation 82540EM Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=08:00:27:ef:ba:56
********************************************************************
Network Configuration output ifconfig-eth1
# Intel Corporation 82540EM Gigabit Ethernet Controller
DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=08:00:27:2c:24:f2
********************************************************************
uname -a output
Linux pbx.local 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:40 EST 2010 i686 i686 i386 GNU/Linux
********************************************************************
Routing Info - route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.3.0        *               255.255.255.0   U     0      0        0 eth1
192.168.56.0    *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
default         10.0.3.2        0.0.0.0         UG    0      0        0 eth1
********************************************************************
Free Memory free -m output
             total       used       free     shared    buffers     cached
Mem:           756        604        152          0         27        297
-/+ buffers/cache:        279        477
Swap:          760          0        760
********************************************************************
Disk Info df output
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2              9298028   3167320   5650768  36% /
/dev/sda1               101086     12342     83525  13% /boot
tmpfs                   387504         0    387504   0% /dev/shm
********************************************************************
Output of hosts file
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1		pbx.dyndns.org pbx.local pbx localhost.localdomain localhost
::1		localhost6.localdomain6 localhost6
********************************************************************
Dmidecode output
# dmidecode 2.10
SMBIOS 2.5 present.
5 structures occupying 352 bytes.
Table at 0x000E1000.

Handle 0x0000, DMI type 0, 20 bytes
BIOS Information
	Vendor: innotek GmbH
	Version: VirtualBox
	Release Date: 12/01/2006
	Address: 0xE0000
	Runtime Size: 128 kB
	ROM Size: 128 kB
	Characteristics:
		ISA is supported
		PCI is supported
		Boot from CD is supported
		Selectable boot is supported
		8042 keyboard services are supported (int 9h)
		CGA/mono video services are supported (int 10h)
		ACPI is supported

Handle 0x0001, DMI type 1, 27 bytes
System Information
	Manufacturer: innotek GmbH
	Product Name: VirtualBox
	Version: 1.2
	Serial Number: 0
	UUID: 3CEA9905-49C5-47BA-9BB0-A82D76FDA0FD
	Wake-up Type: Power Switch
	SKU Number: Not Specified
	Family: Virtual Machine

Handle 0x0003, DMI type 126, 13 bytes
Inactive

Handle 0x0002, DMI type 126, 7 bytes
Inactive

Handle 0xFEFF, DMI type 127, 147 bytes
End Of Table

Any advice will be appreciated.

Thank you

Gvtricks
 
Hi

A quick google search threw up some potential answers, I tried googling for

error invalidfont in findfont ghostscript

Which looks like it threw up some good information.

Joe
 
Hi

A quick google search threw up some potential answers, I tried googling for



Which looks like it threw up some good information.

Joe

I had this too. It can be ignored as the file that references this has multiple locations referenced it it.

**oops, replied before I read the whole post.... Sorry. I had an error about ghostscript location, but not this one. sorry...

*Not to steal the thread, but I have an updated thread that takes jroper's thread and many others I have come across and combines everything. I hope you don't mind jroper...

the thread is here with updated install script. It is for x86_64, but can be modified by putting the x86 urls in from hylafax.
 
Last edited by a moderator:
Hi

Why not become a developer on Tshifs site, and contribute to the code of A-Fax.

Joe
 
We've joined the good fight with Hylafax and Avantfax. I think we've finally got an installer for CentOS 5.6, Asterisk 1.8 and Incredible PBX that's so simple a monkey could do it. For reliable faxing, we recommend either a standard POTS line or a good connection with Axvoice, Teliax, voip.ms, or Future-Nine. See this link for the trunk setup instructions with Teliax and Future Nine. We have not had good results with Google Voice trunks but YMMV! We're batting about .100 with inbound and outbound GV trunks.

Once you have a reliable trunk for faxing, set up an outbound route to that trunk with a dial prefix (such as 9) so that outbound faxes prefixed with a 9 go out that route. You also will need a dedicated inbound DID just to handle fax calls. Point that DID to extension 329 (F-A-X), and everything else is automagic. Incoming faxes will be sent to your email address and also to the Avantfax web GUI at http://yourIPaddress/avantfax. This setup uses maint and your maint password for access!

If you'd like to be a pioneer AND you have PIAF-Purple installation plus Incredible PBX 1.8, then log into your server as root and...

Code:
cd /root
wget http://incrediblepbx.com/incrediblefax.sh
chmod +x incrediblefax.sh
./incrediblefax.sh


Feedback appreciated. There were lots of quirks in the prior script that hopefully have all been addressed. No faxes originally worked with CentOS 5.6 and Asterisk 1.8. Nerd Vittles article will be out next week. Thanks!
 
I just downloaded the latest iso and ran the purple install. However when I run the ./incrediblefax.sh the following error happens.

cat: /etc/pbx/.incredible: No such file or directory
Sorry. Please install Incredible PBX 1.8 before running Incredible Fax script.


Have you installed Incredible PBX?
 
No I did not. And I see now that I should have, however I dont have a Google Voice account.

-Scott
 
Thanks Ward,

That is good news, as we were not having as good of quality results with the standard fax versions that incrediblePBX used in asterisk 1.4 versus the hylafax server.

Are you going to release a plugin script for 1.4 and/or 1.6 or do you feel like 1.8 is now ready to be used for production?

KK
 
PIAF-Purple will soon be PIAF-Platinum. Unfortunately, Asterisk 1.8 is the only game in town now as far as Digium is concerned. And, luckily, we've given it quite a workout this past year so it's pretty solid at this point.
 
Incredible Fax Tutorial on YouTube

[youtube]T1YP9mua0Nw[/youtube]
 
PIAF-Purple will soon be PIAF-Platinum. Unfortunately, Asterisk 1.8 is the only game in town now as far as Digium is concerned. And, luckily, we've given it quite a workout this past year so it's pretty solid at this point.

Ward - does that mean that there will be another big update coming out soon?
Or is it just additional features, all of which can be added on at as they become available?
Just re-did a test system, but trying to make sure I shouldn't wait for anything else to come out before I start configuring it (I'm not in any big rush to get it out to production)...
Thanks!
 
The only update to 1.8 tree is some minor fixes so you are safe. There is an incremental ISO update in the near future to bring all of the CD's current with Centos updates. Thus PIAF 1.7.5.6.2 but that won't effect existing installs.

Couple of minor changes to the PIAFDL program

Perhaps a new AIO DVD may be coming although that is up in the air at the moment.....

So no waiting required.

Tom
 
The only update to 1.8 tree is some minor fixes so you are safe. There is an incremental ISO update in the near future to bring all of the CD's current with Centos updates. Thus PIAF 1.7.5.6.2 but that won't effect existing installs.

Couple of minor changes to the PIAFDL program

Perhaps a new AIO DVD may be coming although that is up in the air at the moment.....

So no waiting required.

Tom

Thanks a lot Tom, as always!
(Do I always ask the same questions?? :lol:)
 
Well No one really know what is going on in the teams mind...... sometimes not even the team!

Tom
 
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
 
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:
 
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
 

Members online

No members online now.

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