LINUX.ORG.RU

hylafax, вешается модем


0

0

Используется hylafax 4.4.1. И зюхелевский модем. Так вот, где то после 10 факсов,
сыпется такое:
...
Sep 11 14:00:08.33: [ 3949]: RECV received frame number 19
Sep 11 14:00:08.48: [ 3949]: RECV received frame number 20
Sep 11 14:00:08.61: [ 3949]: Bad HDLC terminating flag received.
Sep 11 14:00:38.62: [ 3949]: Timeout awaiting synchronization sequence
Sep 11 14:00:38.62: [ 3949]: Bad HDLC terminating flag received.
Sep 11 14:01:08.00: [ 3949]: Timeout awaiting synchronization sequence
...
потом наступает таймаут и прога закрывает соединение:
Sep 11 14:04:38.00: [ 3949]: Bad HDLC terminating flag received.
Sep 11 14:05:08.00: [ 3949]: Timeout awaiting synchronization sequence
Sep 11 14:05:40.01: [ 3949]: MODEM <Empty line>
Sep 11 14:05:42.01: [ 3949]: MODEM <Empty line>
Sep 11 14:05:44.01: [ 3949]: MODEM <Empty line>
Sep 11 14:05:44.01: [ 3949]: <-- [9:AT+FRH=3\r]
Sep 11 14:06:29.54: [ 3949]: --> [0:]
Sep 11 14:06:29.54: [ 3949]: MODEM <Empty line>
Sep 11 14:06:29.54: [ 3949]: <-- data [1]
Sep 11 14:06:29.74: [ 3949]: MODEM <Timeout>
Sep 11 14:06:29.75: [ 3949]: RECV: 5376 bytes of data, 254 total lines
Sep 11 14:06:29.75: [ 3949]: RECV keeping unconfirmed page
Sep 11 14:06:29.75: [ 3949]: RECV FAX (000000071): from <UNSPECIFIED>, page 1 in 6:35, INF, 7.7 line/mm, 2-D MMR, 14400 bit/s
Sep 11 14:06:29.75: [ 3949]: RECV FAX (000000071): recvq/fax000000069.tif from <UNSPECIFIED>, route to <unspecified>, 1 pages in 6:35
Sep 11 14:06:29.75: [ 3949]: RECV FAX: T.30 T2 timeout, expected signal not received
Sep 11 14:06:29.75: [ 3949]: <-- [9:AT+FTH=3\r]
Sep 11 14:06:37.31: [ 3949]: --> [0:]
Sep 11 14:06:37.31: [ 3949]: RECV FAX (000000071): session with <UNSPECIFIED> terminated abnormally: T.30 T2 timeout, expected signal not received
Sep 11 14:06:37.31: [ 3949]: RECV FAX: bin/faxrcvd "recvq/fax000000069.tif" "ttyS0" "000000071" "T.30 T2 timeout, expected signal not received"
Sep 11 14:06:37.31: [ 3949]: RECV FAX: end
Sep 11 14:06:37.31: [ 3949]: T.30 T2 timeout, expected signal not received
Sep 11 14:06:37.31: [ 3949]: SESSION END

но проблема в том что модем не кладёт трубку и держит её вплоть до полной 
перезгрузки сервака. 

Что делать?! Лазил по их сайту, но ничего не помогло или же я не понял идёю.
Помогите кто может!!!!!

Заранее спасибо!!!

