PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Faxserver: Diva 4BRI, Hylafax, CAPI



oerk
19.11.09, 14:26
Hallo,

ich habe Probleme meinen Faxserver zum Laufen zu bekommen.
System: Debian 5, Kernel 2.6.26-2-686
ISDN-Karte: Dialogic Diva Server 4BRI, haengt an der Telefonalage als P2P (DID soll genutzt werden)
Hylafax Version 4.4.4

Der Treiber selbst 'Diva4Linux_installer_9.0-109-82.bin' laeuft einwandfrei (Karte ist auch uebers Webinterface erreichbar). Geladen werden von Diva folgende Module:



testfaxserver:~# lsmod
.
.
divadidd 61384 6 divacapi,diva_mtpx,diva_idi,divas
.
.

Die Kerneleigenen Treiber, hisax u. ISDN4Linux wurden aus dem Kernel rausgeworfen.

Hier die beiden configs in /etc/hylafx/
config:


testfaxserver:~# cat /etc/hylafax/config
#ContCoverPage: "etc/cover.templ"
#DestControls: "etc/destctrls"
DialStringRules: "etc/dialrules"
#QualifyCID: "etc/cid"
#QualifyTSI: "etc/tsi"
#ServerTracing: 0x08501
#InternationalPrefix: 00
SendFaxCmd: "/usr/bin/c2faxsend"
Use2D: "no"
Maxtries: 1
MaxDials: 3


config.faxCAPI

#
testfaxserver:~# cat /etc/hylafax/config.faxCAPI
# EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP
#

# Grundsäliches:
# - Es gibt füen Wert einen Standardzustand (default), sodass jede Zeile
# der Datei oder auch das komplette Configfile ausgelassen werden kann.
# - Es gibt ausschlieÃich ein Configfile, in dem alle nöen Angaben fü "c2faxsend/-receive" eingetragen werden kön.
# - Werden füaFAX mehrere virtuelle Gerä (devices) angelegt, muss es
# fües Device ein Configfile im Format config.[DeviceName] geben.
# Dessen Existenz wird von HylaFAX üühne dieses File kann die
# Arbeit mit dem Device nicht aufgenommen werden. Die Existenz einer
# solchen Datei kann am einfachsten durch einen Link auf dieses ConfigFile
# oder ein minimales "dummy"-ConfigFile nachgewiesen werden.
#
# Basics:
# - There is a default condition for each value, such that each line of the
# file or the complete configfile can be left out.
# - There is only one configfile in which all information required for
# "c2faxsend/-receive" can be entered.
# - If multiple virtual devices are created for HylaFAX, there must be a
# Configfile in the format config.[DeviceName] for each device. HylaFAX
# checks that this file exists. Without this file, it is not possible to
# start working with the device. The easiest way to establish the existence
# of such a file is to create a link to this ConfigFile or a minimum
# "dummy" ConfigFile.


# "SpoolDir" gibt den Pfad an, unter dem im HylaFAX-kompatiblen Betrieb die
# HylaFAX-Dateien zu finden sind oder unter dem im Stand-Alone-Betrieb die
# empfangenen Faxe gespeichert werden sollen. Im HylaFAX-kompatiblen Betrieb
# werden die Faxe im Verzeichnis $(SpoolDir)/recvq gespeichert.
#
# "SpoolDir" indicates the path in which the HylaFAX are located in HylaFAX-
# compatible operation or in which received faxes are to be saved in
# stand-alone operation. In HylaFAX-compatible operation, faxes are saved in
# the directory $(SpoolDir)/recvq.
#
# default /var/spool/fax
#
SpoolDir: /var/spool/hylafax


