TUTORIAL Install Incredible Fax 11

centoasa

Member
Joined
May 31, 2009
Messages
118
Reaction score
1
Maybe permission on var/www/html/avantfax/faxes? I've just run chown -R apache.uucp /var/www/html/avantfax/faxes
 

shane

Member
Joined
Dec 19, 2008
Messages
77
Reaction score
1
Greetings,

I installed from PiaF 2.0.6.4.2 32-bit ISO (2013-03-31) and ran into a couple of minuscule issues during the process.

First, for those who stumbled across this post, _always_ perform a backup prior to the installation of Incredible PBX, then perform _another_ backup prior to the installation of IncredFax.


Code:
install-incredfax2 - 2.2.0 released on 082612
CentOS release 6.4 (Final) - 32 Bit
**********************************************************************
* Your system appears to meet the requirements!                      *
**********************************************************************
* REQUIRED                    DETECTED
*----------------------------- ------------------------
* Asterisk Version 1.8/10      | 10        <----- 10.12.2
* Freepbx Version 2.8/2.9/2.10 | 2.9.0.11  <----- 2.9.0.12 per GUI
* PIAF Family Version 206X    | 20641      <----- 20642
* CentOS Version 6.2 or higher | 6.4
* CentOS Type 32 or 64 bit    | 32 Bit
**********************************************************************
* Now continuing with the installation                              *
**********************************************************************


I installed PiaF RED, backed up system, installed Incredible PBX 3.x, backed up the system, then ran:

Code:
install-incredpbx3
update-programs
update-fixes

Backed up the system, then ran:

Code:
install-incredfax2

I experienced the following error:

Code:
No package hylafax+-server available.

To work around this minuscule issue, I recovered from backup and ran:

Code:
yum install hylafax*

Which installed both hylaFAX+ server and client.

Next, I ran:

Code:
install-incredfax2

I followed the prompts and the installation completed successfully. :)

After rebooting, I ran the following:
Code:
update-programs
update-fixes
yum install perl-CGI
chkconfig --level 345 hylafax+ on
chkconfig --level 345 iaxmodem on
service hylafax+ restart
service iaxmodem restart

I configured via the <a href="http://www.pbxinaflash.com/community/index.php?threads/hylafax-avantfax-for-piaf-parts-1-4.3645/">Tutorial: HylaFAX / AvantFax for PIAF! - Parts 1-4</a>.

I was able to receive a fax, but had trouble sending one.

The following entry (sanitized and extra spaces removed) was in /var/spool/hylafax/etc/xferfaxlog
Code:
04/09/13 13:19 UNSENT 6 "" user@localhost "1xxxxxxxxxx" "" 0 0 0:00:00 0:00:00 "**** Page has no /MediaBox attribute. Using the current page size.\
  Error: /stackunderflow in --run--\

I updated to ghostscript-9.07 to work around this issue (I recommend CUPS users download/compile/install CUPS first).

Code:
cd /usr/src
w-g-e-t http://downloads.ghostscript.com/public/ghostscript-9.07.tar.gz
tar -xvf ghostscript-9.07.tar.gz
cd ghostscript-9.07
./configure
make
make install
ldconfig

Next, I updated HylaFAX+ to use the newer version of ghostscript.

Using your favorite editor (nano, vi, emacs) or script, edit /var/spool/hylafax/etc/setup.cache.

Change the following line:
Code:
GSRIP='/usr/bin/gs'

to

Code:
GSRIP='/usr/local/bin/gs'

Restart hylaFAX+.

Code:
service hylafax+ restart

I successfully faxed a 100,965,810 byte tiff file (outbound via CallCentric), to my Panasonic Fax unit (inbound Google Voice connected to Obi100).

I should note that hylaFAX+'s automatic resend function works very well... the first two attempts overflowed the receive buffer in the Panasonic Fax unit (it's 10+ years old), and the third attempt switched to line by line mode. :p


(original post date: Apr 10, 2013)


Thank you for the write up, it was exactly the fix we needed for the no mediabox error! :clap:

Shane
 

lowno

Guru
Joined
Feb 18, 2009
Messages
125
Reaction score
8
Followed this to get rid of the media box error as well.

Now I have a new error:
Problem sending the fax.: rejected bin/ps2fax

Any tips?
 

cstinson

New Member
Joined
Apr 9, 2010
Messages
3
Reaction score
0
I get the following error when trying to start hylafax. Do I need to run the faxsetup?

HylaFAX FATAL ERROR: /var/spool/hylafax/etc/setup.cache is missing!

The file /var/spool/hylafax/etc/setup.cache is not present.
This probably means the machine has not been setup using the
faxsetup(8C) command. Read the documentation on setting up
HylaFAX before you startup a server system.
 

kdaffef02

