HylaFAX The world's most advanced open source fax server

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

Re: Can not send fax.



Ertan Kucukoglu wrote:

> Hello,
>
> (Sorry for this slightly big message)
>
> I recently setup my HylaFAX 4.1beta2 on Slackware 4.0 linux. HylaFAX can
> receive faxes without problem., but I can not send fax.
>
> sendfax -n -d xxx <<EOF
> test
> EOF
>
> Command puts the job in queue, dials xxx numbered phone, xxx gives fax
> signal, but HylaFAX (or my modem or faxgetty or faxmodem) can not
> understand it (or I make something wrong to make it behave like this)
>
> faxgetty runs on ttyS0, 'faxmodem ttyS0' also running, hfaxd running.
>
> I included a few configuration files. My modem is PROLINK 1436EM Ext. on
> COM1.
>
> I come over to that point and I will not give up. (With your helps of
> course :-)
>
> Thanks in advance.
>
> --
> Ertan Kucukoglu
> ertank@softhome.net
>
>   ------------------------------------------------------------------------
> Oct 27 14:52:40.94: [ 1022]: SESSION BEGIN 00000056 902124250459
> Oct 27 14:52:40.95: [ 1022]: SEND FAX: JOB 5 DEST 4250459 COMMID 00000056
> Oct 27 14:52:40.95: [ 1022]: DELAY 2600 ms
> Oct 27 14:52:43.54: [ 1022]: <-- [15:ATE0V1Q0S0=0H0\r]
> Oct 27 14:52:44.31: [ 1022]: --> [2:OK]
> Oct 27 14:52:44.31: [ 1022]: <-- [21:ATS8=2S7=60&K4&D2&C1\r]
> Oct 27 14:52:44.47: [ 1022]: --> [2:OK]
> Oct 27 14:52:44.47: [ 1022]: <-- [12:AT+FCLASS=1\r]
> Oct 27 14:52:44.62: [ 1022]: --> [2:OK]
> Oct 27 14:52:44.62: [ 1022]: <-- [7:ATL2M1\r]
> Oct 27 14:52:44.77: [ 1022]: --> [2:OK]
> Oct 27 14:52:44.77: [ 1022]: <-- [12:AT+FCLASS=1\r]
> Oct 27 14:52:45.02: [ 1022]: --> [2:OK]
> Oct 27 14:52:45.02: [ 1022]: DIAL 4250459
> Oct 27 14:52:45.02: [ 1022]: <-- [13:ATDT4250459@\r]
> Oct 27 14:53:48.48: [ 1022]: --> [9:NO ANSWER]
> Oct 27 14:53:48.48: [ 1022]: SEND FAILED: No answer from remote
> Oct 27 14:53:48.48: [ 1022]: SEND FAILED: No answer from remote; too many attempts to dial
> Oct 27 14:53:48.48: [ 1022]: <-- [5:ATH0\r]
> Oct 27 14:53:49.34: [ 1022]: --> [2:OK]
> Oct 27 14:53:49.34: [ 1022]: SESSION END
>
>   ------------------------------------------------------------------------
> # $Id: class1,v 1.2 1999/01/10 09:09:37 robert 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
> #
> CountryCode:            90
> AreaCode:               212
> FAXNumber:              +90.212.598.3951
> LongDistancePrefix:     0
> InternationalPrefix:    00
> DialStringRules:        etc/dialrules
> ServerTracing:          1
> SessionTracing:         11
> RecvFileMode:           0600
> LogFileMode:            0600
> DeviceMode:             0600
> RingsBeforeAnswer:      1
> SpeakerVolume:          medium
> 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 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:         AT+FCLASS=1;A   # default is to answer as fax
> ModemNoFlowCmd:         AT&K            # disable flow control cmd
> ModemHardFlowCmd:       AT&K3           # hardware flow control cmd
> ModemSoftFlowCmd:       AT&K4           # software flow control cmd
> #ModemNoAutoAnswerCmd:  ATS0=1          # 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
> 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
> Class1TCFResponseDelay: 75              # 75ms delay between recv TCF & response
> Class1SendPPMDelay:     75              # 75ms delay before sending PPM
> Class1SendTCFDelay:     75              # 75ms delay between sending DCS & TCF
> 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
>
>   ------------------------------------------------------------------------
> #
> # inittab       This file describes how the INIT process should set up
> #               the system in a certain run-level.
> #
> # Version:      @(#)inittab             2.04    17/05/93        MvS
> #                                       2.10    02/10/95        PV
> #                                       3.00    02/06/1999      PV
> #
> # Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
> # Modified by:  Patrick J. Volkerding, <volkerdi@ftp.cdrom.com>
> #
>
> # These are the default runlevels in Slackware:
> #   0 = halt
> #   1 = single user mode
> #   2 = unused (but configured the same as runlevel 3)
> #   3 = multiuser mode (default Slackware runlevel)
> #   4 = X11 with XDM
> #   5 = unused (but configured the same as runlevel 3)
> #   6 = reboot
>
> # Default runlevel. (Do not set to 0 or 6)
> id:3:initdefault:
>
> # System initialization (runs when system boots).
> si:S:sysinit:/etc/rc.d/rc.S
>
> # Script to run when going single user (runlevel 1).
> su:1S:wait:/etc/rc.d/rc.K
>
> # Script to run when going multi user.
> rc:2345:wait:/etc/rc.d/rc.M
>
> # What to do at the "Three Finger Salute".
> ca::ctrlaltdel:/sbin/shutdown -t5 -rf now
>
> # Runlevel 0 halts the system.
> l0:0:wait:/etc/rc.d/rc.0
>
> # Runlevel 6 reboots the system.
> l6:6:wait:/etc/rc.d/rc.6
>
> # What to do when power fails (shutdown to single user).
> pf::powerfail:/sbin/shutdown -f +5 "THE POWER IS FAILING"
>
> # If power is back before shutdown, cancel the running shutdown.
> pg:0123456:powerokwait:/sbin/shutdown -c "THE POWER IS BACK"
>
> # If power comes back in single user mode, return to multi user mode.
> ps:S:powerokwait:/sbin/init 3
>
> # The getties in multi user mode on consoles an serial lines.
> #
> # NOTE NOTE NOTE adjust this to your getty or you will not be
> #                able to login !!
> #
> # Note: for 'agetty' you use linespeed, line.
> # for 'getty_ps' you use line, linespeed and also use 'gettydefs'
> c1:1235:respawn:/sbin/agetty 38400 tty1 linux
> c2:1235:respawn:/sbin/agetty 38400 tty2 linux
> c3:1235:respawn:/sbin/agetty 38400 tty3 linux
> c4:1235:respawn:/sbin/agetty 38400 tty4 linux
> c5:1235:respawn:/sbin/agetty 38400 tty5 linux
> c6:12345:respawn:/sbin/agetty 38400 tty6 linux
>
> # Serial lines
> #s1:12345:respawn:/sbin/agetty 19200 ttyS0 vt100
> #s2:12345:respawn:/sbin/agetty 19200 ttyS1 vt100
>
> # Dialup lines
> #d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
> #d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100
>
> # Runlevel 4 used to be for an X-window only system, until we discovered
> # that it throws init into a loop that keeps your load avg at least 1 all
> # the time. Thus, there is now one getty opened on tty6. Hopefully no one
> # will notice. ;^)
> # It might not be bad to have one text console anyway, in case something
> # happens to X.
> x1:4:wait:/etc/rc.d/rc.4
>
> # Hylafax icin koyuldu
> #mo:2345:respawn:/usr/local/sbin/faxgetty ttyS0
>
> # End of /etc/inittab

Dear Ertan,

Country code 90 ? That must be Turkey, I presume.

Try changing the parameter DialStringRules to etc/dialrules.europe in your
/var/spool/fax/etc/config.ttyS0-file.

The modem seems to dial the number but reports a 'no answer' ?

Look for ATDT4250459 in your logfile.

Have you checked the number ? Is 4250459 the number as it should be dialed from your location
? Or does it need a leading zero, in order to obtain an 'ouside' phoneline ?

Did you check the number with a regular phone ? Do you have a faxmachine answering the call ?

Try to figure that out.

Regards.
Evert Carton
Hyperion Software




Project hosted by iFAX Solutions