# "FaxRcvdCmd" gibt das Skript an, das ausgefüird, sobald ein Fax
# empfangen wurde. Im Stand-Alone-Betrieb werden andere Parameter
# üben als füaFAX (mehr dazu im sample_faxrcvd).
#
# "FaxRcvdCmd" indicates the script performed whenever a fax is
# received. Parameters other than the ones for HylaFAX are returned in
# stand-alone operation (see sample_faxrcvd for more information).
#
# default /var/spool/hylafax/bin/faxrcvd
#
FaxRcvdCmd: /usr/bin/c2faxrecv
# "PollRcvdCmd" gibt das Skript an, das ausgefüird, sobald ein
# Fax per Faxabruf empfangen wurde. Im Stand-Alone-Betrieb werden
# andereParameter üben als füaFAX (mehr dazu im
# sample_faxrcvd).
#
# "PollRcvdCmd" indicates the script performed whenever a fax was
# received by fax polling. Parameters other than the ones for HylaFAX
# are returned in stand-alone operation (see sample_faxrcvd for more
# information).
#
# default /var/spool/hylafax/bin/pollrcvd
#
PollRcvdCmd: /var/spool/hylafax/bin/pollrcvd


# "FaxReceiveUser" und "FaxReceiveGroup" geben den User und die Gruppenkennung
# an, unter der c2faxrecv ausgefüird. Die Ã
# kann nur vom "root" bzw. Superuser erfolgen. Wenn c2faxrecv von einem anderen
# User gestartet wird, werden dieser Einträ ignoriert. Wenn jedoch die Rechte
# von /dev/capi20 nicht geäert werden sollen oder Ihre Linux-Distribution einen
# anderen User oder eine andere Gruppe voraussetzt, sollten Sie an dieser Stelle
# etwas anderes als den Hylafax-Standardwert "uucp" eintragen.

# "FaxReceiveUser" and "FaxReceiveGroup" indicate the user and the group ID used
# to execute c2faxrecv. The user and the group can only be changed by the "root"
# or superuser. These entries will be ignored when c2faxrecv is started by another
# user. However, if the rights for /dev/capi20 should not be changed, or if your
# Linux distribution requires a different user or group, something other than the
# Hylafax default value "uucp" should be entered here.
#
# default ""
#
FaxReceiveUser: uucp
FaxReceiveGroup: dialout


# Im "LogFile" werden Informationen üen Faxablauf abgespeichert.
#
# Information about the order of events in faxing are saved in the "LogFile".
#
# default "/tmp/capifax.log"
#
LogFile: /var/spool/hylafax/log/capi4hylafax
# Der Befehl "LogTraceLevel" gibt die Menge der Daten an, die in ein LogFile
# geschrieben werden. Die Spanne reicht von 0 = nichts bis 4 = vieles.
#
# The "LogTraceLevel" command indicates the amount of data written in a
# LogFile. The range goes from 0 = nothing to 4 = many.
#
# default 0
#
LogTraceLevel: 4


# "LogFileMode" sind die Angaben (mode), aufgrund derer sowohl das gerade
# erwäte LogFile als auch die LogFiles füaFAX angelegt werden.
#
# "LogFileMode" is the mode, on the basis of which both the LogFile just
# mentioned and the LogFiles for HylaFAX are generated.
#
# default 0600
#
LogFileMode: 0666


# Die geschweiften Klammern geben Anfang und Ende einer Section an.
# Jede Section darf eine oder mehrere SubSections enthalten.
# SubSubSections sind nicht erlaubt.
# Dabei enthä die Section Angaben zu einem virtuellen Device;
# die Subsection die Angaben fü Rufannahme jedes Controllers.
# Es kön beliebig viele Sections und, darin enthalten, jeweils beliebig
# viele Subsections erzeugt werden.
# Jede Section muss aber einen anderen HylafaxDeviceName erhalten;
# zusälich muss in jeder Subsection innerhalb einer Section ein anderer
# Controller aufgefüerden. Beim Stand-Alone-Betrieb ist eine Section mit
# entsprechend vielen Subsections ausreichend, da in diesem Betriebsmodus die
# virtuellen DeviceNamen keine Rolle spielen.
#
# The curved brackets indicate the beginning and end of a section.
# Each section may contain one or more subsections.
# SubSubSections are not permitted.
# The section contains information about a virtual device; the subsection the
# call acceptance information for each controller.
# Any number of sections containing any number of subsections may be
# generated, but each section must receive a different HylafaxDeviceName; and
# a different controller must be listed in every subsection within a section.
# For stand-alone operation, it is sufficient to have just one section with
# as many subsections as required, since virtual DeviceNames do not play
# any role in this mode of operation.
#