Member
Joined
Apr 29, 2011
Messages
114
Reaction score
8
Hi,​
Thank for any help !!! :mad:
After many failed install, I succedded to get incredifax2 working (as detailed in shane​
tuto above :clap:) . I can send faxes to another hylafax server, can not receive and can not send to normal regular fax machine, I get this error :​

- avantfax result : Problem sending the fax. : No carrier detected​

- from Astreisk logfiles :
[2014-01-31 16:55:38] VERBOSE[22691] netsock2.c: == Using SIP RTP TOS bits 184
[2014-01-31 16:55:38] VERBOSE[22691] netsock2.c: == Using SIP RTP CoS mark 5
[2014-01-31 16:55:38] VERBOSE[22691] app_dial.c: -- Called SIP/Loriental-09/0140151450
[2014-01-31 16:55:39] VERBOSE[22691] app_dial.c: -- SIP/Loriental-09-00000006 is ringing
[2014-01-31 16:55:39] VERBOSE[22691] app_dial.c: -- SIP/Loriental-09-00000006 is making progress passing it to Local/0140151450@from-internal-00000001;2
[2014-01-31 16:55:39] VERBOSE[22690] app_dial.c: -- Local/0140151450@from-internal-00000001;1 is ringing
[2014-01-31 16:55:39] VERBOSE[22690] app_dial.c: -- Local/0140151450@from-internal-00000001;1 is making progress passing it to IAX2/iax-fax1-7661
[2014-01-31 16:55:40] VERBOSE[22691] app_dial.c: -- SIP/Loriental-09-00000006 answered Local/0140151450@from-internal-00000001;2
[2014-01-31 16:55:40] VERBOSE[22690] app_dial.c: -- Local/0140151450@from-internal-00000001;1 answered IAX2/iax-fax1-7661
[2014-01-31 16:55:40] VERBOSE[22691] pbx.c: -- Executing [h@macro-dialout-trunk:1] Macro("Local/0140151450@from-internal-00000001;2", "hangupcall,") in new stack
[2014-01-31 16:55:40] VERBOSE[22691] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("Local/0140151450@from-internal-00000001;2", "1?theend") in new stack
[2014-01-31 16:55:40] VERBOSE[22691] pbx.c: -- Goto (macro-hangupcall,s,3)
[2014-01-31 16:55:40] VERBOSE[22691] pbx.c: -- Executing [s@macro-hangupcall:3] ExecIf("Local/0140151450@from-internal-00000001;2", "0?Set(CDR(recordingfile)=)") in new stack
[2014-01-31 16:55:40] VERBOSE[22691] pbx.c: -- Executing [s@macro-hangupcall:4] Hangup("Local/0140151450@from-internal-00000001;2", "") in new stack
[2014-01-31 16:55:40] VERBOSE[22691] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/0140151450@from-internal-00000001;2' in macro 'hangupcall'
[2014-01-31 16:55:40] VERBOSE[22691] features.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'Local/0140151450@from-internal-00000001;2'
[2014-01-31 16:55:40] VERBOSE[22691] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'Local/0140151450@from-internal-00000001;2' in macro 'dialout-trunk'
[2014-01-31 16:55:40] VERBOSE[22691] pbx.c: == Spawn extension (from-internal, 0140151450, 5) exited non-zero on 'Local/0140151450@from-internal-00000001;2'
[2014-01-31 16:55:49] WARNING[519] chan_sip.c: Rejecting offer with image stream due to UDPTL initialization failure[2014-01-31 16:55:49] WARNING[22690] res_rtp_asterisk.c: RTP Read too short
[2014-01-31 16:56:16] VERBOSE[22690] pbx.c: == Spawn extension (from-fax, 0140151450, 1) exited non-zero on 'IAX2/iax-fax1-7661'
[2014-01-31 16:56:16] VERBOSE[22690] chan_iax2.c: -- Hungup 'IAX2/iax-fax1-7661'
here is Piaf :​
PBX in a Flash RED Status Program
─────────────────────────────────────────────────────────────────────────────
┌────────────────────────SYSTEM INFORMATION───────────────────────────┐
│ Asterisk = ONLINE | Dahdi = ONLINE | MySQL = ONLINE │
│ SSH = ONLINE | Apache = ONLINE | Iptables = ONLINE │
│ Fail2ban = ONLINE | Internet = ONLINE | Ip6Tables = ONLINE │
│ Disk Free = ADEQUATE| Mem Free = ADEQUATE| NTPD = ONLINE │
│ SendMail = ONLINE | Samba = OFFLINE | Webmin = ONLINE │
│ Ethernet0 = ONLINE | Ethernet1 = N/A | Wlan0 = N/A │
│ │
│ PIAF Installed Version = 2.0.6.3 under *XEN* │
│ FreePBX Version = 2.10.1.10 │
│ Running Asterisk Version = 10.12.1 │
│ Asterisk Source Version = 10.12.1 │
│ Dahdi Source Version = 2.6.2 │
│ Libpri Source Version = 1.4.12 │
│ IP Address = XXXXXXXX on eth0 │
│ Operating System = CentOS release 6.3 (Final) │
│ Kernel Version = 2.6.32-279.19.1.el6.i686 - 32 Bit
Incredifax :​
PBX in a Flash RED Status Program
─────────────────────────────────────────────────────────────────────────────
┌────────────────────────SYSTEM INFORMATION───────────────────────────┐
│ Asterisk = ONLINE | Dahdi = ONLINE | MySQL = ONLINE │
│ SSH = ONLINE | Apache = ONLINE | Iptables = ONLINE │
│ Fail2ban = ONLINE | Internet = ONLINE | Ip6Tables = ONLINE │
│ Disk Free = ADEQUATE| Mem Free = ADEQUATE| NTPD = ONLINE │
│ SendMail = ONLINE | Samba = OFFLINE | Webmin = ONLINE │
│ Ethernet0 = ONLINE | Ethernet1 = N/A | Wlan0 = N/A │
│ │
│ PIAF Installed Version = 2.0.6.3 under *XEN* │
│ FreePBX Version = 2.10.1.10 │
│ Running Asterisk Version = 10.12.1 │
│ Asterisk Source Version = 10.12.1 │
│ Dahdi Source Version = 2.6.2 │
│ Libpri Source Version = 1.4.12 │
│ IP Address = XXXXXXXX on eth0 │
│ Operating System = CentOS release 6.3 (Final) │
│ Kernel Version = 2.6.32-279.19.1.el6.i686 - 32 Bit
Regards,​
Kamel​
 
