![]() |
Hi all, I have installed about 4 servers with hylafax on debian (sending and receiving). Now I have on a new server problems with auto answer. I have two questions: 1) How is possible that now is the Auto Answer disabled? ATS0=0 by default.. You can see it bellow 2) when I uncomment the line ModemNoAutoAnswerCmd in config.ttyS0 and put there ATS0=1, AA will work well but the modem say something like 'CONNECT' when I only call on it from my phone (no fax sending, no from modem calling only from phone..). It is strange, how is possible that the modem tell that is connected to my mobile phone? And after connected it disconnect the line. You can see the strace log: 0 root@mail.deltaplan.cz:hylafax# strace faxgetty ttyS0 2>&1 |grep 'read\|write' read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2609\0"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\30"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\t\0"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\16"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\233\1"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2007\0"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\222"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220$\0"..., 1024) = 1024 read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465 read(3, "", 4096) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\25"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 ;\0\000"..., 1024) = 1024 read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1906 read(3, "# Locale name alias data base.\n#"..., 4096) = 2597 read(3, "", 4096) = 0 write(3, "Initializing server\n", 20) = 20 read(4, "# $Id: class1,v 1.9 2002/02/15 0"..., 4096) = 4096 read(4, "0=1\t\t# disable auto-answer\n#\n# S"..., 4096) = 1602 read(4, "", 4096) = 0 read(5, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1906 write(5, "+ttyS0:N\0", 9) = 9 read(6, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\6\0"..., 4096) = 806 write(7, " 12389\n", 11) = 11 read(7, " 12361", 10) = 10 write(7, " 12389\n", 11) = 11 write(7, "ATZ", 3) = 3 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATE0", 4) = 4 write(7, "\r", 1) = 1 read(7, "ATE0\r\r\nOK\r\n", 1024) = 11 write(7, "ATV1", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATQ0", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATS0=1", 6) = 6 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATS8=2", 6) = 6 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATS7=60", 7) = 7 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "AT+FCLASS=?", 11) = 11 write(7, "\r", 1) = 1 read(7, "\r\n0,1,2,1.0\r\n\r\nOK\r\n", 1024) = 19 write(7, "AT+FCLASS=1", 11) = 11 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATI3", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\nV2.200-V90_2M_DLS\r\n\r\nOK\r\n", 1024) = 27 write(7, "ATI0", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\n56000\r\n\r\nOK\r\n", 1024) = 15 write(7, "AT+FTM=?", 8) = 8 write(7, "\r", 1) = 1 read(7, "\r\n3,24,48,72,73,74,96,97,98,121,"..., 1024) = 51 write(7, "AT+FRM=?", 8) = 8 write(7, "\r", 1) = 1 read(7, "\r\n3,24,48,72,73,74,96,97,98,121,"..., 1024) = 51 write(7, "AT+FCLASS=1", 11) = 11 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATL0M1", 6) = 6 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(3, "Running and idle\n", 17) = 17 write(5, "+ttyS0:RP3fc3e7ff:ff\0", 21) = 21 write(8, " 12389\n", 11) = 11 write(3, "Listening to rings from modem\n", 30) = 30 write(5, "+ttyS0:B\0", 9) = 9 read(7, "\r\nRING\r\n", 1024) = 8 read(7, "\r\nCONNECT\r\n", 1024) = 11 read(7, 0x80bfb84, 1024) = ? ERESTARTSYS (To be restarted) write(7, "ATH0", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATZ", 3) = 3 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATE0", 4) = 4 write(7, "\r", 1) = 1 read(7, "ATE0\r\r\nOK\r\n", 1024) = 11 write(7, "ATV1", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATQ0", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATS0=1", 6) = 6 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATS8=2", 6) = 6 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATS7=60", 7) = 7 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "AT+FCLASS=?", 11) = 11 write(7, "\r", 1) = 1 read(7, "\r\n0,1,2,1.0\r\n\r\nOK\r\n", 1024) = 19 write(7, "AT+FCLASS=1", 11) = 11 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATI3", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\nV2.200-V90_2M_DLS\r\n\r\nOK\r\n", 1024) = 27 write(7, "ATI0", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\n56000\r\n\r\nOK\r\n", 1024) = 15 write(7, "AT+FTM=?", 8) = 8 write(7, "\r", 1) = 1 read(7, "\r\n3,24,48,72,73,74,96,97,98,121,"..., 1024) = 51 write(7, "AT+FRM=?", 8) = 8 write(7, "\r", 1) = 1 read(7, "\r\n3,24,48,72,73,74,96,97,98,121,"..., 1024) = 51 write(7, "AT+FCLASS=1", 11) = 11 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATL0M1", 6) = 6 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(3, "Running and idle\n", 17) = 17 write(5, "+ttyS0:RP3fc3e7ff:ff\0", 21) = 21 other info: Debian Woody 3.0 130 root@mail.deltaplan.cz:hylafax# dpkg -l | grep hylafa ii hylafax-client 4.1.1-1.1 Flexible client/server fax software - client ii hylafax-doc 4.1.1-1.1 Flexible client/server fax software - HTML D ii hylafax-server 4.1.1-1.1 Flexible client/server fax software - server 0 root@mail.deltaplan.cz:hylafax# uname -a Linux mail 2.4.18 #2 Út kvě 21 09:35:47 CEST 2002 i686 unknown 0 root@mail.deltaplan.cz:hylafax# v celkem 156 drwxr-xr-x 2 root root 4096 pro 11 22:22 ./ drwxr-xr-x 49 root root 4096 pro 11 22:29 ../ -rw-r--r-- 1 root root 211 srp 9 16:19 config lrwxrwxrwx 1 root root 32 pro 11 22:21 config.ttyS0 -> /var/spool/hylafax/config/class1 -rw-r--r-- 1 root root 10421 říj 12 1998 cover.templ -rw-r--r-- 1 root root 1906 říj 12 1998 dialrules -rw-r--r-- 1 root root 2455 říj 12 1998 dialrules.europe -rw-r--r-- 1 root root 2150 říj 12 1998 dialrules.sf-ba -rw-r--r-- 1 root root 62188 srp 9 16:19 faxcover.ps -rw-r--r-- 1 root root 167 říj 12 1998 faxmail.ps -rw-r--r-- 1 root root 2499 srp 9 16:19 hfaxd.conf -rw------- 1 uucp root 15 srp 9 16:19 hosts.hfaxd -rw-r--r-- 1 root root 1328 pro 11 22:16 hyla.conf -rw-r--r-- 1 root root 14072 říj 12 1998 lutRS18.pcf -rw-r--r-- 1 root root 3311 pro 11 22:11 pagesizes -r--r--r-- 1 root root 1262 pro 11 22:16 setup.cache -r--r--r-- 1 root root 644 pro 11 22:16 setup.modem -rw-r--r-- 1 root root 6164 srp 9 16:19 typerules 0 root@mail.deltaplan.cz:hylafax# cat config.ttyS0 # $Id: class1,v 1.9 2002/02/15 03:55:03 darren Exp $ # # HylaFAX Facsimile Software # # Copyright (c) 1990-1996 Sam Leffler # Copyright (c) 1991-1996 Silicon Graphics, Inc. # HylaFAX is a trademark of Silicon Graphics, Inc. # # Permission to use, copy, modify, distribute, and sell this software and # its documentation for any purpose is hereby granted without fee, provided # that (i) the above copyright notices and this permission notice appear in # all copies of the software and related documentation, and (ii) the names of # Sam Leffler and Silicon Graphics may not be used in any advertising or # publicity relating to the software without the specific, prior written # permission of Sam Leffler and Silicon Graphics. # # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. # # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE # OF THIS SOFTWARE. # # # Generic Class 1 modem configuration. # # EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP # # BEGIN-SERVER #CountryCode: 1 # USA #LongDistancePrefix: 1 #InternationalPrefix: 011 #AreaCode: 415 #DialStringRules: etc/dialrules #FAXNumber: +1.999.555.1212 #LocalIdentifier: "NothingSetup" # default is canonical FAXNumber #ServerTracing: 1 # log server-related operations #SessionTracing: 11 # log server-related operations #RecvFileMode: 0600 # recvd facsimile are not public #LogFileMode: 0600 # private log files #DeviceMode: 0600 # device is accessible only to uucp/fax #QualifyTSI: etc/tsi # accept facsimile from anyone #SpeakerVolume: off # machine's are already too loud #RingsBeforeAnswer: 1 # answer on first ring #TagLineFont: etc/lutRS18.pcf # tag line font #TagLineFormat: "From %%l|%c|Page %%P of %%T" #MaxBadCalls: 5 # max 5 consecutive bad calls #PostScriptTimeout: 300 # 5 minute timeout on PostScript jobs #MaxSendPages: 25 # max pages in an outbound job #MaxRecvPages: 25 # max pages in an inbound job #ContCoverPage: etc/cover.templ # enable continuation cover pages #DestControls: etc/destcontrols # destination-specific controls #MaxConcurrentJobs: 1 # serialize jobs to the same dest #TimeOfDay: "Any" # outbound jobs any day, any time # END-SERVER # # 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 normally 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, @ for silence # # 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: "" # 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 Class1TCFResponseDelay: 75 # 75ms delay between recv TCF & response Class1SendMsgDelay: 75 # 75ms delay after training Class1SwitchingDelay: 75 # 150ms delay in switching transmission direction Class1TrainingRecovery: 1500 # 1.5sec delay after training failure Class1RecvAbortOK: 200 # wait 200ms for abort response Class1FrameOverhead: 4 # 4 byte overhead in recvd HDLC frames 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 0 root@mail.deltaplan.cz:hylafax# 0 root@mail.deltaplan.cz:hylafax# strace faxgetty ttyS0 2>&1 |grep 'read\|write' read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2609\0"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\30"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\t\0"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\16"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\233\1"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2007\0"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\222"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220$\0"..., 1024) = 1024 read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465 read(3, "", 4096) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\25"..., 1024) = 1024 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 ;\0\000"..., 1024) = 1024 read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1906 read(3, "# Locale name alias data base.\n#"..., 4096) = 2597 read(3, "", 4096) = 0 write(3, "Initializing server\n", 20) = 20 read(4, "# $Id: class1,v 1.9 2002/02/15 0"..., 4096) = 4096 read(4, "S0=0\t\t# disable auto-answer\n#\n# "..., 4096) = 1603 read(4, "", 4096) = 0 read(5, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1906 write(5, "+ttyS0:N\0", 9) = 9 read(6, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\6\0"..., 4096) = 806 write(7, " 12361\n", 11) = 11 write(7, "ATZ", 3) = 3 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATE0", 4) = 4 write(7, "\r", 1) = 1 read(7, "ATE0\r\r\nOK\r\n", 1024) = 11 write(7, "ATV1", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATQ0", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATS0=0", 6) = 6 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATS8=2", 6) = 6 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATS7=60", 7) = 7 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "AT+FCLASS=?", 11) = 11 write(7, "\r", 1) = 1 read(7, "\r\n0,1,2,1.0\r\n\r\nOK\r\n", 1024) = 19 write(7, "AT+FCLASS=1", 11) = 11 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATI3", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\nV2.200-V90_2M_DLS\r\n\r\nOK\r\n", 1024) = 27 write(7, "ATI0", 4) = 4 write(7, "\r", 1) = 1 read(7, "\r\n56000\r\n\r\nOK\r\n", 1024) = 15 write(7, "AT+FTM=?", 8) = 8 write(7, "\r", 1) = 1 read(7, "\r\n3,24,48,72,73,74,96,97,98,121,"..., 1024) = 51 write(7, "AT+FRM=?", 8) = 8 write(7, "\r", 1) = 1 read(7, "\r\n3,24,48,72,73,74,96,97,98,121,"..., 1024) = 51 write(7, "AT+FCLASS=1", 11) = 11 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(7, "ATL0M1", 6) = 6 write(7, "\r", 1) = 1 read(7, "\r\nOK\r\n", 1024) = 6 write(3, "Running and idle\n", 17) = 17 write(5, "+ttyS0:RP3fc3e7ff:ff\0", 21) = 21 write(8, " 12361\n", 11) = 11 write(3, "Listening to rings from modem\n", 30) = 30 write(5, "+ttyS0:B\0", 9) = 9 read(7, "\r\nRING\r\n", 1024) = 8 read(7, "\r\nRING\r\n", 1024) = 8 read(7, "\r\nRING\r\n", 1024) = 8 read(7, "\r\nRING\r\n", 1024) = 8 read(7, "\r\nRING\r\n", 1024) = 8 130 root@mail.deltaplan.cz:hylafax# -- --- Michal Kolesár kolisko@penguin.cz http://kolisko.penguin.cz +420.603.225.299 Don't send me any attachment in Micro$oft (.DOC, .PPT) format please Read http://www.fsf.org/philosophy/no-word-attachments.php Preferable attachments: .PDF, .HTML, .TXT Thanx for adding this text to Your signature ____________________ 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 *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*