• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] Hylafax:Brauche mal Hilfe beim Fine-Tunning

rethus

Advanced Hacker
Ich habe ein Problem beim FineTuning meines Faxanschlusses.

Bestand:
Analoges Fax Modem (56K)
minicom
hylafax

Bin nach dieser Anleitung vorgegangen, ohne die capi-Bausteine (http://www.linux-club.de/viewtopic.php?t=4976&highlight=)

  • Wenn ich minicom starte un "at" schreibe, bekomm ich ein OK zurück
  • Ruf ich die FaxNummer des Modems an, schreibt minicom "RING"
  • Schreibe ich atd 689900 klingelt mein (anderes) Telefon, das nach dem abnehmen einen sich wiederholenden piep-Ton ausspuckt.
Gebe ich nur minicom in die Befehlszeile ein, schreibt er device /dev/ttyS0 is locked
in /etc/inittab steht für das Fax folgende Zeile:
Code:
 mo:35:respawn:/usr/lib/fax/faxgetty ttyS0
In minicom hab ich folgende Einstellungen:
Code:
    +=======================================================================+   
    | A -    Serial Device : /dev/ttyS0                                     |   
    | B - Lockfile Location: /var/lock                                   |   
    | C -   Callin Program :                                                |   
    | D -  Callout Program :                                                |   
    | E -    Baud/Par/Bits : 11520 8N1                                      |   
    |                                                                       |   
    |    Change which setting?                                              |   
    +=======================================================================+

Warum zeigt minicom an, das ein Anruf reinkommt (mit "RING", aber nimmt Ihn nicht an?
 

whois

Ultimate Guru
Hi Rethus

Welche Hylafax Version?

Bitte zeigst du mir auch mal welches Modem das ist.

Code:
hwinfo --modem

cu
 
OP
R

rethus

Advanced Hacker
Wo kann ich die Versino von Hylafax rausfinden?

Die Modemversion wird mir so nicht angezeigt (es ist als Modem ja auch nicht eingerichtet, weil ich DSL habe)

hwinfo --modem gibt folgendes aus:
Code:
 46: Serial 00.0: 10200 Modem
  [Created at modem.447]
  Unique ID: Fyby.KM1shMXflFC
  Parent ID: S_Uw.3fyvFV+mbWD
  Hardware Class: modem
  Model: "AT Modem"
  Vendor: int 0x2000 "Unknown"
  Device: int 0x0001 "AT Modem"
  Device File: /dev/ttyS0
  Speed: 115.2 kbps
  Init1: ATZ
  Init2: AT Q0 V1 E1
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #34 (Serial controller)

Hab es scheinbar jetzt gelöst. Ich bin nach der oben benannten Anleitung vorgegangen. Da hat der Schreiber (warum auch immer) auf /dev/modem verwiesen, weil es angeblich einfacher wäre einzurichten.

Nach einem neuen start war der gesetzte link von /dev/ttyS0 natürlich weg.

Darum habe ich faxaddmodem aufgerufen, und die ganze Config nochmals für ttyS0 durchgeführt.

Jetzt geht es zumindest schon mal, das ich meine Faxnummer anrufe, und das Modem abhebt, um den Anruf entgegen zu nehmen.

Ich werde mir nun mal ein Testfax an die neu eingerichtete nummer senden, um zu sehen, ob der Empfang funktioniert.
 
OP
R

rethus

Advanced Hacker
Ich bekomm beim Faxempfang jetzt immer die Meldung:
Code:
Feb 14 17:46:03.72: [10163]: RECV FAX (000000009): session with 0180-50390001849 terminated abnormally: Permission denied (unn
acceptable client TSI)

Was ist diese TSI?
 
OP
R

rethus

Advanced Hacker
Hier die Logs aus /var/log/messages:
Code:
Feb 14 17:54:09 Desktop FaxGetty[12878]: --> [4:RING]
Feb 14 17:54:14 Desktop FaxGetty[12878]: --> [4:RING]
Feb 14 17:54:18 Desktop FaxGetty[12878]: --> [4:RING]
Feb 14 17:54:23 Desktop FaxGetty[12878]: --> [4:RING]
Feb 14 17:54:28 Desktop FaxGetty[12878]: --> [4:RING]
Feb 14 17:54:34 Desktop FaxGetty[12878]: ANSWER: FAX CONNECTION  DEVICE '/dev/ttyS0'
Feb 14 17:54:43 Desktop FaxGetty[12878]: REJECT TSI ""
Feb 14 17:54:43 Desktop FaxGetty[12878]: RECV FAX (000000010): recvq/fax000000006.tif from , route to <unspecified>, 0 pages in 0:09
Feb 14 17:54:44 Desktop FaxGetty[12878]: RECV FAX (000000010): session with  terminated abnormally: Permission denied (unnacceptable client TSI)
Feb 14 17:54:44 Desktop FaxGetty[12878]: RECV FAX: bin/faxrcvd "recvq/fax000000006.tif" "ttyS0" "000000010" "Permission denied (unnacceptable client TSI)"
Feb 14 17:54:44 Desktop FaxGetty[12878]: <-- [5:ATH0\r]
Feb 14 17:54:45 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:45 Desktop FaxGetty[12878]: MODEM set DTR OFF
Feb 14 17:54:46 Desktop FaxGetty[12878]: MODEM set DTR OFF
Feb 14 17:54:46 Desktop FaxGetty[12878]: DELAY 75 ms
Feb 14 17:54:46 Desktop FaxGetty[12878]: MODEM set DTR ON
Feb 14 17:54:46 Desktop FaxGetty[12878]: DELAY 2600 ms
Feb 14 17:54:50 Desktop FaxGetty[12878]: MODEM set baud rate: 19200 baud, input flow RTS/CTS, output flow RTS/CTS
Feb 14 17:54:50 Desktop FaxGetty[12878]: DELAY 10 ms
Feb 14 17:54:50 Desktop FaxGetty[12878]: MODEM flush i/o
Feb 14 17:54:50 Desktop FaxGetty[12878]: <-- [4:ATZ\r]
Feb 14 17:54:50 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:50 Desktop FaxGetty[12878]: DELAY 3000 ms
Feb 14 17:54:53 Desktop FaxGetty[12878]: MODEM flush i/o
Feb 14 17:54:53 Desktop FaxGetty[12878]: <-- [7:ATS0=0\r]
Feb 14 17:54:53 Desktop FaxGetty[12878]: --> [6:ATS0=0]
Feb 14 17:54:53 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:53 Desktop FaxGetty[12878]: <-- [5:ATE0\r]
Feb 14 17:54:53 Desktop FaxGetty[12878]: --> [4:ATE0]
Feb 14 17:54:53 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:53 Desktop FaxGetty[12878]: <-- [5:ATV1\r]
Feb 14 17:54:53 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:53 Desktop FaxGetty[12878]: <-- [5:ATQ0\r]
Feb 14 17:54:53 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:53 Desktop FaxGetty[12878]: <-- [7:ATS8=2\r]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:54 Desktop FaxGetty[12878]: <-- [8:ATS7=60\r]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:54 Desktop FaxGetty[12878]: <-- [6:AT&K3\r]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:54 Desktop FaxGetty[12878]: <-- [6:AT&D2\r]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:54 Desktop FaxGetty[12878]: <-- [6:AT&C1\r]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:54 Desktop FaxGetty[12878]: <-- [12:AT+FCLASS=?\r]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [7:0,1,1.0]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:54 Desktop FaxGetty[12878]: <-- [12:AT+FCLASS=1\r]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:54 Desktop FaxGetty[12878]: <-- [5:ATI3\r]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [14:V2.200-K56_DLS]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:54 Desktop FaxGetty[12878]: <-- [9:AT+FTM=?\r]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [41:3,24,48,72,73,74,96,97,98,121,122,145,146]
Feb 14 17:54:54 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:54 Desktop FaxGetty[12878]: <-- [9:AT+FRM=?\r]
Feb 14 17:54:55 Desktop FaxGetty[12878]: --> [41:3,24,48,72,73,74,96,97,98,121,122,145,146]
Feb 14 17:54:55 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:55 Desktop FaxGetty[12878]: MODEM ROCKWELL RC288DPi/V2.200-K56_DLS
Feb 14 17:54:55 Desktop FaxGetty[12878]: <-- [5:ATM0\r]
Feb 14 17:54:55 Desktop FaxGetty[12878]: --> [2:OK]
Feb 14 17:54:55 Desktop FaxGetty[12878]: MODEM input buffering disabled
 
OP
R

rethus

Advanced Hacker
Und hier /var/spool/fax/etc/config:
Code:
LogFacility:            hylafax
CountryCode:            49
AreaCode:               2273
LongDistancePrefix:     0
InternationalPrefix:    00
DialStringRules:        "etc/dialrules"
ServerTracing:          527
SessionTracing:         527
ContCoverPage:          /etc/cover.tmpl
MaxSendPages:           30

Und hier /var/spool/fax/etc/config.ttyS0:
Code:
CountryCode:		49
AreaCode:		2273
FAXNumber:		+49.2273.6899265
LongDistancePrefix:	0
InternationalPrefix:	00
DialStringRules:	"etc/dialrules"
ServerTracing:		527
SessionTracing:		527
RecvFileMode:		0777
LogFileMode:		0777
DeviceMode:		0777
RingsBeforeAnswer:	5
SpeakerVolume:		off
GettyArgs:		"-h %l dx_%s"
LocalIdentifier:	"NothingSetup"
LogFacility:		hylafax
TagLineFont:		etc/lutRS18.pcf
TagLineFormat:		"From %%l|%c|Page %%P of %%T"
QualifyCID:		etc/cid
QualifyTSI:		etc/tsi
MaxRecvPages:		25
LockDataCalls:		no
LockVoiceCalls:		no
#
#
# 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:	rtscts		# default
#
ModemNoFlowCmd:		AT&K0		# setup no flow control
ModemHardFlowCmd:	AT&K3		# setup hardware flow control
ModemSoftFlowCmd:	AT&K4		# setup software flow control
ModemSetupDTRCmd:	AT&D2		# setup so DTR drop resets modem
ModemSetupDCDCmd:	AT&C1		# setup so DCD reflects carrier (or not)
#
ModemMfrQueryCmd:	!Rockwell
ModemModelQueryCmd:	!RC288DPi
ModemRevQueryCmd:	ATI3		# product information
#
ModemDialCmd:		ATDT%s		# T for tone dialing
 
OP
R

rethus

Advanced Hacker
Es hängt mit der folgenden Option in faxaddmodem zusammen:
Code:
Pathname of TSI access control list file (relative to /var/spool/fax)
Dort habe ich laut der Anleitung "etc/tsi" eingetragen. Diese Datei existiert jedoch gar nicht.

Auf der Seite von HaylaFax (http://www.hylafax.org/man/current/tsi.4f.html)habe ich gelesen, das insofern die Option "QualifyTSI" gesetzt ist, nur Faxe von nummern angenommen werden, die dort zugelassen werden.

Ich habe die Option in /var/spool/fax/etc/config.tyS0 auskommentiert, und nun nimmt er Faxe wieder an.
 
Oben