# "HylafaxDeviceName" ist der Name, unter dem sich C4H bei HylaFAX als
# "virtuelles Modem" anmeldet. Sollen füaFAX mehrere dieser "Modems"
# erzeugt werden, legen Sie einfach eine neue Section mit einem anderen
# HylafaxDeviceName an.
#
# "HylafaxDeviceName" is the name, under which C4H registers in HylaFAX as
# a "virtual modem". If multiple "modems" are to be generated for HylaFAX,
# simply create a new section with another HylafaxDeviceName.
#
# default faxCAPI
#
HylafaxDeviceName: faxCAPI


# "RecvFileMode" ist der Mode, in dem empfangene Faxe abgespeichert
# werden. User und Group der Datei wird durch FaxReceiveUser (s.o.)
# festgelegt.
#
# "RecvFileMode" is the mode, in which received faxes are saved. User and
# Group of the file are determined by the FaxReceiveUser (see above).
#
# default 0600
#
RecvFileMode: 0666


# "FAXNumber" ist die eigene Nummer des Computers und wird der Gegenseite
# mitgeteilt (sichtbar z. B. im Fax-Journal).
#
# "FAXNumber" is the fax number of the computer itself and is transmitted
# to the remote site (visible in the Fax Journal).
#
# default ""
#
FAXNumber:


# "LocalIdentifier" ist der von CAPI aus konfigurierbare Teil der
# Kopfzeile. Ein leerer Eintrag füazu, dass keine Fax-Kopfzeile
# eingefürd.
#
# "LocalIdentifier" is the part of the fax header which can be configured
# from CAPI. An empty entry specifies an empty header.
#
# default ""
#
LocalIdentifier: "Testfaxserver"
# Die maximale Anzahl von gleichzeitig empfangbaren Faxen kann
# durch "MaxConcurrentRecvs" angepaà werden. Diese Anzahl wird
# durch die Anzahl der durch die Hardware zur Verfü # gestellten B-Kanä begrenzt.
#
# The maximum number of faxes that can be received at the same
# time can be adjusted using "MaxConcurrentRecvs". This number
# is limited by the number of B channels provided by the hardware.
#
# default 2
#
MaxConcurrentRecvs: 2


# ----------- outgoing params -----------

# "OutgoingController" gibt den Controller an, üen eine externe
# Verbindung aufgebaut werden soll.
#
# "OutgoingController" indicates the controller which is to be used to
# establish an external connection.
#
# default 1
#
OutgoingController: 1


# Die "OutgoingMSN" ist die MSN, die fügehenden Faxe benutzt wird.
#
# The "OutgoingMSN" is the MSN used for outgoing faxes.
#
# default ""
#
OutgoingMSN:


# CLIR (Rufnummernunterdrü) kann üSuppressMSN" und den Wert (0)
# abgeschaltet oder mit dem Wert (1) erneut angeschaltet werden.
#
# CLIR (Calling Line Identification Restriction) can be switched off using
# the value (0) or switched back on by entering the value (1).
#
# default 0
#
SuppressMSN: 0


# "NumberPrefix" wird vor jede Telefonnummer gestellt. Dies ist bei
# Nebenstellenanlagen wichtig, bei denen fü Aufbau einer externen
# Verbindung eine Ziffer vorgewät werden muss.
#
# "NumberPrefix" is set to precede each telephone number. This is
# important for PBX systems which require that a number be dialed to
# obtain an outside line.
# default ""
#
NumberPrefix:


