BUG Incredible Fax Issues in Ubuntu 18.04

Ryushin

New Member
Joined
Aug 27, 2018
Messages
14
Reaction score
0
Starting to work on getting faxing to work now. I ran the incrediblefax13_ubuntu18.sh script but it looks like some things are never finished or are incorrect. I'm just starting to test and set this up right now.

Line 147:
# Set up FaxDispatch. Can't add to loop without convoluted sed awk crap that is over my head. No big deal.
echo "
case "$DEVICE" in
ttyIAX0) [email protected]; FILETYPE=pdf;; # all faxes received on ttyIAX0
ttyIAX1) [email protected]; FILETYPE=pdf;; # all faxes received on ttyIAX1
ttyIAX2) [email protected]; FILETYPE=pdf;; # all faxes received on ttyIAX2
ttyIAX3) [email protected]; FILETYPE=pdf;; # all faxes received on ttyIAX3
esac
" > /var/spool/hylafax/etc/FaxDispatch

File /var/spool/hylafax/etc/FaxDispatch had "$DEVICE" missing on line 149. It looked like this:
case in

I added the missing "$DEVICE".


Line 171:
# Set up custom destination for fax in Asterisk and reload
RESULT=`/usr/bin/mysql -uroot -ppassw0rd <<SQL
use asterisk
INSERT INTO custom_destinations
(custom_dest, description, notes)
VALUES ('custom-fax-iaxmodem,s,1', 'Fax (Hylafax)', '');
quit
SQL`
asterisk -rx "module reload"

There is no custom_destinations table in the mysql asterisk DB. Not sure if I need to create this table or not in order for this to work.
 

Ryushin

New Member
Joined
Aug 27, 2018
Messages
14
Reaction score
0
Also looks like /var/spool/hylafax/etc/FaxDispatch needs a sed entry to replace [email protected] with the $faxemail variable read in the beginning of the script.
 

Ryushin

New Member
Joined
Aug 27, 2018
Messages
14
Reaction score
0
I have a couple of goals right now with the faxing. First is to have fax detect working for specific DIDs and have the fax emailed to the same place the extension sends voicemail. Second, setting a specific DID to be a dedicated fax and have any faxes coming in to be emailed to that specific user.

My FaxDispatch on my old server looked like this:
#!/bin/sh
##
## FaxDispatch
## (see `man faxrcvd` for more info)
FILETYPE=pdf;
[email protected]; # default

# The numbers before the ) correspond to asterisk extensions in
# extensions.conf
case "$CALLID4" in
# customer DID routing:
7667) [email protected]; FILETYPE=pdf;;
2778) [email protected]; FILETYPE=pdf;;
2750) [email protected]; FILETYPE=pdf;;
2726) [email protected]; FILETYPE=pdf;;
2790) [email protected]; FILETYPE=pdf;;
2798) [email protected]; FILETYPE=pdf;;
2797) [email protected]; FILETYPE=pdf;;

# everything else goes to default case:
*) [email protected]; FILETYPE=pdf;;
esac


I'm still going through that installation script to make sure everything was set up correctly according to the script.
 

Ryushin

New Member
Joined
Aug 27, 2018
Messages
14
Reaction score
0
Avantfax does not show the modems as being ready:
ttyIAX0 [Please wait] ttyIAX1 [Please wait] ttyIAX2 [Please wait] ttyIAX3 [Please wait]

Also wondering what Avantfax gives me. Reading this (http://nerdvittles.com/?p=24058#app12) and the installation guide, I think all faxes are going into Avantfax. It looks like you can send faxes through Avantfax which might be the only thing I could see me using it for. Kinda thinking I can just remove Avantfax.

Edit: It looks like Avantfax is probably running the faxstat command. Running faxstat manually was having it ask for a password.

/var/spool/hylafax/etc/hosts.hfaxd had a record for:
localhost:21::
^admin@:1:<random stuff here>

It seems it was not picking up the localhost. I added
localhost
127.0.0.1
before the previous entries and now faxstat and Avantfax is showing the modems.
 
Last edited:

Ryushin

New Member
Joined
Aug 27, 2018
Messages
14
Reaction score
0
I'm still trying to get this to work. I've been going through the install script as well.

I've done a few changes here:
Removed the symlink from /usr/local/sbin/faxgetty which pointed to /usr/sbin/faxgetty
Removed the faxgetty entries from /etc/inittab since systemd does not use inittab. Also removed the faxgetty start entries from /etc/rc.local.

Since I removed the faxgetty entries from inittab, hylafax starts up the four faxgetty programs as well. Doing the above fixes the 8 faxgetty daemons from running, 4 from /usr/local/sbin/faxgetty and 4 from /usr/sbin/faxgetty.
 

dicko

Still learning but earning
Joined
Oct 30, 2015
Messages
1,635
Reaction score
846
Make sure the first line of hosts.hfaxd is

127.0.0.1

modify faxadduser line in

config.php in your rot directory to add -c argument

(man faxadduser)
 

Ryushin

New Member
Joined
Aug 27, 2018
Messages
14
Reaction score
0
Make sure the first line of hosts.hfaxd is

127.0.0.1

modify faxadduser line in

config.php in your rot directory to add -c argument

(man faxadduser)

man faxadduser does not show a -c argument.

Did you mean for this to go into the config.php at /var/www/html/avantfax/includes/config.php?
 

dicko

Still learning but earning
Joined
Oct 30, 2015
Messages
1,635
Reaction score
846
FAXADDUSER(8C) FAXADDUSER(8C)

NAME
faxadduser - add a fax user to the permissions file

SYNOPSIS
/usr/sbin/faxadduser [ -a admin-password ] [ -f permissions file ] [ -h host name ] [ -p password ] [ -u
uid ] username

DESCRIPTION
faxadduser creates a new user for HylaFAX services, updating appropriate permission files (see
hosts.hfaxd(5F)). Note that users may also be added through the ``SITE ADDUSER'' feature from an adminis‐
trative client. However, faxadduser works with the hosts.hfaxd(5F)) file directly and does not operate as
an administrative client.

