Hylafax Mailing List Archives

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

Re: [hylafax-users] Hylafax sends only after a restart



Hi Steven,

> >Thought so. So, this is not the reason why it is not sending immediately.
> >
> >Any other ideas
> >
> Have you used faxmodem to add the modem?  

I've added the line with faxmodem to the startscript of hylafax, to make
sure not to miss this step  ;-)  :
...
case $1 in
start)
	if $IS_ON fax && test -x $FAXQ; then
	    echo -n "Starting service HylaFAX"
	    killall -15 $FAXQ >/dev/null 2>&1
	    killall -15 $HFAXD >/dev/null 2>&1
	    /sbin/startproc $FAXQ || return=$rc_failed
	    /sbin/startproc $HFAXD -i $FAXPORT -o 4557 -s $SNPPPORT \
					|| return=$rc_failed
	    echo -e "$return"
# send-only environment
	    echo "start faxmodem"
	   /usr/sbin/faxmodem /dev/ttyS0
	fi
	;;
...


> After the first job is sent 
> what happens if you use faxstate to say the modem is ready again?

I've sended a job to hylafax, and used faxstat to check:

southpole: # faxstat ttyS0
HylaFAX scheduler on southpole.xxxxx.internal: Running
Modem ttyS0 (+49 211 xxxxxx): Waiting for modem to come ready

Hm, seems that it isn't recoginzing the modem as ready. So, restart:

southpole: # rchylafax restart
Shutting down service HylaFAX                                               
                         done
Starting service HylaFAX                                                    
                         done
start faxmodem

Thereafter it immediately starts sending.

> Is the modem actually ready after its finished sending the first job?  
> What are the output of the logs (syslog and that specific fax) when 
> turned all the way up?  Maybe the modem is hanging.

After the first job:

southpole: # faxstate ttyS0
FIFO.ttyS0: open: No such device or address
southpole: # faxstat ttyS0
HylaFAX scheduler on southpole.xxxx.internal: Running
Modem ttyS0 (+49 211 xxxxx): Waiting for modem to come ready
southpole: #

Interesting, as I was already using this modem together with hylafax under
an earlier SuSE release...

/var/log/messages:

Nov 24 21:36:43 southpole FaxSend[12323]: servertracing = 0x03FFFF (line 41)
Nov 24 21:36:43 southpole FaxSend[12323]: sessiontracing = 0xffffffff (line
42)
Nov 24 21:36:43 southpole FaxSend[12323]: recvfilemode = 0666 (line 43)
Nov 24 21:36:43 southpole FaxSend[12323]: logfilemode = 0666 (line 44)
Nov 24 21:36:43 southpole FaxSend[12323]: devicemode = 0660 (line 45)
Nov 24 21:36:43 southpole FaxSend[12323]: Unknown configuration parameter
"ringsbeforeanswer" ignored at line 46
Nov 24 21:36:43 southpole FaxSend[12323]: speakervolume = low (line 47)
Nov 24 21:36:43 southpole FaxSend[12323]: Unknown configuration parameter
"gettyargs" ignored at line 48
Nov 24 21:36:43 southpole FaxSend[12323]: localidentifier = axxite GmbH
(line 49)
Nov 24 21:36:43 southpole FaxSend[12323]: taglinefont = etc/lutRS18.pcf
(line 50)
Nov 24 21:36:43 southpole FaxSend[12323]: taglineformat = From %%l|%c|Page
%%P of %%T (line 51)
Nov 24 21:36:43 southpole FaxSend[12323]: maxrecvpages = 25 (line 52)
Nov 24 21:36:43 southpole FaxSend[12323]: modemtype = Class1 (line 58)
Nov 24 21:36:43 southpole FaxSend[12323]: modemrate = 19200 (line 59)
Nov 24 21:36:43 southpole FaxSend[12323]: modemflowcontrol = xonxoff (line
60)
Nov 24 21:36:43 southpole FaxSend[12323]: modemsetupdtrcmd = ATS13=1&D2
(line 62)
Nov 24 21:36:43 southpole FaxSend[12323]: modemsetupdcdcmd = AT&C1 (line 63)
Nov 24 21:36:43 southpole FaxSend[12323]: modemnoflowcmd = AT&H0&I0&R1 (line
64)
Nov 24 21:36:43 southpole FaxSend[12323]: modemhardflowcmd = AT&H1&I0&R2
(line 65)
Nov 24 21:36:43 southpole FaxSend[12323]: modemsoftflowcmd = AT&H2&I2&R1
(line 66)
Nov 24 21:36:43 southpole FaxSend[12323]: modemresultcodescmd = ATQ0X4 (line
67)
Nov 24 21:36:43 southpole FaxSend[12323]: modemmfrquerycmd = !USR (line 69)
Nov 24 21:36:43 southpole FaxSend[12323]: modemmodelquerycmd = ATI3 (line
70)
Nov 24 21:36:43 southpole FaxSend[12323]: modemrevquerycmd = ATI7 (line 71)
Nov 24 21:36:43 southpole FaxSend[12323]: class1nflocmd = AT&H0&I0&R1 (line
77)
Nov 24 21:36:43 southpole FaxSend[12323]: class1hflocmd = AT&H1&I0&R2 (line
78)
Nov 24 21:36:43 southpole FaxSend[12323]: class1sflocmd =  (line 79)
Nov 24 21:36:43 southpole FaxSend[12323]: class1responsewaitcmd = AT+FRS=1
(line 83)
Nov 24 21:36:43 southpole FaxSend[12323]: modemsetupaacmd = AT+FCLASS=0
(line 88)
Nov 24 21:36:43 southpole FaxSend[12323]: modemanswercmd = AT+FCLASS=1A
(line 89)
Nov 24 21:36:43 southpole FaxSend[12323]: class2nrcmd = AT+FNR=1,1,1,0 (line
95)
Nov 24 21:36:43 southpole FaxSend[12323]: Define AreaCode = "211"
Nov 24 21:36:43 southpole FaxSend[12323]: Define CountryCode = "49"
Nov 24 21:36:43 southpole FaxSend[12323]: Define LongDistancePrefix = "0"
Nov 24 21:36:43 southpole FaxSend[12323]: Define InternationalPrefix = "00"
Nov 24 21:36:43 southpole FaxSend[12323]: Define Area = "211"
Nov 24 21:36:43 southpole FaxSend[12323]: Define Country = "49"
Nov 24 21:36:43 southpole FaxSend[12323]: Define IDPrefix = "00"
Nov 24 21:36:43 southpole FaxSend[12323]: Define LDPrefix = "0"
Nov 24 21:36:43 southpole FaxSend[12323]: Define WS = "         "
Nov 24 21:36:43 southpole FaxSend[12323]: CanonicalNumber := [
Nov 24 21:36:43 southpole FaxSend[12323]:   "%.*" = ""
Nov 24 21:36:43 southpole FaxSend[12323]:   "[abcABC]" = "2"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[defDEF]" = "3"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[ghiGHI]" = "4"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[jklJKL]" = "5"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[mnoMNO]" = "6"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[prsPRS]" = "7"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[tuvTUV]" = "8"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[wxyWXY]" = "9"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[^+0-9]+" = ""
Nov 24 21:36:43 southpole FaxSend[12323]:   "^00" = "+"
Nov 24 21:36:43 southpole FaxSend[12323]:   "^0" = "+49"
Nov 24 21:36:43 southpole FaxSend[12323]:   "^[^+]" = "+49211&"
Nov 24 21:36:43 southpole FaxSend[12323]: ]
Nov 24 21:36:43 southpole FaxSend[12323]: DialString := [
Nov 24 21:36:43 southpole FaxSend[12323]:   "[-         .]+" = ""
Nov 24 21:36:43 southpole FaxSend[12323]:   "[abcABC]" = "2"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[defDEF]" = "3"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[ghiGHI]" = "4"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[jklJKL]" = "5"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[mnoMNO]" = "6"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[prsPRS]" = "7"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[tuvTUV]" = "8"
Nov 24 21:36:43 southpole FaxSend[12323]:   "[wxyWXY]" = "9"
Nov 24 21:36:43 southpole FaxSend[12323]:   "^[+]49" = "0"
Nov 24 21:36:43 southpole FaxSend[12323]:   "^[+]" = "00"
Nov 24 21:36:43 southpole FaxSend[12323]: ]
Nov 24 21:36:44 southpole FaxSend[12323]: MODEM set DTR OFF
Nov 24 21:36:44 southpole FaxSend[12323]: DELAY 75 ms
Nov 24 21:36:44 southpole FaxSend[12323]: MODEM set DTR ON
Nov 24 21:36:44 southpole FaxSend[12323]: DELAY 2600 ms
Nov 24 21:36:48 southpole FaxSend[12323]: MODEM set baud rate: 19200 baud,
input flow XON/XOFF, output flow XON/XOFF
Nov 24 21:36:48 southpole FaxSend[12323]: DELAY 10 ms
Nov 24 21:36:48 southpole FaxSend[12323]: MODEM flush i/o
Nov 24 21:36:48 southpole FaxSend[12323]: <-- [4:ATZ\r]
Nov 24 21:36:48 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:48 southpole FaxSend[12323]: DELAY 3000 ms
Nov 24 21:36:51 southpole FaxSend[12323]: <-- [5:ATE0\r]
Nov 24 21:36:51 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:51 southpole FaxSend[12323]: <-- [5:ATV1\r]
Nov 24 21:36:52 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:52 southpole FaxSend[12323]: <-- [7:ATQ0X4\r]
Nov 24 21:36:52 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:52 southpole FaxSend[12323]: <-- [7:ATS0=0\r]
Nov 24 21:36:52 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:52 southpole FaxSend[12323]: <-- [7:ATS8=2\r]
Nov 24 21:36:52 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:52 southpole FaxSend[12323]: <-- [8:ATS7=60\r]
Nov 24 21:36:53 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:53 southpole FaxSend[12323]: <-- [12:AT&H2&I2&R1\r]
Nov 24 21:36:53 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:53 southpole FaxSend[12323]: <-- [11:ATS13=1&D2\r]
Nov 24 21:36:53 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:53 southpole FaxSend[12323]: <-- [6:AT&C1\r]
Nov 24 21:36:53 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:53 southpole FaxSend[12323]: <-- [12:AT+FCLASS=?\r]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [7:0,1,2.0]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:54 southpole FaxSend[12323]: MODEM Supports "Data"
Nov 24 21:36:54 southpole FaxSend[12323]: MODEM Supports "Class 1"
Nov 24 21:36:54 southpole FaxSend[12323]: MODEM Supports "Class 2.0"
Nov 24 21:36:54 southpole FaxSend[12323]: <-- [12:AT+FCLASS=1\r]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:54 southpole FaxSend[12323]: MODEM: Mfr USR
Nov 24 21:36:54 southpole FaxSend[12323]: <-- [5:ATI3\r]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [37:U.S. Robotics 56K Message
Rev. 14.9.1]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:54 southpole FaxSend[12323]: <-- [5:ATI7\r]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [24:Configuration Profile...]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [38:Product type          
CTR-21 External]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [31:Product ID:           
24566801]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [48:Options               
V32bis,V.80,V.34+,x2,V.90]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [40:Fax Options           
Class 1/Class 2.0]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [32:Line Options          
Caller ID]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [40:Voice Options         
Speakerphone, TAD]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [30:Clock Freq            
92.0Mhz]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [27:EPROM                 
256k]
Nov 24 21:36:54 southpole FaxSend[12323]: --> [26:RAM                   
32k]
Nov 24 21:36:55 southpole FaxSend[12323]: --> [30:FLASH date            
2/26/99]
Nov 24 21:36:55 southpole FaxSend[12323]: --> [29:FLASH rev             
14.9.1]
Nov 24 21:36:55 southpole FaxSend[12323]: --> [30:DSP date              
2/26/99]
Nov 24 21:36:55 southpole FaxSend[12323]: --> [29:DSP rev               
14.9.1]
Nov 24 21:36:55 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM: Model U.S. Robotics 56K
Message Rev. 14.9.1
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM: Revision Configuration
Profile... Product type           CTR-21External Product ID:           
24566801 Options                V32bis,V.80,V.34+,x2,V.90 Fax OptionsClass
1/Class 2.0 Line Options           Caller ID Voice Options         
Speakerphone, TAD Clock Freq  92.0Mhz EPROM                  256k RAM       
            32k FLASH date             2/26/99 FLASH rev      14.9.1 DSP
