Hylafax-Server OpenSuse 11.3 – TecArt-CRM Developer-Wiki

Hylafax-Server OpenSuse 11.3

Aus TecArt-CRM Developer-Wiki

Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Installation

[root@faxsrv /]# wget http://opensuse.foehr-it.de/rpms/11_3/2.6.34-12/x86_64/fcpci-kmp-desktop-0.1_k2.6.34.0_12-0.x86_64.rpm
[root@faxsrv /]# rpm -i fcpci-kmp-desktop-0.1_k2.6.34.0_12-0.x86_64.rpm
[root@faxsrv /]# yast -i hylafax hylafax-client capi4linux capi4hylafax isdnlog dialog

Bearbeiten Sie /etc/modprobe.d/50-blacklist.conf und ändern sie die folgenden Zeilen:

blacklist mISDN_dsp
blacklist mISDN_core
blacklist mISDNipac        <<<<
blacklist avmfritz         <<<<
[root@faxsrv /]# reboot
[root@faxsrv /]# yast2 isdn

Bearbeiten Sie controller0 und speichern Sie, ändern Sie dann controller1 und löschen Sie controller0 (notwendig wegen eines Bugs in YAST)

[root@faxsrv /]# faxsetup
No scheduler config file exists, creating one from scratch:
Country code [1]? 49
Area code []? 361
Long distance dialing prefix [1]? 0
International dialing prefix [011]? 00
Dial string rules file (relative to /var/spool/fax) [“etc/dialrules”]? [Enter]
Tracing during normal server operation [1] ? [Enter]
Default tracing during send and receive Sessions [0xffffffff]? [Enter]
Continuation cover page (relative to /var/spool/fax) []? etc/cover.templ
Timeout when converting PostScript Documents (secs) [180]? 600
Maximum number of concurrent jobs to a destination [1]? [Enter]
Define a group of modems [] ? [Enter]
Time of day restrictions for outbound jobs [“Any”]? [Enter]
Pathname of destination controls file (relative to /var/spool/fax) []? [Enter]
Timeout before purging a stale UUCP lock file (secs) [30]? [Enter]
Max number of pages to permit in an outbound job [0xffffffff]? 30
Syslog facility name for ServerTracing messages [daemon]? [Enter]

Are these ok [yes]? [Enter]
Server Konfiguration:
Should I restart the Hylafax processes [yes]? [Enter]
Do you want to run faxaddmodem to configure a modem [yes]? [Enter]
Do you want setup CAPI 2.0 based ISDN modem [no]? Yes

Ändern Sie /etc/init.d/hylafax und entfernen Sie "-o 4557"

[root@faxsrv /]# chkconfig --level 345 hylafax on
[root@faxsrv /]# chkconfig --level 345 isdn on

Bearbeiten Sie /var/spool/fax/etc/config.faxCAPI

SpoolDir:                   /var/spool/fax
FaxRcvdCmd:                 /var/spool/fax/bin/faxrcvd
PollRcvdCmd:                /var/spool/fax/bin/pollrcvd
LogFile:                    /var/spool/fax/log/capi4hylafax.log
{
    HylafaxDeviceName:          faxCAPI
    RecvFileMode:               666
    FAXNumber:                  +49.361.2623858
    LocalIdentifier:            "TecArt Group Erfurt"
    MaxConcurrentRecvs:         2
    OutgoingController:         1
    OutgoingMSN:                2623858
    SuppressMSN:                0
    NumberPrefix:
    UseISDNFaxService:          0
    RingingDuration:            0
    {
        Controller:             1
        AcceptSpeech:           0
        UseDDI:                 0
        AcceptGlobalCall:       0
        IncomingMSNs:           2623858
    }
}

Bearbeiten Sie /etc/inittab und fügen Sie die folgenden Zeilen hinzu:

# end of /etc/inittab
fr:35:respawn:/usr/bin/c2faxrecv -C "/var/spool/fax/etc/config.faxCAPI"
[root@faxsrv /]# kill -HUP 1

Bearbeiten Sie /var/spool/fax/etc/users

#
# Sample users file for FaxDispatch on ISDN lines
# format: <email>  <MSN or extention>
#
fax@tecart.de 2623858

Bearbeiten Sie /var/spool/fax/bin/faxrcvd

INFO=$SBIN/faxinfo
FAX2PS=$TIFFBIN/fax2ps
TIFF2PS=tiff2ps
TOADDR=fax@tecart.de       <<<<
FROMADDR=fax@tecart.de     <<<<
TEMPLATE=de                <<<< 
TIFFINFO=tiffinfo
NOTIFY_FAXMASTER=always

:

FILETYPE=pdf
SENDTO=fax@tecart.de

Bearbeiten Sie /var/spool/fax/bin/notify

INFO=$SBIN/faxinfo
TIFFINFO=tiffinfo
FAX2PS=$TIFFBIN/fax2ps
TIFF2PS=tiff2ps
PS2PDF=ps2pdf
PDF2PS=pdf2ps
PS2FAX=bin/ps2fax
PDF2FAX=bin/pdf2fax
TOADDR=fax@tecart.de       <<<<
FROMADDR=fax@tecart.de     <<<<
NOTIFY_FAXMASTER=never 
RETURNFILETYPE=pdf         <<<<
TEMPLATE=de                <<<<

Bearbeiten Sie /var/spool/fax/bin/wedged

TOADDR=fax@tecart.de
FROMADDR=fax@tecart.de
WEDGED_EMAIL_INTERVAL=20         # minutes: at most 1 wedged email every X mins
WEDGED_DISABLE_FAXGETTY=        # if set, faxgetty disabled from inittab
[root@faxsrv /]# reboot

Troubleshooting

[root@faxsrv /]# ps ax | grep fax
4018 ?        Ss     0:00 /usr/sbin/faxq
4019 ?        Ss     0:00 /usr/lib/fax/hfaxd -i hylafax -s 444
4166 ?        Ssl    0:39 /usr/bin/c2faxrecv -C /var/spool/fax/etc/config.faxCAPI

Eingehende und ausgehende Anrufe werden entweder in /var/log/messages oder in /var/log/isdn.log geloggt. Fax-Anrufe werden in /var/spool/fax/log/capi4hylafax.log geloggt

Send a fax at command line

[root@faxsrv /]# sendfax -n -d Faxnummer Datei.ps

Print a fax from windows client

WinPrintHylaFax