# Mit der Option "NumberPlusReplacer" wird das Pluszeichen am Anfang einer
# Telefonnummer durch Ziffen (z.B. 00) ersetzt. Diese Option hilfreich, wenn komplette
# Telefonbucheinträ verwendet werden sollen, denen ein '+' voranstehen.
#
# Use the option "NumberPlusReplacer" to replace the '+' character
# at the beginning of a telephone number by the contents of this field, usually
# "00". This option can be very helpful when complete telephone book entries are used that are
# preceded by '+'.
#
# default ""
#
NumberPlusReplacer: "00"


# Wenn der Wert in "UseISDNFaxService" = 1 ist, wird ein ausgehender Ruf
# mit der ISDN-FAX-G3 Dienstekennung aufgebaut. Bei 0 wird eine 3.1kHz
# Audio-Verbindung hergestellt.
#
# When in "UseISDNFaxService" the value is = 1, an outoing call will be
# established using the ISDN-FAX-G3 service indicator. For 0, a 3.1kHz
# audio connection is established.
#
# default 0
#
UseISDNFaxService: 1


# Gibt die Dauer in Sekunden an, die auf eine Verbindungsannahme durch die
# Gegenseite gewartet wird. So wird beim Faxversand nicht automatisch die
# gesamte von der Telekom vorgegebene Wartezeit genutzt. Eine Angabe des
# Wertes 0 nutzt die gesamte Wartezeit.
#
# The duration in seconds you wait for the remote site to accept your
# outgoing call In this way you do not have to use the entire ringing
# duration preset by the telephone company. The default value 0 uses the
# entire ringing duration.
#
# default 0
#
RingingDuration: 0


# ----------- incoming params -----------

# Controller, fü diese Subsection gilt.
#
# Controller for which this subsection is valid.
#
# default 1
#
Controller: 1


# Wenn "AcceptSpeech" auf 1 steht, wird auch die Dienstekennung
# "Sprache" angenommen.
#
# If "AcceptSpeech" is set to 1, the service indicator "Voice" also
# will be accepted.
#
# default 0
#
AcceptSpeech: 1


# Sofern man DDI nutzen will, sollte man "UseDDI" auf 1 stellen.
#
# If DDI is to be used, "UseDDI" should be set to a value of 1.
#
# default 0
#
UseDDI: 1


# Die DDI-Stammnummer wird bei "DDIOffset" eingetragen.
# Der Standardwert füu keinem korrekten Ergebnis und
# sollte, sofern "UseDDI" auf 1 gestellt wurde, immer
# veräert werden.
#
# "DDIOffset" indicates the DDI offset number which precedes
# extension number. Because the default value can't guarantee
# a correct result, this value should be modified whenever
# "UseDDI" is set to 1.
#
# default ""
#
DDIOffset: 66


# "DDILength" gibt die Anzahl der Durchwahlziffern an. (Diese Ziffern
# werden lediglich als Teil der Empfäernummer mitgeteilt.) Der
# Standardwert sollte bei Verwendung von DDI ebenfalls angepasst
# werden.
#
# "DDILength" indicates the number of digits in the extension. (These
# numbers are only used as a component of the recipient's number.) The
# default value should be adapted whenever DDI is used.
#
# default 0
#
DDILength: 4
# Bei "IncomingDDIs" kön in einer durch Komma getrennten Liste alle
# Durchwahlziffern (DDIs) angegeben werden, fü Rufe angenommen
# werden sollen. Eine Bereichsangabe ist auch möch (z.B. 100-300),
# wobei aber keine offenen Bereiche (z.B. -100) erlaubt sind.
# Sofern IncommingDDIs gesetzt ist, wird DDILength ignoriert.
#
# In "IncomingDDIs", all extension numbers (DDIs) for which calls are
# to be accepted may be listed, separated by commas. It is also
# possible to specify a range (e.g. 100-300); here no open ranges are
# permitted (e.g. -100). When the "IncomingDDIs" switch is set, the
# parameters for DDILength will be ignored.
#
# default ""
#
IncomingDDIs: 1000-9999