OPTIONS
The following options are available:

-a admin-password
Password for the user to gain admin privileges.

-c Add new user records at bottom of hosts.hfaxd file instead of at the top.

-f permissions-file
Use a permissions file other than the default.

-h host name
Authenticate user from this host only.

-p password
Password for the user to access fax services.

-u user-id
User id number for user.

SEE ALSO
faxdeluser(8C), hosts.hfaxd(5F),

Aug 10, 1999 FAXADDUSER(8C)





if avantfax is your root , yes

$FAXADDUSER = $HYLAFAX_PREFIX.DIRECTORY_SEPARATOR.'sbin'.DIRECTORY_SEPARATOR.'faxadduser -c';
 

Ryushin

New Member
Joined
Aug 27, 2018
Messages
14
Reaction score
0
Just some more information in case anyone as any insights:
My sip provider is Flowroute. I've enabled T.38 in my sip config. I'm seeing this in my asterisk console:
[2018-10-18 11:25:54] NOTICE[3063][C-00000004]: chan_sip.c:11075 process_sdp: T.38 re-INVITE detected but no fax extension

The fax extension was created by the incredifax install script:
[custom-fax-iaxmodem]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,SendDTMF(1)
exten => s,n,Dial(IAX2/iax-fax0/${EXTEN})
exten => s,n,Dial(IAX2/iax-fax1/${EXTEN})
exten => s,n,Dial(IAX2/iax-fax2/${EXTEN})
exten => s,n,Dial(IAX2/iax-fax3/${EXTEN})
exten => s,n,Busy
exten => s,n,Hangup

So I'm not sure what the problem is yet.
 

Ryushin

New Member
Joined
Aug 27, 2018
Messages
14
Reaction score
0
FAXADDUSER(8C) FAXADDUSER(8C)

Looks like faxadduser in ubuntu's hylafax-server 3:6.0.6-8, does not have the -c option. But faxadduser does add the user to the bottom of the /etc/hylafax/hosts.hfaxd like it is supposed to.
 

Ryushin

New Member
Joined
Aug 27, 2018
Messages
14
Reaction score
0
I found out the problem with mysql custom_destinations table problem.

So, for reference, the incrediblefax13_ubuntu18.sh script has this:
Line 171:
# Set up custom destination for fax in Asterisk and reload
RESULT=`/usr/bin/mysql -uroot -ppassw0rd <<SQL
use asterisk
INSERT INTO custom_destinations
(custom_dest, description, notes)
VALUES ('custom-fax-iaxmodem,s,1', 'Fax (Hylafax)', '');
quit
SQL`
asterisk -rx "module reload"

Looking at: /var/www/html/admin/modules/customappsreg/Customappsreg.class.php
It seems that they have renamed the table from custom_destinations to custom_extensions.

So changing the mysql syntax to use custom_extensions solves the missing entry problem for custom-fax-iaxmodem problem:
INSERT INTO custom_extensions
(custom_exten, description, notes)
VALUES ('custom-fax-iaxmodem,s,1', 'Fax (Hylafax)', '');

Still do not fix the error:
chan_sip.c:11075 process_sdp: T.38 re-INVITE detected but no fax extension

So still digging.

It would be really nice if these Installers and the scripts were hosted on some kind of git source. Github, gittea, something. It would be nice to open issues and see it tracked and fixed.
 

Members online

No members online now.

Forum statistics

Threads
25,825
Messages
167,849
Members
19,250
Latest member
mark-curtis
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