HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] faxrcvd hangs and doesn't route.



Hi.
I'm having diffrent sort of problems. When I seem to have solved one
another arises. I finally recieved a fax. Earlier I only got handshake
problems for incomming calls, but seems OK now.
However when an incomming fax comes in the faxrcvd is launched nut
hangs. Hope someone can help me debug this.

...
...
.....
Jun 12 08:13:44 gio FaxGetty[1669]: DELAY 75 ms
Jun 12 08:13:45 gio FaxGetty[1669]: DELAY 2600 ms
Jun 12 08:13:47 gio FaxGetty[1669]: DELAY 3000 ms
Jun 12 08:13:57 gio FaxGetty[1669]: MODEM U.S. ROBOTICS 56K FAX /
Jun 12 08:16:49 gio kernel: isdn_net: call from 87184358,1,0 ->
871941639
Jun 12 08:16:49 gio kernel: isdn_net: Service-Indicator not 7, ignored
Jun 12 08:16:49 gio kernel: isdn_tty: call from 87111111 -> 871222222
ignored
Jun 12 08:17:07 gio FaxGetty[1669]: ANSWER: FAX CONNECTION  DEVICE
'/dev/ttyS1'
Jun 12 08:17:27 gio FaxGetty[1669]: RECV FAX (00000014): from +39 0871
11111, page 1 in 0:18, INF, 3.85 line/mm, 1-D MR, 14400 bit/s
Jun 12 08:17:27 gio FaxGetty[1669]: RECV FAX (00000014):
recvq/fax00001.tif from +39 0871 11111, route to <unspecified>, 1 pages
in 0:20
##########################################################
What does the "route to <unspecified>" mean? Is it trying
to send the fax somewhere?
##########################################################
Jun 12 08:17:29 gio FaxGetty[1669]: RECV FAX: bin/faxrcvd
"recvq/fax00001.tif" "ttyS1" "00000014" "" "" ""
##########################################################


Here,at the end, Faxgetty should be resetting the modem and I should be
viewing
".............MODEM U.S. ROBOTICS 56K FAX" but I'm not. Why?
The modem is not resetting......
Infact, faxstat gives me (after 10minutes for a 1 page fax):

[root@gio root]# faxstat -s
HylaFAX scheduler on gio.geoform.home: Running
Modem ttyS1 (0871222222): Receiving from "+39 0871 11111"

The only change I made towards the config.ttyS0 (USR 56K Fax Modem) was
changing AT&FAA=1 to AT&FAA=0. I read this change on the ML archieves.

I did a 'ps -ae' and found out that the faxrcvd script is hanginig.
Shouldn't it terminate after finishing the recieving process?
.....
.....
 1667 tty5     00:00:00 mingetty
 1668 tty6     00:00:00 mingetty
 1669 ?        00:00:00 faxgetty <------
 2011 ?        00:00:00 httpd
 2012 ?        00:00:00 httpd
 2013 ?        00:00:00 httpd
 2178 tty1     00:00:00 bash
 2224 tty1     00:00:00 tail
 2229 ?        00:00:00 faxrcvd <------
 2238 ?        00:00:00 sendmail
 2240 ?        00:00:00 postdrop
 2267 ?        00:00:02 sshd
 2269 pts/0    00:00:00 bash
 2324 pts/0    00:00:00 tail
 2345 pts/0    00:00:00 tail
 2347 pts/0    00:00:00 ps
 2348 pts/0    00:00:00 less

So I decided to give a SIGTERM to the faxrcvd and the modem magically
got resetted. I'm suspecting it was the no route message that cuased
this problem. This is what I got after the kill process:

.....
.....
Jun 12 08:17:29 giove FaxGetty[1669]: RECV FAX: bin/faxrcvd
"recvq/fax00001.tif" "ttyS1" "00000014" "" "" ""
Jun 12 08:41:15 giove FaxGetty[1669]: Bad exit status 017 for
'bin/faxrcvd "recvq/fax00001.tif" "ttyS1" "00000014" "" "" ""'
Jun 12 08:41:17 giove FaxGetty[1669]: DELAY 75 ms
Jun 12 08:41:17 giove FaxGetty[1669]: DELAY 2600 ms
Jun 12 08:41:20 giove FaxGetty[1669]: DELAY 3000 ms
Jun 12 08:41:29 giove FaxGetty[1669]: MODEM U.S. ROBOTICS 56K FAX /

I don't think it's the FaxDispatch that made the problem:

[root@gio root]# cat /var/spool/hylafax/etc/FaxDispatch  
case "$SENDER" in
*1*510*526*1212*) SENDTO=sam;;          # Sam's test rig in Berkeley
esac
case "$DEVICE" in
ttyS1)            SENDTO=pippo;;         # all faxes received on ttyS1
esac
case "$CIDNUMBER" in
0872*)        SENDTO=fabio; FILETYPE=pdf;; # all faxes from area code
0872
esac

where fabio and pippo are regular system accounts on the fax server
machine. The faxrcvd man page says that FaxDisPatch is a shell script so
must I put #!/bin/bash as first line? Nor is Faxmaster getting any
notifications. In the /etc/aliases (not /var/spool/hylafax/etc ) a
inserted a row:

[root@giove root]# cat /etc/aliases 
FaxMaster: pippo@geoform.home

Is it correct?

BTW. Why don't I get reciepts for sent faxes? Maybe this is connected to
faxrcvd malfunction (prior mentioned hangiing of faxrcvd.....)?

thanks and greetings.

-- 
                 Antonio Gennarini
                Crecchio, CH - ITALY
	-----------------------------------
Earth Science student at University "G. D'Annunzio".
     Join th GNU generation, start from LINUX.

____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null




Project hosted by iFAX Solutions