# Bei "IncomingMSNs" kön in einer durch Komma getrennten Liste alle
# MSNs angegeben werden, fü Rufe angenommen werden sollen. Ist
# die Liste leer, werden alle Rufe auf ISDN FAX G3, 3,1kHz Audio und
# eventuell "Sprache" angenommen.
# Wenn "UseDDI" auf 1 gestellt ist, wird "IncomingMSNs" ignoriert.
#
# In "IncomingMSNs", all MSNs for which calls are to be accepted may
# be listed, separated by commas. When the list is empty, all calls
# are accepted for ISDN FAX G3, 3,1kHz audio and perhaps "Voice".
# When "UseDDI" is set to 1, "IncomingMSNs" is ignored.
#
# default ""
#
IncomingMSNs:


# Wenn "AcceptGlobalCall" auf 1 steht, werden auch Calls ohne
# Zielrufnummer (ohne MSN) angenommen.
# Notwendig hinter einigen Telefonanlagen, die keine Zielrufnummer
# senden.
#
# If "AcceptGlobalCall" is set to 1, calls without Called Party
# Number also will be accepted.
# Needed on internal ports of some PBX.
#
# default 1
#
AcceptGlobalCall: 1


/etc/hylafax/hosts.hfaxd

cat /etc/hylafax/hosts.hfaxd
# hosts.hfaxd
# This file contains permissions and password for every user in
# the system.
#
# For more information on this biject, please see its man page
# and the commands faxadduser and faxdeluser.
localhost:21::
localhost
127.0.0.1
^root@



in /etc/inittab wurde folgendes eingetragen:

T5:23:respawn:/usr/bin/c2faxrecv


in /etc/rc.lcoal zusaetzlich folgendes:

/bin/chown -R uucp:dialout /dev/capi*
/bin/ln -s /dev/capi20 /dev/faxCAPI
/etc/init.d/capi4hylafax restart
/etc/init.d/hylafax restart


'faxstat' zeigt folgendes:

HylaFAX scheduler on testfaxserver.iis.fhg.de: Running
Modem faxCAPI (): Waiting for modem to come ready

faxstat -srv:

Trying localhost (127.0.0.1) at port 4559...
Connected to localhost.
220 testfaxserver.iis.fhg.de server (HylaFAX (tm) Version 4.4.4) ready.
-> USER root
230 User root logged in.
-> TZONE LOCAL
200 Using time values in CET.
-> PORT 127,0,0,1,204,11
200 PORT command successful.
-> LIST status
150 Opening new data connection for "status".
HylaFAX scheduler on testfaxserver.iis.fhg.de: Running
Modem faxCAPI (): Waiting for modem to come ready
226 Transfer complete.
-> JOBFMT
200 %-4j %3i %1a %6.6o %-12.12e %5P %5D %7z %.25s
-> PORT 127,0,0,1,147,63
200 PORT command successful.
-> LIST sendq
150 Opening new data connection for "sendq".

JID Pri S Owner Number Pages Dials TTS Status
58 125 B root 2799 0:1 2:12 Blocked by concurrent cal
57 125 B root 2799 0:1 2:12 Blocked by concurrent cal
59 125 W root 2799 0:1 2:12 An error occured while tr
226 Transfer complete.
-> RCVFMT
200 %-7m %4p%1z %-8.8o %14.14s %7t %f
-> PORT 127,0,0,1,162,37
200 PORT command successful.
-> LIST recvq
150 Opening new data connection for "recvq".
226 Transfer complete.

Die '2799'er Nummern sind interne Nummern.



Beim starten/restarten von hylafax wird in /var/log/syslog eingetragen:

