ich versuche folgendes Szenario mit Hilfe von Hylafax abzubilden:
Wir wollen alte Faxgeräte abbauen und Faxe über den PC abarbeiten. Damit sich die bisherigen Faxnummern nicht ändern müssen, lassen wir diese aktiv und leiten sie an den ISDN-Anschluss weiter, an dem unser Hylafax Server hängt.
Das ganze soll so aussehen:
Anruf auf der Faxnebenstelle 111 wird weitergeleitet auf den Hylafax-ISDN-Anschluss 999
Anruf auf der Faxnebenstelle 112 wird weitergeleitet auf den Hylafax-ISDN-Anschluss 999
Anruf auf der Faxnebenstelle 113 wird weitergeleitet auf den Hylafax-ISDN-Anschluss 999
Somit habe ich eigentlich nur 3 Absendernummern, von denen Hylafax Faxe empfängt.
Die empfangenen Faxe sollen nun auf Samba-Shares abgelegt werden. Dazu habe ich unter
Code: Alles auswählen
/var/spool/hylafax/recvq/
111-Abteilung1
112-Abteilung2
113-Abteilung3
und diese als Samba-Shares freigegeben.
Im nächsten Schritt wollte ich die Sender-Rufnummern über FaxDispatch auswerten, da mir diese durch die beschriebene Rufumleitung ja bekannt sind. meine FaxDispatch sieht folgendermaßen aus:
Code: Alles auswählen
FOLDER="/var/spool/hylafax/recvq/"
FULLPATH="${FOLDER}${FILENAME}.tif"
case "$SENDER" in *111) mv $FULLPATH /var/spool/hylafax/recvq/111-Abteilung1/;;
esac
case "$SENDER" in *112) mv $FULLPATH /var/spool/hylafax/recvq/112-Abteilung2/;;
esac
case "$SENDER" in *113) mv $FULLPATH /var/spool/hylafax/recvq/113-Abteilung3/;;
esac
Weiterleitung an Ordner funktioniert:
Code: Alles auswählen
Dec 10 14:17:44.84: [28464]: c2faxrecv - INFO: SESSION BEGIN 000000397 (null)
Dec 10 14:17:44.84: [28464]: c2faxrecv - INFO: Incoming speech call on controller 1 from ***111 to 999.
Dec 10 14:17:44.84: [28464]: c2faxrecv - INFO: SESSION BEGIN 000000398 (null)
Dec 10 14:17:44.84: [28464]: c2faxrecv - INFO: Incoming speech call on controller 1 from ***111 to 999.
Dec 10 14:17:44.84: [28464]: c2faxrecv - INFO: Connection is droped with reason 0x3304 (Another application got that call).
Dec 10 14:17:44.84: [28464]: c2faxrecv - INFO: SESSION END
Dec 10 14:17:54.50: [28464]: c2faxrecv - INFO: Connection established.
Dec 10 14:17:54.50: [28464]: c2faxrecv - INFO: BaudRate = 14400
Dec 10 14:17:54.50: [28464]: c2faxrecv - INFO: Flags = MMR_compr
Dec 10 14:17:54.51: [28464]: c2faxrecv - INFO: Write fax in path /var/spool/hylafax to file recvq/fax000000062.tif.
Dec 10 14:18:07.62: [28464]: c2faxrecv - INFO: Page 1 was received. - Last Page!
Dec 10 14:18:07.64: [28464]: c2faxrecv - ERROR: Discrepance between CAPI's (0) and internal (1) number of pages!
Dec 10 14:18:07.75: [28464]: c2faxrecv - INFO: Fax received and calling '/var/spool/hylafax/bin/faxrcvd "recvq/fax000000062.tif" "faxCAPI" "000000397" "" "***111" "" "999"'.
Dec 10 14:18:07.88: [28464]: c2faxrecv - INFO: Connection is droped with reason 0x3400 (No additional information).
Dec 10 14:18:07.88: [28464]: c2faxrecv - INFO: SESSION END
Code: Alles auswählen
Dec 11 08:39:27.73: [19363]: c2faxrecv - INFO: SESSION BEGIN 000000453 (null)
Dec 11 08:39:27.73: [19363]: c2faxrecv - INFO: Incoming speech call on controller 1 from 0***111 to 999.
Dec 11 08:39:37.27: [19363]: c2faxrecv - INFO: Connection established.
Dec 11 08:39:37.27: [19363]: c2faxrecv - INFO: StationID = 0*** 123
Dec 11 08:39:37.27: [19363]: c2faxrecv - INFO: BaudRate = 14400
Dec 11 08:39:37.27: [19363]: c2faxrecv - INFO: Flags = MMR_compr
Dec 11 08:39:37.27: [19363]: c2faxrecv - INFO: Write fax in path /var/spool/hylafax to file recvq/fax000000075.tif.
Dec 11 08:39:54.13: [19363]: c2faxrecv - INFO: Page 1 was received. - Last Page!
Dec 11 08:39:57.03: [19363]: c2faxrecv - INFO: Fax received and calling '/var/spool/hylafax/bin/faxrcvd "recvq/fax000000075.tif" "faxCAPI" "000000453" "" "0*** 123" "" "999"'.
Dec 11 08:39:57.16: [19363]: c2faxrecv - INFO: Connection is droped with reason 0x3400 (No additional information).
Dec 11 08:39:57.16: [19363]: c2faxrecv - INFO: SESSION END
Faxe senden und empfangen funktioniert ansonsten wunderbar, aber an dieser Stelle komme ich nicht weiter...
Einige Infos zum System:
Debian Etch
Hylafax Version 4.3.1
Wäre toll, wenn mir jemand weiterhelfen könnte

Seb