date               2/26/99 DSP rev                14.9.1
Nov 24 21:36:55 southpole FaxSend[12323]: <-- [9:AT+FTM=?\r]
Nov 24 21:36:55 southpole FaxSend[12323]: -->
[41:3,24,48,72,73,74,96,97,98,121,122,145,146]
Nov 24 21:36:55 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 3.85 line/mm
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 7.7 line/mm
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 2400 bit/s
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 4800 bit/s
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 7200 bit/s
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 9600 bit/s
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 12000 bit/s
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 14400 bit/s
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports page width 1728
pixels in 215 mm
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports page width 2048
pixels in 255 mm
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports page width 2432
pixels in 303 mm
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports A4 page length (297
mm)
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports B4 page length (364
mm)
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports unlimited page
length
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 1-D MR
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 2-D MR
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 0 ms/scanline
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 5 ms/scanline
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 10 ms, 5
ms/scanline
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 10 ms/scanline
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 20 ms, 10
ms/scanline
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 20 ms/scanline
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 40 ms, 20
ms/scanline
Nov 24 21:36:55 southpole FaxSend[12323]: MODEM Supports 40 ms/scanline
Nov 24 21:36:55 southpole FaxSend[12323]: <-- [9:AT+FRM=?\r]
Nov 24 21:36:55 southpole FaxSend[12323]: -->
[41:3,24,48,72,73,74,96,97,98,121,122,145,146]
Nov 24 21:36:55 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:55 southpole FaxSend[12323]: <-- [12:AT+FCLASS=1\r]
Nov 24 21:36:56 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:56 southpole FaxSend[12323]: <-- [12:AT+FCLASS=0\r]
Nov 24 21:36:56 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:56 southpole FaxSend[12323]: MODEM USR U.S. Robotics 56K
Message Rev. 14.9.1/Configuration Profile... Product type           CTR-21
External Product ID:            24566801 Options               
V32bis,V.80,V.34+,x2,V.90 Fax Options            Class 1/Class 2.0 Line
Options           Caller ID Voice Options          Speakerphone, TAD Clock
Freq             92.0Mhz EPROM                  256k RAM                   
32k FLASH date       2/26/99 FLASH rev              14.9.1 DSP date         
     2/26/99 DSP rev                14.9.1