Nov 19 14:46:10 testfaxserver FaxQueuer[10910]: HylaFAX (tm) Version 4.4.4
Nov 19 14:46:10 testfaxserver FaxQueuer[10910]: Copyright (c) 1990-1996 Sam Leffler
Nov 19 14:46:10 testfaxserver FaxQueuer[10910]: Copyright (c) 1991-1996 Silicon Graphics, Inc.
Nov 19 14:46:10 testfaxserver HylaFAX[10914]: HylaFAX INET Protocol Server: restarted.
Nov 19 14:46:10 testfaxserver FaxGetty[10926]: OPEN /dev/faxCAPI HylaFAX (tm) Version 4.4.4
Nov 19 14:46:18 testfaxserver FaxGetty[10926]: /dev/faxCAPI: Can not initialize modem.
Nov 19 14:46:41 testfaxserver FaxGetty[10926]: LOCKWAIT
Nov 19 14:46:42 testfaxserver FaxQueuer[10910]: BATCH to +2799 done after 3 jobs


Will man capi4hylfax restarten will, zeigt er folgende Fehlermeldung an:

testfaxserver:~# /etc/init.d/capi4hylafax restart
Restarting capi4hylafax: c2faxrecvstart-stop-daemon: warning: failed to kill 5534: No such process
Den Prozess gibt es unter einer anderen ID


testfaxserver:~# ps -ef | grep c2
uucp 5616 1 0 13:51 ? 00:00:00 /usr/bin/c2faxrecv



/etc/default/capi4hylafax

cat /etc/default/capi4hylafax
#
# Uncomment this line once capi4hylafax has been fully configured.
#
run_capi4hylafax=1


Will man ein FAX verschicken (mit 'sendfax' bzw. 'c2faxsend'), kann dies natuerlich nicht passieren, da das "Modem faxCAPI" noch nicht ready ist. Hier trotzdem der Log eines fax:

testfaxserver:~# cat /var/spool/hylafax/log/c000000005
Nov 19 14:46:41.88: [10937]: SESSION BEGIN 000000059 (null)
Nov 19 14:46:41.88: [10937]: SEND FAX: JOB 59 DEST 2799 COMMID 000000005
Nov 19 14:46:41.88: [10937]: Try to connect to fax number 2799 in Hylafax mode on controller 1.
Nov 19 14:46:41.88: [10937]: Dial and starting transfer of TIFF-File docq/doc59.ps;00 with normal resolution.
Nov 19 14:46:42.13: [10937]: Connection dropped with Reason 0x3490 (Normal call clearing).
testfaxserver:~# faxstat
HylaFAX scheduler on testfaxserver.iis.fhg.de: Running
Modem faxCAPI (): Waiting for modem to come ready


In '/var/spool/hylafax/log/capi4hylafax' wird das gleiche geschrieben.

/var/spool/hylafax/log/xferfaxlog:

cat /var/spool/hylafax/log/xferfaxlog
11/19/09 14:07 SEND 000000001 faxCAPI 58 "" root@testfaxserver.iis.fhg.de "2799" "2799" 256 0 0:00 0:00 "An error occured while trying to establish the connection."



Der Kartentreiber selbst bringt ein paar Testtools mit, eines davon 'acopy2' (This utility allows you to test the adapter and CAPI 2.0 interface functionality), führt man dieses aus:

testfaxserver:/usr/lib/opendiva/divas# ./acopy2 -s1 -num -n2786
ACOPY2 for Linux, Build

Common-ISDN-API 2.0
CIP changed to 1
Call failed
testfaxserver:/usr/lib/opendiva/divas#

Er sagt zwar Call Failed, aber mein Telefon (Nummer 2786) klingelt - genau 1x, also gehen muss irgendwas ueber die CAPI20 Schnittstelle

Will man mit derren weiteren Testprogramm 'testfax' ein Fax verschicken will klappt das nicht.