Joined
May 23, 2013
Messages
223
Reaction score
28
Try increasing your buffer size set t38pt_udptl=yes,redundancy,maxdatagram=400
 
Joined
May 23, 2013
Messages
223
Reaction score
28
Easiest way for most is use the web portal goto Settings>SIP Settings> scroll to the bottom and add it under "Other SIP Settings" so you would have t38pt_udptl in the left box and yes,redundancy,maxdatagram=400 in the right box. Save, Reload Asterisk and test.

You should already have t38pt_udptl in there for faxing T38 now, and most likely just yes on the right side. Just change the right side to what I posted and try. If you don't have anything you will want to add this anyway to make T38 work right.
 

PBX@Home

Active Member
Joined
May 22, 2013
Messages
126
Reaction score
37
You can check here: web portal goto Settings>SIP Settings> scroll to the bottom and add it under "Other SIP Settings" so you would have t38pt_udptl in the left box and yes,redundancy,maxdatagram=400 in the right box. Save, Reload Asterisk and test.
 

kdaffef02

Member
Joined
Apr 29, 2011
Messages
114
Reaction score
8
Easiest way for most is use the web portal goto Settings>SIP Settings> scroll to the bottom and add it under "Other SIP Settings" so you would have t38pt_udptl in the left box and yes,redundancy,maxdatagram=400 in the right box. Save, Reload Asterisk and test.

You should already have t38pt_udptl in there for faxing T38 now, and most likely just yes on the right side. Just change the right side to what I posted and try. If you don't have anything you will want to add this anyway to make T38 work right.
Great, will make adjustments now and tell you if resolved my poblem. very great,
 

kdaffef02

Member
Joined
Apr 29, 2011
Messages
114
Reaction score
8
Sorry, after making thoses adjustments, the fax is still in the Outbox : Problem sending the fax.: No carrier detected :banghead:
And I read this for asterisk logfiles :

[2014-01-31 19:45:55] VERBOSE[8086] features.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'Local/Fax-number@from-internal-00000000;2'
[2014-01-31 19:45:55] VERBOSE[8086] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'Local/Fax-number@from-internal-00000000;2' in macro 'dialout-trunk'
[2014-01-31 19:45:55] VERBOSE[8086] pbx.c: == Spawn extension (from-internal, Fax-number, 5) exited non-zero on 'Local/Fax-number@from-internal-00000000;2'
[2014-01-31 19:46:03] WARNING[8085] res_rtp_asterisk.c: RTP Read too short[2014-01-31 19:46:03] VERBOSE[7753] netsock.c: == Using UDPTL TOS bits 184
[2014-01-31 19:46:03] VERBOSE[7753] netsock.c: == Using UDPTL CoS mark 5
[2014-01-31 19:46:03] WARNING[8085] res_rtp_asterisk.c: RTP Read too short[2014-01-31 19:46:04] WARNING[8085] res_rtp_asterisk.c: RTP Read too short[2014-01-31 19:46:04] WARNING[8085] res_rtp_asterisk.c: RTP Read too short[2014-01-31 19:46:05] WARNING[8085] res_rtp_asterisk.c: RTP Read too short[2014-01-31 19:46:05] WARNING[8085] res_rtp_asterisk.c: RTP Read too short[2014-01-31 19:46:06] WARNING[8085] res_rtp_asterisk.c: RTP Read too short[2014-01-31 19:46:07] WARNING[8085] res_rtp_asterisk.c: RTP Read too short[2014-01-31 19:46:08] WARNING[8085] res_rtp_asterisk.c: RTP Read too short[2014-01-31 19:46:08] WARNING[8085] res_rtp_asterisk.c: RTP Read too short[2014-01-31 19:46:33] VERBOSE[8085] pbx.c: == Spawn extension (from-fax,Fax-number , 1) exited non-zero on 'IAX2/iax-fax3-1204'
[2014-01-31 19:46:33] VERBOSE[8085] chan_iax2.c: -- Hungup 'IAX2/iax-fax3-1204
 