#
# Generic Class 1 modem configuration.
#
# EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP
#
CountryCode:            7
AreaCode:               495
FAXNumber:              0573
LongDistancePrefix:     1
InternationalPrefix:    011
DialStringRules:        etc/dialrules
ServerTracing:          1
SessionTracing:         11
RecvFileMode:           0644
LogFileMode:            0644
DeviceMode:             0644
RingsBeforeAnswer:      1
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "NothingSetup"
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 this to supply a hint
ModemRate:              19200           # rate for DCE-DTE communication
ModemFlowControl:       xonxoff         # XON/XOFF flow control assumed
#
ModemSetupDTRCmd:       AT&D2           # setup so DTR drop resets modem
ModemSetupDCDCmd:       AT&C1           # setup so DCD follows carrier
#GettyArgs:             "-h %l dx_%s"   # modem must auto-detect fax/data
#
# We can append the "@" symbol to the dial string so that
# the modem will wait 5 seconds before attempting to connect
# and return result codes that distinguish between no carrier
# and no answer.  This makes it possible to avoid problems with
# repeatedly dialing a number that doesn't have a fax machine
# (kudos to Stuart Lynne for this trick.)
#
# NB: If you need to prefix phone numbers to get through a PBX,
#     put it in the ModemDialCmd; e.g. "DT9%s@".
#
#ModemDialCmd:          ATDT%s          # T for tone dialing
#
# Other possible configuration stuff.  The default strings are
# shown below.  Only those that are different from the defaults
# need to be included in the configuration file.
#
ModemResetCmds:        "AT&B1&N0&S0*F0S38.3=1S39=0"             # stuff to do when modem is reset
ModemAnswerCmd:         ATA             # use this to answer phone
#ModemNoFlowCmd:                AT&K            # disable flow control cmd
#ModemHardFlowCmd:      AT&K3           # hardware flow control cmd
#ModemSoftFlowCmd:      AT&K4           # software flow control cmd
#ModemNoAutoAnswerCmd:  ATS0=0          # disable auto-answer
#
# Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH.
# Note that we both turn the speaker on/off and set volume.
#
ModemSetVolumeCmd:      "ATM0 ATL0M1 ATL1M1 ATL2M1 ATL3M1"
#ModemEchoOffCmd:       ATE0            # disable command echo
#ModemVerboseResultsCmd:        ATV1            # enable verbose command results
#ModemResultCodesCmd:   ATQ0            # enable result codes
#ModemOnHookCmd:                ATH0            # place phone on hook (hangup)
#ModemSoftResetCmd:     ATZ             # do soft reset of modem
#ModemSoftResetCmdDelay:        3000    # pause after soft reset
#ModemWaitTimeCmd:      ATS7=60         # wait 60 seconds for carrier
#ModemCommaPauseTimeCmd:        ATS8=2          # comma pause time is 2 seconds
#ModemRecvFillOrder:    LSB2MSB         # bit order of received facsimile
#ModemSendFillOrder:    LSB2MSB         # bit order modem expects for transmit
#
Class1Cmd:              AT+FCLASS=1     # command to enter class 1
Class1PPMWaitCmd:       AT+FTS=7        # command to stop and wait before PPM
Class1TCFWaitCmd:       AT+FTS=7        # command to stop and wait before TCF
Class1EOPWaitCmd:       AT+FTS=9        # command to stop and wait before EOP
Class1SwitchingCmd:     AT+FRS=8        # silence between HDLC recv and trans
Class1TrainingRecovery: 1500            # 1.5sec delay after training failure
Class1RecvAbortOK:      200             # wait 200ms for abort response
Class1RecvIdentTimer:   40000           # 35+5secs waiting for ident frames
Class1TCFMaxNonZero:    10              # max 10% of data may be non-zero
Class1TCFMinRun:        1000            # min run is 2/3rds of TCF duration
Class1FrameOverhead:    2
★★★★★

Re: hylafax, вешается модем

Заметил интересную особенность, если поставить скорость модема 9600, то всё 
становится пучком, эти же ошибки сыпятся

Sep 11 17:32:46.81: [ 4133]: RECV send PPR (partial page request)
Sep 11 17:32:46.81: [ 4133]: <-- [10:AT+FRM=98\r]
Sep 11 17:32:47.69: [ 4133]: --> [7:CONNECT]
Sep 11 17:32:48.35: [ 4133]: RECV received frame number 10
Sep 11 17:32:48.62: [ 4133]: RECV received frame number 11
Sep 11 17:32:48.89: [ 4133]: RECV received frame number 12
Sep 11 17:32:49.15: [ 4133]: RECV received frame number 13
Sep 11 17:32:49.29: [ 4133]: Bad HDLC terminating flag received.

>>>>    если бы скорость была не 9600 то уже здесь бы всё подвисло    <<<<

Sep 11 17:32:49.69: [ 4133]: HDLC frame with bad address field 0xfd
Sep 11 17:32:50.09: [ 4133]: HDLC frame not byte-oriented.  Trailing byte: 0xfc
Sep 11 17:32:50.62: [ 4133]: RECV received frame number 19
Sep 11 17:32:50.62: [ 4133]: RECV frame FCS check failed
Sep 11 17:32:50.89: [ 4133]: HDLC frame with bad address field 0xd1
Sep 11 17:32:51.15: [ 4133]: HDLC frame not byte-oriented.  Trailing byte: 0xf8
Sep 11 17:32:52.16: [ 4133]: HDLC frame not byte-oriented.  Trailing byte: 0xfc
Sep 11 17:32:52.16: [ 4133]: RECV assumed RCP frame with block end
Sep 11 17:32:52.16: [ 4133]: --> [10:NO CARRIER]
Sep 11 17:32:52.16: [ 4133]: <-- [9:AT+FRH=3\r]
Sep 11 17:32:52.47: [ 4133]: --> [7:CONNECT]
Sep 11 17:32:53.09: [ 4133]: --> [2:OK]


но hylafax (а может модем) перестаёт подвисать на них, а просто продолжает 
приём, видимо с повторной передачей данных. Но стоит поставить больше (14400 
или 19200) то начинаются те же яйца. Оно не критично, но как то не приятно... :((

И что ещё интересно, договор о скорости не совпадает с максимально установленной для модема а на 14400 или на 12000, бывает и на 7200.

cyclon ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.