fax

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Hylafax CAPI

#!/bin/bash
 
# preconfigure (do we need this?)
debconf-set-selections <<\EOF
postfix postfix/mailname string fax
postfix postfix/main_mailer_type select Internet Site
EOF
 
# install hylafax
apt-get install -y capi4hylafax hylafax-server 
 
#
# default configuration
#
# configure capi
sed -i 's|#run_capi4hylafax=1|run_capi4hylafax=1|g' /etc/default/capi4hylafax
sed -i 's|USE_FAXGETTY=yes|USE_FAXGETTY=no|g' /etc/default/hylafax
echo "SendFaxCmd: /usr/bin/c2faxsend" >> /etc/hylafax/config
 
# optional
echo "@192.168.0.[0-9]+$" >> /etc/hylafax/hosts.hfaxd
 
# disable AutoCoverPa

AVM FRITZ!Card PCI

Installation (tested on Linux squezze 2.6.32-5-xen-amd64)
apt-get install -y wget capiutils
wget http://dl.dropbox.com/u/4170695/www/fcpci.tar.gz -O /tmp/fcpci.tar.gz
tar xzf /tmp/fcpci.tar.gz -C /tmp/
/tmp/fcpci/install.sh

# test
capiinfo
capifax -v [0]YOUR_FAX_NO /etc/hosts

Create XEN Hylafax domain

# redirect your ISDN card on dom0
http://www.panticz.de/xen_pci_delegation
 
# set domU parameter
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=fax
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:00:00:00:fa:fa
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=256Mb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=2Gb
[ -z $DOMAIN_PCI ] && DOMAIN_PCI=04:05.0
 
# create domU
http://www.panticz.de/DomU-Debian-Squeeze
 
# redirect avm usb card
echo "pci=['${DOMAIN_PCI}']" >> /etc/xen/${DOMAIN_NAME}
echo "extra = 'iommu=soft'" >> /etc/xen/${DOMAIN_NAME}
 
# start domU
xm create -c ${DOMAIN_NAME}
 
# install AVM FRITZ!Card PCI kernel moud

Install and configure AVM Fritz!Card USB driver

#!/bin/bash
 
# If you use Ubuntu Gutsy you don´t need to compile the fcusb2 driver at self, follow this howto
# it will automaticly download and configure all needed files
 
# be sure that you running this script as root
if [ "$USER" != "root" ]; then
	sudo $0
	exit 0
fi
 
# install needed packages
apt-get install -y avm-fritz-firmware linux-restricted-modules-$(uname -r) wget
 
# install avm firmware
#wget http://www.avm.de/files/cardware/fritzcrdusb.v20/linux/suse.93/fcusb2-suse93-3.11-07.tar.gz -P /tmp
#tar -xzf /tmp/fcusb2-suse93-3.11-07.tar.gz -C /tmp
#mkdir /usr/share/isdn/

Faxserver under Ubuntu / Debian

queue status
faxstat -s # shows fax in the queue waiting to be sent
faxstat -d # shows faxes sent
faxstat -r #shows faxes received

delete fax
faxrm JOB_ID
or if you can´t delete run under creator
sudo -u USERNAME faxrm JOB_ID

HylaFax spool directory
/var/spool/hylafax/

delete all send faxes
for i in $(ls /var/spool/hylafax/doneq); do
faxrm ${i:1}
done

get rejected fax nubers
faxstat -d | grep REJECT | cut -d" " -f 7 > fax_rejected.txt

Syndicate content