HylaFAX не кладет трубку
Доброго времени суток. Беда такая: после приема 5-10 (а иногда и на много больше) факсов прием данных обрывается и сервер тупа держит трубку поднятой. Помогает только перезагрузка. Факс используется только на прием. Пробывал играть скоростями, но это не помогло, менял модем тоже не помогло. HylaFAX 6.0.3 ubuntu 10.04 В логе вот что:
Mar 21 17:10:25.28: [ 887]: SESSION BEGIN 000000759 19995551212
Mar 21 17:10:25.28: [ 887]: HylaFAX (tm) Version 6.0.3
Mar 21 17:10:25.28: [ 887]: MODEM set XON/XOFF/FLUSH: input ignored, output disabled
Mar 21 17:10:25.28: [ 887]: <-- [13:AT+FCLASS=1A\r]
Mar 21 17:10:30.46: [ 887]: --> [7:CONNECT]
Mar 21 17:10:30.46: [ 887]: ANSWER: FAX CONNECTION DEVICE '/dev/ttyS3'
Mar 21 17:10:30.46: [ 887]: STATE CHANGE: ANSWERING -> RECEIVING
Mar 21 17:10:30.46: [ 887]: RECV FAX: begin
Mar 21 17:10:30.46: [ 887]: <-- HDLC<32:FF C0 04 B5 00 AA 12 9E 36 86 62 82 1A 04 14 2E B6 94 04 6A A6 4E CE 96 F6 76 04 6C 74 0C 74 CC>
Mar 21 17:10:30.46: [ 887]: <-- data [32]
Mar 21 17:10:30.46: [ 887]: <-- data [2]
Mar 21 17:10:30.63: [ 887]: --> [7:CONNECT]
Mar 21 17:10:30.63: [ 887]: <-- HDLC<23:FF C0 02 CA 22 4A 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04>
Mar 21 17:10:30.63: [ 887]: <-- data [23]
Mar 21 17:10:30.63: [ 887]: <-- data [2]
Mar 21 17:10:31.35: [ 887]: --> [7:CONNECT]
Mar 21 17:10:31.35: [ 887]: <-- HDLC<13:FF C8 01 00 77 5F 23 01 FB C1 01 01 18>
Mar 21 17:10:31.35: [ 887]: <-- data [13]
Mar 21 17:10:31.35: [ 887]: <-- data [2]
Mar 21 17:10:33.61: [ 887]: --> [2:OK]
Mar 21 17:10:33.61: [ 887]: <-- [9:AT+FRH=3\r]
Mar 21 17:10:40.61: [ 887]: --> [0:]
Mar 21 17:10:40.61: [ 887]: MODEM <Empty line>
Mar 21 17:10:40.61: [ 887]: MODEM TIMEOUT: waiting for v.21 carrier
Mar 21 17:10:40.61: [ 887]: <-- data [1]
Mar 21 17:10:40.62: [ 887]: --> [2:OK]
Mar 21 17:10:40.62: [ 887]: DELAY 70 ms
Mar 21 17:10:40.69: [ 887]: <-- [9:AT+FTH=3\r]
Mar 21 17:10:40.72: [ 887]: --> [7:CONNECT]
Mar 21 17:10:40.72: [ 887]: <-- HDLC<32:FF C0 04 B5 00 AA 12 9E 36 86 62 82 1A 04 14 2E B6 94 04 6A A6 4E CE 96 F6 76 04 6C 74 0C 74 CC>
Mar 21 17:10:40.72: [ 887]: <-- data [32]
Mar 21 17:10:40.72: [ 887]: <-- data [2]
Mar 21 17:10:40.89: [ 887]: --> [7:CONNECT]
Mar 21 17:10:40.89: [ 887]: <-- HDLC<23:FF C0 02 CA 22 4A 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04>
Mar 21 17:10:40.89: [ 887]: <-- data [23]
Mar 21 17:10:40.89: [ 887]: <-- data [2]
Mar 21 17:10:41.61: [ 887]: --> [7:CONNECT]
Mar 21 17:10:41.61: [ 887]: <-- HDLC<13:FF C8 01 00 77 5F 23 01 FB C1 01 01 18>
Mar 21 17:10:41.61: [ 887]: <-- data [13]
Mar 21 17:10:41.61: [ 887]: <-- data [2]
Mar 21 17:10:43.87: [ 887]: --> [2:OK]
Mar 21 17:10:43.87: [ 887]: <-- [9:AT+FRH=3\r]
Mar 21 17:10:45.89: [ 887]: --> [7:CONNECT]
Mar 21 17:10:47.50: [ 887]: --> HDLC<25:FF C0 C2 6C 4C 1C 9C AC 2C 04 04 04 04 04 04 04 04 04 04 04 04 04 04 81 69>
Mar 21 17:10:47.51: [ 887]: --> [2:OK]
Mar 21 17:10:47.51: [ 887]: RECV recv TSI (sender id)
Mar 21 17:10:47.51: [ 887]: REMOTE TSI "459826"
Mar 21 17:10:47.51: [ 887]: <-- [9:AT+FRH=3\r]
Mar 21 17:10:47.52: [ 887]: --> [7:CONNECT]
Mar 21 17:10:47.82: [ 887]: --> HDLC<9:FF C8 C1 00 60 1F 00 09 FD>
Mar 21 17:10:47.82: [ 887]: --> [2:OK]
Mar 21 17:10:47.82: [ 887]: RECV recv DCS (command signal)
Mar 21 17:10:47.83: [ 887]: REMOTE wants 9600 bit/s
Mar 21 17:10:47.83: [ 887]: REMOTE wants A4 page width (215 mm)
Mar 21 17:10:47.83: [ 887]: REMOTE wants unlimited page length
Mar 21 17:10:47.83: [ 887]: REMOTE wants 3.85 line/mm
Mar 21 17:10:47.83: [ 887]: REMOTE wants 1-D MH
Mar 21 17:10:47.83: [ 887]: RECV training at v.29 9600 bit/s
Mar 21 17:10:47.83: [ 887]: MODEM set XON/XOFF/DRAIN: input ignored, output generated
Mar 21 17:10:47.83: [ 887]: <-- [10:AT+FRM=96\r]
Mar 21 17:10:48.51: [ 887]: --> [7:CONNECT]
Mar 21 17:10:50.14: [ 887]: MODEM set XON/XOFF/DRAIN: input ignored, output disabled
Mar 21 17:10:50.14: [ 887]: RECV: TCF 1953 bytes, 5% non-zero, 1843 zero-run
Mar 21 17:10:50.14: [ 887]: --> [10:NO CARRIER]
Mar 21 17:10:50.14: [ 887]: DELAY 70 ms
Mar 21 17:10:50.22: [ 887]: TRAINING succeeded
Mar 21 17:10:50.22: [ 887]: <-- [9:AT+FTH=3\r]
Mar 21 17:10:50.41: [ 887]: --> [7:CONNECT]
Mar 21 17:10:50.41: [ 887]: <-- HDLC<3:FF C8 21>
Mar 21 17:10:50.41: [ 887]: <-- data [3]
Mar 21 17:10:50.41: [ 887]: <-- data [2]
Mar 21 17:10:51.58: [ 887]: --> [2:OK]
Mar 21 17:10:51.59: [ 887]: <-- [10:AT+FRM=96\r]
Mar 21 17:10:55.87: [ 887]: --> [7:CONNECT]
Mar 21 17:10:55.87: [ 887]: MODEM input buffering enabled
Mar 21 17:10:55.87: [ 887]: MODEM set XON/XOFF/FLUSH: input ignored, output generated
Mar 21 17:10:55.87: [ 887]: RECV: begin page
Mar 21 17:10:57.49: [ 887]: RECV/CQ: Bad 1D pixel count, row 0, got 1942, expected 1728
root@FAX:/var/log# cat syslog.1 | grep "Mar 21 17:10"
Mar 21 17:10:30 FAX FaxGetty[887]: ANSWER: FAX CONNECTION DEVICE '/dev/ttyS3'
Mar 21 17:10:57 FAX kernel: [ 6225.816040] __ratelimit: 9 callbacks suppressed
Mar 21 17:10:57 FAX kernel: [ 6225.816046] faxgetty[887]: segfault at 73736ba8 ip 0805c083 sp bfc0ed90 error 4 in faxgetty[8048000+72000]
CountryCode: 10
AreaCode: 423
FAXNumber: +1.999.555.1212
LongDistancePrefix: 1
InternationalPrefix: 011
DialStringRules: etc/dialrules
ServerTracing: 1
SessionTracing: 0xFFF
RecvFileMode: 0644
LogFileMode: 0644
DeviceMode: 0644
RingsBeforeAnswer: 1
SpeakerVolume: off
GettyArgs: "-h %l dx_%s"
LocalIdentifier: XXX
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "From %%l|%c|Page %%P of %%T"
MaxRecvPages: 25
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType: Class1 # use class 1 interface
ModemRate: 19200 # rate for DCE-DTE communication
ModemFlowControl: xonxoff # software flow control
#
ModemSetupDTRCmd: ATS13=1&D2 # setup so DTR drop resets modem
ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not)
ModemNoFlowCmd: AT&H0&I0&R1 # setup modem for no flow control
ModemHardFlowCmd: AT&H1&I0&R2 # setup modem for hardware flow control
ModemSoftFlowCmd: AT&H2&I2&R1 # setup modem for software flow control
ModemResultCodesCmd: ATQ0X4 # enable result codes
#
ModemMfrQueryCmd: !USR
ModemModelQueryCmd: ATI3
ModemRevQueryCmd: ATI7 # XXX returns a multi-line result
#
# When AT+FCLASS=1 is issued the modem automatically switches
# to software flow control; these parameters let the fax software
# reset flow control as needed after entering Class 1.
#
Class1NFLOCmd: AT&H0&I0&R1 # setup modem for no flow control
Class1HFLOCmd: AT&H1&I0&R2 # setup modem for hardware flow control
Class1SFLOCmd: "" # modem does this automatically
#
# This should resolve "DIS/DTC received 3 times" errors:
#
Class1ResponseWaitCmd: AT+FRS=1 # wait after sending TCF for response
#
# The remainder of this configuration is included so that the
# modem "idles" in Class 0 while not sending or receiving facsimile.
#
ModemSetupAACmd: AT+FCLASS=0 # leave modem idling in class 0
ModemAnswerCmd: AT+FCLASS=1A # answer in Class 1
#
# When using AT+FRS=n we see USR modems reset themselves in the middle of sessions
# this is not good. So, we seem to work-around that problem by not using the
# command. Unfortunately, this isn't an ideal thing.
#
Class1SwitchingCmd: "<delay\0727>"