Joined
May 23, 2013
Messages
223
Reaction score
28
Also my bad, I just noticed your log says IAX2, I'm not a expert here but I'm not sure you will be able to get T38 to work with IAX2 Trunks, I am not sure you can handoff/reinvite a call over IAX2 to use T38, that might the reason for the carrier not detected message.
 

kdaffef02

Member
Joined
Apr 29, 2011
Messages
114
Reaction score
8
Also my bad, I just noticed your log says IAX2, I'm not a expert here but I'm not sure you will be able to get T38 to work with IAX2 Trunks, I am not sure you can handoff/reinvite a call over IAX2 to use T38, that might the reason for the carrier not detected message.

Sure, it supports faxing over Sip lines. I was able to send fax to an internet hylafax faxin server, but no to regular faxes. should i test something else ?. Thanks for help !.
Kamel
 
Joined
May 23, 2013
Messages
223
Reaction score
28
I am not actually sure what to try next if you are sure you are using a provider that supports T38..... from the asterisk log files do you actually see the udptl commands being sent?
 
Joined
May 23, 2013
Messages
223
Reaction score
28
You should see something like this in the asterisk logs:
[2014-01-31 13:27:37] VERBOSE[4676] udptl.c: UDPTL (SIP/v-00000188): packet to x.x.x.x:20224 (seq 6395, len 220)
[2014-01-31 13:27:37] VERBOSE[4676] udptl.c: UDPTL (SIP/5xxxxxxxx-00000187): packet from xxx.xxx.xxx.xxx:5004 (seq 6396, len 112)
[2014-01-31 13:27:37] VERBOSE[4676] udptl.c: UDPTL (SIP/v-00000188): packet to x.x.x.x:20224 (seq 6396, len 220)
[2014-01-31 13:27:37] VERBOSE[4676] udptl.c: UDPTL (SIP/5xxxxxxxx-00000187): packet from xxx.xxx.xxx.xxx:5004 (seq 6397, len 112)
 

kdaffef02

Member
Joined
Apr 29, 2011
Messages
114
Reaction score
8
Right, I'm saying I am 98% sure you can not send faxes using IAX trunks and T38. Your log shows you are sending over a IAX trunk not a SIP trunk, can you setup a regular SIP trunk with your provider and try that? Unless someone else can confirm I'm wrong and I just might be, I think you need to be using SIP.

As I'm not expert, that's what I want : sending fax over SIP trunks, I have no IAX trunk in my PIAF server.
I'm missing a big error, but what ?
What I did :
- Install Piaf server (red - freepbx 2.10, ..., Sip trunks, and incredifax2).
- I have a did pointed to hylafax-custom destination, outbound route via a sip trunk,
- tested sending via avantfax,

And that's all !!
 
Joined
May 23, 2013
Messages
223
Reaction score
28
Ok my last suggestion then I'm out of ideas for the RTP too short error but do you have jitter buffer disabled?

Also some providers require you to start with G711 and some G729 before the reinvite will work. Most require the call to start as G711 but I use one that requires G729.
 

kdaffef02

Member
Joined
Apr 29, 2011
Messages
114
Reaction score
8
Ok my last suggestion then I'm out of ideas for the RTP too short error but do you have jitter buffer disabled?

Also some providers require you to start with G711 and some G729 before the reinvite will work. Most require the call to start as G711 but I use one that requires G729.

Hi again,
Voip provider codecs aleready configured with this sip trunk are : g711, g729 (first g711 then g729).
But in my advanced sip settings : only ulaw and alaw are selected.
- jitter buffer is disabled
- RTP Timers? (rtptimeout)(120) (rtpholdtimeout)(300) (rtpkeepalive)(60) (by default)
- during a call, there is no external call ?? (see file attached)
Probably, this is fine ?
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    31.6 KB · Views: 10

Members online

Forum statistics

Threads
25,811
Messages
167,756
Members
19,240
Latest member
nikko
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