Nov 24 21:36:56 southpole FaxSend[12323]: <-- [7:ATL1M1\r]
Nov 24 21:36:56 southpole FaxSend[12323]: --> [2:OK]
Nov 24 21:36:56 southpole FaxSend[12323]: STATE CHANGE: BASE -> RUNNING
(timeout 30)
Nov 24 21:36:56 southpole FaxSend[12323]: MODEM input buffering disabled
Nov 24 21:36:56 southpole FaxSend[12323]: Apply CanonicalNumber rules to
"7482461"
Nov 24 21:36:56 southpole FaxSend[12323]: --> match rule "^[^+]", result now
"+492117482461"
Nov 24 21:36:56 southpole FaxSend[12323]: --> return result "+49211xxxxx"
Nov 24 21:36:56 southpole FaxSend[12323]: Apply CanonicalNumber rules to
"7482461"
Nov 24 21:36:56 southpole FaxSend[12323]: --> match rule "^[^+]", result now
"+492117482461"
Nov 24 21:36:56 southpole FaxSend[12323]: --> return result "+49211xxxxx"
Nov 24 21:36:56 southpole FaxSend[12323]: SEND FAX: JOB 16 DEST xxxxx COMMID
00000019 DEVICE '/dev/ttyS0'
Nov 24 21:37:48 southpole FaxSend[12323]: SEND FAX: JOB 16 SENT in 0:29

This is not unusual, but there seems to be a problem in detecting that the
modem comes ready. From earlier experience, the USR runs as a Class 1 modem.
Might this caus the problem?

Cheers
Max

-- 
Geschenkt: 3 Monate GMX ProMail + 3 Top-Spielfilme auf DVD
++ Jetzt kostenlos testen http://www.gmx.net/de/go/mail ++

____________________ 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@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services