führt man 'faxaddmodem faxCAPI' aus, erscheint folgendes:

faxaddmodem faxCAPI

Ok, time to setup a configuration file for the modem. The manual
page config(5) may be useful during this process. Also be aware
that at any time you can safely interrupt this procedure.

Reading scheduler config file /var/spool/hylafax/etc/config.

Hey, there is an existing config file /var/spool/hylafax/etc/config.faxCAPI...

The non-default server configuration parameters are:

FAXNumber: +"" "" 555-1212
DialStringRules: "etc/dialrules"
RecvFileMode: 0666
LogFileMode: 0666
LocalIdentifier: "testfaxserver"
FaxRcvdCmd: /usr/bin/c2faxrecv
PollRcvdCmd: /var/spool/hylafax/bin/pollrcvd

Are these ok [yes]?

Now we are going to probe the tty port to figure out the type
of modem that is attached. This takes a few seconds, so be patient.
Note that if you do not have the modem cabled to the port, or the
modem is turned off, this may hang (just go and cable up the modem
or turn it on, or whatever).

Probing for best speed to talk to modem:
Unable to deduce DTE-DCE speed; check that you are using the
correct device and/or that your modem is setup properly. If
all else fails, try the -s option to lock the speed.


Und hier komme ich absolut nicht weiter, das wichtigste wird wohl erst einmal sein, dass das 'Modem faxCAPI' laeuft, blos wie?
Vielleicht hat einer von euch eine zündente Idee.

Ich danke euch schon einmal im Vorraus, falls noch weitere Daten gebraucht werden einfach schreiben.

atomical
19.11.09, 19:50
Gibt es ein Tool namens c2faxsend?

oerk
20.11.09, 08:02
Gibt es ein Tool namens c2faxsend?

jup, dieses gibt es. Pfad ist in der '/etc/hylafax/config' mit:

SendFaxCmd: /usr/bin/c2faxsend
auch richtig angegben.

atomical
20.11.09, 08:12
Und hast du mal probiert mit c2faxsend ein Fax zu versenden?

Weil afaik (ist schon länger her) hat CAPI4Hylafax mit der Modem-Variante nix gemein - sprich faxCAPI ist kein Modem im herkömmlichen Sinne und kann auch nicht so verwendet werden.


So siehts bei mir aus, wenn ich mir selbst eins schicke:


c2faxsend -f TIFF -d 61 /var/spool/hylafax/recvq/fax000001216.tif



Nov 20 09:19:57.10: [ 4869]: CapiFaxSend - INFO:
C4H-Version 01.03.01svn (32Bit).

Nov 20 09:19:57.10: [ 4869]: CapiFaxSend - INFO: Try to connect to fax number 61 in TIFF mode on controller 1.
Nov 20 09:19:57.10: [ 4869]: CapiFaxSend - INFO: Dial and starting transfer of TIFF-File /var/spool/hylafax/recvq/fax000001216.tif with normal resolution.
Nov 20 09:19:57.20: [ 3698]: c2faxrecv - INFO: SESSION BEGIN 000001878 +49.35204.08154711
Nov 20 09:19:57.20: [ 3698]: c2faxrecv - INFO: Incoming analog call on controller 1 from 30 to 61.
Nov 20 09:20:04.26: [ 4869]: CapiFaxSend - INFO: Connection established.
Nov 20 09:20:04.26: [ 4869]: CapiFaxSend - INFO: StationID = +49 35204 08154711
Nov 20 09:20:04.26: [ 4869]: CapiFaxSend - INFO: BaudRate = 64000
Nov 20 09:20:04.26: [ 4869]: CapiFaxSend - INFO: Flags = HighRes, MR_compr, MMR_compr
Nov 20 09:20:06.63: [ 3698]: c2faxrecv - INFO: Connection established.
Nov 20 09:20:06.63: [ 3698]: c2faxrecv - INFO: BaudRate = 64000
Nov 20 09:20:06.63: [ 3698]: c2faxrecv - INFO: Flags = MMR_compr
Nov 20 09:20:06.63: [ 3698]: c2faxrecv - INFO: Write fax in path /var/spool/hylafax to file recvq/fax000001411.tif.
Nov 20 09:20:10.40: [ 4869]: CapiFaxSend - INFO: Page 1 was sent. - Last Page!
Nov 20 09:20:10.40: [ 4869]: CapiFaxSend - INFO: Fax file completely transfered to CAPI.
Nov 20 09:20:13.66: [ 3698]: c2faxrecv - INFO: Page 1 was received. - Last Page!
Nov 20 09:20:16.21: [ 4869]: CapiFaxSend - INFO: Connection dropped with Reason 0x3400 (No additional information).
Nov 20 09:20:16.25: [ 3698]: c2faxrecv - INFO: Fax received and calling '/var/spool/hylafax/bin/faxrcvd "recvq/fax000001411.tif" "faxCAPI2" "000001878" "" "30" "" "61"'.
Nov 20 09:20:18.96: [ 3698]: c2faxrecv - INFO: Connection is droped with reason 0x3490 (Normal call clearing).
Nov 20 09:20:18.96: [ 3698]: c2faxrecv - INFO: SESSION END

oerk
20.11.09, 08:52
Hi,

wenn ich ein fax mit c2faxsend verschicken will, erscheint folgendes im log:

(c2faxsend -m faxCAPI -d 2799 -f G3 /mnt/usb/Daten/testfax.ps)


Nov 20 09:45:40.59: [14758]: CapiFaxSend - INFO: Try to connect to fax number 2799 in G3 mode on controller 1.
Nov 20 09:45:40.59: [14758]: CapiFaxSend - INFO: Dial and starting transfer of G3-File /mnt/usb/Daten/testfax.ps with fine resolution.
Nov 20 09:45:40.76: [14758]: CapiFaxSend - INFO: Connection dropped with Reason 0x3490 (Normal call clearing).


Aber sollte 'sendfax' durch die Zeile 'SendFaxCmd' in der Hylafax-Config nicht automatisch ueber c2faxsend gehen?

mhm faxstat zeigt momentan auch folgendes an :(


HylaFAX scheduler on testfaxserver.iis.fhg.de: Running
Modem faxCAPI () Terminated



Edit: Die Tage zuvor hatte ich einen Testserver mit einer passiven PCI ISDN Fritz!Card eingerichtet, hier allerdings im Mehrgeräteanschluss, dies hatte wunderbar geklappt.
Mit der Diva 4BRI-Karte habe ich ebenfalls versucht sie ueber die /dev/ttyds01 zum Laufen zu bekommen, dies funktionierte auch nicht wirklich ... Dort kam zwar das "Modem" hoch, aber die Anlage kam, kommt nicht mit dem Init String klar (sendete mit ATDT). Hat man einen Trace in der Anlage laufen lassen, erkennt er zwar die angerufenen Nummer, aber kommt nicht mit den weiteren Informationen klar.
Hat man den String in der Config bei "ModemResetCmd" z.B. auf ATX3..., AT&F14.. usw. geändert, wurde das beim senden nicht berücksichtigt.
Deswegen habe ich das ganze einmal auf Capi 2.0 umgestellt, womit die Karte laut Spezifikationen auch klar kommt.

atomical
20.11.09, 12:19
Akzeptiert die TK-Anlage ausgehende Rufe ohne konfigurierte MSN?

oerk
20.11.09, 13:50
Jup, auch wenn man eine testweise einträgt ändert dies nichts.

oerk
24.11.09, 13:57
Problem wurde gelöst.
Unsere Alcatel Anlage kommt nicht mit dem 'ETSI'-Protokoll zurecht. Hat man die Diva-Karte auf 'QSIG' umgestellt kommt das Modem hoch und man kann nun Faxe verschicken.