AVANTFAX is a MUST!!!!

Joined
Jul 23, 2007
Messages
251
Points
0
Hi guy,
i have some problem,
1- @ #4 the system said the file or directory was not found "bin/faxrcvd.php"

the first one is not so important !

2- I installed the Avantfax3.1.2, i can send fax but i cant see the received faxes! although can see them with elastix's tab.
should i change some thing in some where !:whistle:

Thanx a lot, B) :kiss:
 
Joined
Jun 29, 2008
Messages
3
Points
0
Hi,

I think that you should include this instruction on your config.ttyIAX1 etc. etc.

FaxRcvdCmd: bin/faxrcvd.php
DynamicConfig: bin/dynconf.php
UseJobTSI: true
NotifyCmd: bin/notify.php
 
Joined
May 16, 2007
Messages
20
Points
0
lmarco said:
Hi,

I think that you should include this instruction on your config.ttyIAX1 etc. etc.

FaxRcvdCmd: bin/faxrcvd.php
DynamicConfig: bin/dynconf.php
UseJobTSI: true
NotifyCmd: bin/notify.php
My Faq.

I install elastix Version Dic 2007 and Jul 2008, and execute script,

now i not work the fax, the ext iax, i not work, status unrecahble, and not receive fax and send fax.

por example, the file, client acces fax, i change the permis, i have change permis manual.
 
Joined
May 16, 2007
Messages
20
Points
0
ayepes2003 said:
lmarco said:
Hi,

I think that you should include this instruction on your config.ttyIAX1 etc. etc.

FaxRcvdCmd: bin/faxrcvd.php
DynamicConfig: bin/dynconf.php
UseJobTSI: true
NotifyCmd: bin/notify.php

Please help Me, i install avantfax 3.1.2
FAXDOMAIN=mail.moduart.com
FAXMAILUSER=faxmail
MYSQLPASS=eLaStIx.2oo7
AVANTFAXPASS=d58fe49

# Download and extract the program to /usr/src/
cd /usr/src
#wget http://downloads.sourceforge.net/avantf ... -3.1.2.tgz
tar xfvz avantfax-3.1.2.tgz
cd avantfax-3.1.2

# INSTALL REQUIRED PACKAGES
echo "Installing required packages"
#yum -y install httpd php php-pear php-mysql php-mbstring mysql-server netpbm-progs php-pecl-Fileinfo ImageMagick-devel libungif libpng sudo libtiff ghostscript ghostscript-fonts ImageMagick expect vixie-cron rsync
#pear channel-update pear.php.net
#pear upgrade-all
#pear install Mail Net_SMTP Mail_mime MDB2_driver_mysql

echo "Installing AvantFAX and configuring HylaFAX"

## SETUP SMARTY
chmod 0770 avantfax/includes/templates/admin_theme/templates_c/ avantfax/includes/templates/admin_theme/cache/ avantfax/includes/templates/main_theme/templates_c/ avantfax/includes/templates/main_theme/cache/
chown asterisk:asterisk avantfax/includes/templates/admin_theme/templates_c/ avantfax/includes/templates/admin_theme/cache/ avantfax/includes/templates/main_theme/templates_c/ avantfax/includes/templates/main_theme/cache/
chmod 0755 avantfax/includes/faxcover.php avantfax/includes/faxrcvd.php avantfax/includes/notify.php avantfax/tools/update_contacts.php avantfax/tools/faxcover.php avantfax/includes/avantfaxcron.php avantfax/includes/dynconf.php
cp avantfax/includes/local_config-example.php avantfax/includes/local_config.php

# SETUP HYLAFAX USERS
/usr/sbin/faxadduser -f newhosts -a pwd asterisk
/usr/sbin/faxdeluser localhost
/usr/sbin/faxdeluser 127.0.0.1
echo 127.0.0.1 >> newhosts
cat /var/spool/hylafax/etc/hosts.hfaxd >> newhosts
cat newhosts > /var/spool/hylafax/etc/hosts.hfaxd
rm -f newhosts

# SETUP AVANTFAX JOBFMT
cat >> /etc/hylafax/hyla.conf << EOF

#
## JobFmt for AvantFAX
#
JobFmt: "%-3j %3i %1a %15o %40M %-12.12e %5P %5D %7z %.25s"

EOF

# INSTALL AVANTFAX
mv avantfax /var/www/html/avantfax
chown -R asterisk.asterisk /var/www/html/avantfax
chmod -R 777 /var/www/html/avantfax/tmp /var/www/html/avantfax/faxes

# DISABLE SELINUX FOR APACHE
echo "Disabling SELinux for Apache"
setsebool -P httpd_disable_trans 1

# CONFIGURE AVANTFAX VIRTUALHOST
cat > /etc/httpd/conf.d/avantfax.conf << EOF
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /var/www/html/avantfax
ServerName avantfax
ErrorLog logs/avantfax-error_log
CustomLog logs/avantfax-access_log common
</VirtualHost>
EOF

# IMPORT MYSQL DATABASE
echo "## Creating AvantFAX MySQL database ##"
mysql --user=root --password=$MYSQLPASS -e "GRANT ALL ON avantfax.* TO avantfax@localhost IDENTIFIED BY "$AVANTFAXPASS"" mysql
mysqladmin --default-character-set=utf8 --user=avantfax --password=$AVANTFAXPASS create avantfax
mysql --user=avantfax --password=$AVANTFAXPASS avantfax < create_tables.sql
mysqlshow --user=avantfax --password=$AVANTFAXPASS avantfax

# SYMLINK AVANTFAX SCRIPTS
ln -s /var/www/html/avantfax/includes/faxrcvd.php /var/spool/hylafax/bin/faxrcvd.php
ln -s /var/www/html/avantfax/includes/dynconf.php /var/spool/hylafax/bin/dynconf.php
ln -s /var/www/html/avantfax/includes/notify.php /var/spool/hylafax/bin/notify.php
mv /usr/bin/faxcover /usr/bin/faxcover.old.`date +%Y-%m-%d-%Hh%Mm`
ln -s /var/www/html/avantfax/includes/faxcover.php /usr/bin/faxcover

# FIX FILEINFO
ln -s /usr/share/file/magic* /usr/share/misc/

# SETUP SUDO PERMISSIONS
echo "Setting up sudo"
cat /etc/sudoers | grep -v requiretty > /tmp/sudoers
echo "asterisk ALL= NOPASSWD: /sbin/reboot, /sbin/halt, /usr/sbin/faxdeluser, /usr/sbin/faxadduser -u * -p * *" >> /tmp/sudoers
mv /etc/sudoers /etc/sudoers.orig
mv /tmp/sudoers /etc/sudoers
chmod 0440 /etc/sudoers
chown root.root /etc/sudoers

# CONFIGURE MODEMS TO USE AVANTFAX
for i in `ls /var/spool/hylafax/etc/config.*`; do
if [ ! -L $i ]; then
cat >> $i << EOF
#
## AvantFAX
#
FaxRcvdCmd: bin/faxrcvd.php
DynamicConfig: bin/dynconf.php
UseJobTSI: true

EOF
fi
done

cat >> /var/spool/hylafax/etc/config << EOF
#
## AvantFAX
#
NotifyCmd: bin/notify.php

EOF

# ADD MODEMS
for i in `ls /var/spool/hylafax/etc/config.*`; do
if [ -f $i ]; then
modem=`echo $i | awk -F'/' '{print $6}' | awk -F'.' '{print $2}'`

# ADD MODEMS TO AVANTFAX DATABASE
mysql --user=avantfax --password=$AVANTFAXPASS -e "INSERT INTO Modems SET device='$modem', alias ='$modem'" avantfax
echo "Configuring $modem for AvantFAX"
fi
done

# ADD CRONTAB ENTRIES
echo "Setting up crontab"
crontab -l > /tmp/tab
echo -e "0 0 * * *\t/var/www/html/avantfax/includes/avantfaxcron.php -t 2" >> /tmp/tab
crontab /tmp/tab
rm -f /tmp/tab
echo "Done"

# DONE #

# CONFIGURE POSTFIX
/sbin/service postfix stop
echo "Configuring Email to FAX for domain ${FAXDOMAIN}"
cat >> /etc/postfix/master.cf << EOF
fax unix - n n - 1 pipe
flags= user=$FAXMAILUSER argv=/usr/bin/faxmail -d -n -NT \${user}

EOF
echo -e "${FAXDOMAIN}\tfax:localhost" >> /etc/postfix/transport
echo -e "fax_destination_recipient_limit = 1" >> /etc/postfix/main.cf

# CONFIGURE FAXMAIL
cat > /etc/hylafax/faxmail.conf << EOF
AutoCoverPage: false
TextPointSize: 12pt
Headers: Message-id Date Subject From
MailUser: $FAXMAILUSER

EOF
/sbin/service postfix start
echo "Done postfix configs"

# Import existing faxes
cd /var/spool/hylafax; for i in `ls recvq/*`; do bin/faxrcvd.php $i ttyIAX1; done
cd /var/spool/hylafax; for i in `ls doneq/q*`; do bin/notify.php $i done :30; done

# Install tesseract for OCR support
cd /usr/src
#wget http://tesseract-ocr.googlecode.com/fil ... .01.tar.gz
tar xfvz tesseract-2.01.tar.gz
cd tesseract-2.01
make clean
./configure && make
#wget http://tesseract-ocr.googlecode.com/fil ... spa.tar.gz
#wget http://tesseract-ocr.googlecode.com/fil ... eng.tar.gz
#wget http://tesseract-ocr.googlecode.com/fil ... deu.tar.gz
tar xfvz tesseract-2.00.spa.tar.gz
tar xfvz tesseract-2.00.eng.tar.gz
;tar xfvz tesseract-2.00.deu.tar.gz
make install

# Change some configs
mv /var/www/html/avantfax/includes/local_config.php /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
sed "s/false); /true); /g" /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm` > /var/www/html/avantfax/includes/local_config.php
rm -rf /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
mv /var/www/html/avantfax/includes/local_config.php /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
sed "s/eng"); /spa"); /g" /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm` > /var/www/html/avantfax/includes/local_config.php
rm -rf /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
mv /var/www/html/avantfax/includes/local_config.php /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
sed "s/'en';/'es';/g" /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm` > /var/www/html/avantfax/includes/local_config.php

# Run ocr_import to OCR already existing faxes
cd /var/www/html/avantfax/tools
./ocr_import.php

# DONE #
echo "********************************************************************************"
echo "*"
echo "*"
echo "*"
echo "* Now you can go to https://yourserver/avantfax/admin and login with:"
echo "* username: admin"
echo "* password: password"
echo "* and configure users for AVANTFAX"
echo "*"
echo "* Then go to https://yourserver/avantfax/"
echo "* and login with one of the users you just created."
echo "* Have a look at the config in /var/www/html/avantfax/includes/local_config.php"
echo "* Good web faxing!!"
echo "*"
echo "*"
echo "*"
echo "*******************************************************************************"

the script and other script this page i not login the user admin and password.
 
Joined
May 16, 2007
Messages
20
Points
0
I use this script and the script full 3.1.2
i not acces the web gui, on user admin and password : password.



Please help Me, i install avantfax 3.1.2
FAXDOMAIN=mail.moduart.com
FAXMAILUSER=faxmail
MYSQLPASS=eLaStIx.2oo7
AVANTFAXPASS=d58fe49

# Download and extract the program to /usr/src/
cd /usr/src
#wget http://downloads.sourceforge.net/avantf ... -3.1.2.tgz
tar xfvz avantfax-3.1.2.tgz
cd avantfax-3.1.2

# INSTALL REQUIRED PACKAGES
echo "Installing required packages"
#yum -y install httpd php php-pear php-mysql php-mbstring mysql-server netpbm-progs php-pecl-Fileinfo ImageMagick-devel libungif libpng sudo libtiff ghostscript ghostscript-fonts ImageMagick expect vixie-cron rsync
#pear channel-update pear.php.net
#pear upgrade-all
#pear install Mail Net_SMTP Mail_mime MDB2_driver_mysql

echo "Installing AvantFAX and configuring HylaFAX"

## SETUP SMARTY
chmod 0770 avantfax/includes/templates/admin_theme/templates_c/ avantfax/includes/templates/admin_theme/cache/ avantfax/includes/templates/main_theme/templates_c/ avantfax/includes/templates/main_theme/cache/
chown asterisk:asterisk avantfax/includes/templates/admin_theme/templates_c/ avantfax/includes/templates/admin_theme/cache/ avantfax/includes/templates/main_theme/templates_c/ avantfax/includes/templates/main_theme/cache/
chmod 0755 avantfax/includes/faxcover.php avantfax/includes/faxrcvd.php avantfax/includes/notify.php avantfax/tools/update_contacts.php avantfax/tools/faxcover.php avantfax/includes/avantfaxcron.php avantfax/includes/dynconf.php
cp avantfax/includes/local_config-example.php avantfax/includes/local_config.php

# SETUP HYLAFAX USERS
/usr/sbin/faxadduser -f newhosts -a pwd asterisk
/usr/sbin/faxdeluser localhost
/usr/sbin/faxdeluser 127.0.0.1
echo 127.0.0.1 >> newhosts
cat /var/spool/hylafax/etc/hosts.hfaxd >> newhosts
cat newhosts > /var/spool/hylafax/etc/hosts.hfaxd
rm -f newhosts

# SETUP AVANTFAX JOBFMT
cat >> /etc/hylafax/hyla.conf << EOF

#
## JobFmt for AvantFAX
#
JobFmt: "%-3j %3i %1a %15o %40M %-12.12e %5P %5D %7z %.25s"

EOF

# INSTALL AVANTFAX
mv avantfax /var/www/html/avantfax
chown -R asterisk.asterisk /var/www/html/avantfax
chmod -R 777 /var/www/html/avantfax/tmp /var/www/html/avantfax/faxes

# DISABLE SELINUX FOR APACHE
echo "Disabling SELinux for Apache"
setsebool -P httpd_disable_trans 1

# CONFIGURE AVANTFAX VIRTUALHOST
cat > /etc/httpd/conf.d/avantfax.conf << EOF
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /var/www/html/avantfax
ServerName avantfax
ErrorLog logs/avantfax-error_log
CustomLog logs/avantfax-access_log common
</VirtualHost>
EOF

# IMPORT MYSQL DATABASE
echo "## Creating AvantFAX MySQL database ##"
mysql --user=root --password=$MYSQLPASS -e "GRANT ALL ON avantfax.* TO avantfax@localhost IDENTIFIED BY \"$AVANTFAXPASS\"" mysql
mysqladmin --default-character-set=utf8 --user=avantfax --password=$AVANTFAXPASS create avantfax
mysql --user=avantfax --password=$AVANTFAXPASS avantfax < create_tables.sql
mysqlshow --user=avantfax --password=$AVANTFAXPASS avantfax

# SYMLINK AVANTFAX SCRIPTS
ln -s /var/www/html/avantfax/includes/faxrcvd.php /var/spool/hylafax/bin/faxrcvd.php
ln -s /var/www/html/avantfax/includes/dynconf.php /var/spool/hylafax/bin/dynconf.php
ln -s /var/www/html/avantfax/includes/notify.php /var/spool/hylafax/bin/notify.php
mv /usr/bin/faxcover /usr/bin/faxcover.old.`date +%Y-%m-%d-%Hh%Mm`
ln -s /var/www/html/avantfax/includes/faxcover.php /usr/bin/faxcover

# FIX FILEINFO
ln -s /usr/share/file/magic* /usr/share/misc/

# SETUP SUDO PERMISSIONS
echo "Setting up sudo"
cat /etc/sudoers | grep -v requiretty > /tmp/sudoers
echo "asterisk ALL= NOPASSWD: /sbin/reboot, /sbin/halt, /usr/sbin/faxdeluser, /usr/sbin/faxadduser -u * -p * *" >> /tmp/sudoers
mv /etc/sudoers /etc/sudoers.orig
mv /tmp/sudoers /etc/sudoers
chmod 0440 /etc/sudoers
chown root.root /etc/sudoers

# CONFIGURE MODEMS TO USE AVANTFAX
for i in `ls /var/spool/hylafax/etc/config.*`; do
if [ ! -L $i ]; then
cat >> $i << EOF
#
## AvantFAX
#
FaxRcvdCmd: bin/faxrcvd.php
DynamicConfig: bin/dynconf.php
UseJobTSI: true

EOF
fi
done

cat >> /var/spool/hylafax/etc/config << EOF
#
## AvantFAX
#
NotifyCmd: bin/notify.php

EOF

# ADD MODEMS
for i in `ls /var/spool/hylafax/etc/config.*`; do
if [ -f $i ]; then
modem=`echo $i | awk -F'/' '{print $6}' | awk -F'.' '{print $2}'`

# ADD MODEMS TO AVANTFAX DATABASE
mysql --user=avantfax --password=$AVANTFAXPASS -e "INSERT INTO Modems SET device='$modem', alias ='$modem'" avantfax
echo "Configuring $modem for AvantFAX"
fi
done

# ADD CRONTAB ENTRIES
echo "Setting up crontab"
crontab -l > /tmp/tab
echo -e "0 0 * * *\t/var/www/html/avantfax/includes/avantfaxcron.php -t 2" >> /tmp/tab
crontab /tmp/tab
rm -f /tmp/tab
echo "Done"

# DONE #

# CONFIGURE POSTFIX
/sbin/service postfix stop
echo "Configuring Email to FAX for domain ${FAXDOMAIN}"
cat >> /etc/postfix/master.cf << EOF
fax unix - n n - 1 pipe
flags= user=$FAXMAILUSER argv=/usr/bin/faxmail -d -n -NT \${user}

EOF
echo -e "${FAXDOMAIN}\tfax:localhost" >> /etc/postfix/transport
echo -e "fax_destination_recipient_limit = 1" >> /etc/postfix/main.cf

# CONFIGURE FAXMAIL
cat > /etc/hylafax/faxmail.conf << EOF
AutoCoverPage: false
TextPointSize: 12pt
Headers: Message-id Date Subject From
MailUser: $FAXMAILUSER

EOF
/sbin/service postfix start
echo "Done postfix configs"

# Import existing faxes
cd /var/spool/hylafax; for i in `ls recvq/*`; do bin/faxrcvd.php $i ttyIAX1; done
cd /var/spool/hylafax; for i in `ls doneq/q*`; do bin/notify.php $i done :30; done

# Install tesseract for OCR support
cd /usr/src
#wget http://tesseract-ocr.googlecode.com/fil ... .01.tar.gz
tar xfvz tesseract-2.01.tar.gz
cd tesseract-2.01
make clean
./configure && make
#wget http://tesseract-ocr.googlecode.com/fil ... spa.tar.gz
#wget http://tesseract-ocr.googlecode.com/fil ... eng.tar.gz
#wget http://tesseract-ocr.googlecode.com/fil ... deu.tar.gz
tar xfvz tesseract-2.00.spa.tar.gz
tar xfvz tesseract-2.00.eng.tar.gz
;tar xfvz tesseract-2.00.deu.tar.gz
make install

# Change some configs
mv /var/www/html/avantfax/includes/local_config.php /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
sed "s/false); /true); /g" /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm` > /var/www/html/avantfax/includes/local_config.php
rm -rf /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
mv /var/www/html/avantfax/includes/local_config.php /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
sed "s/eng\"); /spa\"); /g" /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm` > /var/www/html/avantfax/includes/local_config.php
rm -rf /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
mv /var/www/html/avantfax/includes/local_config.php /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
sed "s/'en';/'es';/g" /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm` > /var/www/html/avantfax/includes/local_config.php

# Run ocr_import to OCR already existing faxes
cd /var/www/html/avantfax/tools
./ocr_import.php

# DONE #
echo "********************************************************************************"
echo "*"
echo "*"
echo "*"
echo "* Now you can go to https://yourserver/avantfax/admin and login with:"
echo "* username: admin"
echo "* password: password"
echo "* and configure users for AVANTFAX"
echo "*"
echo "* Then go to https://yourserver/avantfax/"
echo "* and login with one of the users you just created."
echo "* Have a look at the config in /var/www/html/avantfax/includes/local_config.php"
echo "* Good web faxing!!"
echo "*"
echo "*"
echo "*"
echo "*******************************************************************************"

the script and other script this page i not login the user admin and password.[/quote]
 

uno

Joined
Aug 13, 2008
Messages
1
Points
0
ramoncio said:
This is my latest script to install Avantfax 3.1.2.
I have tested it with Elastix 1.1 stable.
Now the rh-install.sh script from Avantfax works again, so I use it.
You can change your preferences in # 2
If you want it in English remove # 7 and # 8

Code:
# 1 Download and extract Avantfax to /usr/src/
cd /usr/src
wget http://kent.dl.sourceforge.net/sourceforge/avantfax/avantfax-3.1.2.tgz
tar xfvz avantfax-3.1.2.tgz
cd avantfax-3.1.2

# 2 Change preferences to work with Elastix defaults
mv rh-prefs.txt rh-prefs.txt.backup.`date +%Y-%m-%d-%Hh%Mm`
echo "FAXDOMAIN=fax.mydomain.com" >> rh-prefs.txt
echo "INSTDIR=/var/www/html/avantfax" >> rh-prefs.txt
echo "HYLADIR=/usr" >> rh-prefs.txt
echo "SPOOL=/var/spool/hylafax" >> rh-prefs.txt
echo "USER=avantfax" >> rh-prefs.txt
echo "PASS=d58fe49" >> rh-prefs.txt
echo "DB=avantfax" >> rh-prefs.txt
echo "ROOTMYSQLPWD=eLaStIx.2oo7" >> rh-prefs.txt
echo "HTTPDUSER=asterisk" >> rh-prefs.txt
echo "HTTPDGROUP=asterisk" >> rh-prefs.txt

# 3 Run Avantfax's installation scripts
chmod +x rh-install.sh
./rh-install.sh
chmod +x setup-postfix.sh
./setup-postfix.sh

# 4 Import existing faxes
cd /var/spool/hylafax; for i in `ls recvq/*`; do bin/faxrcvd.php $i ttyIAX1; done
cd /var/spool/hylafax; for i in `ls doneq/q*`; do bin/notify.php $i done :30; done

# 5 Install tesseract for OCR support
cd /usr/src
wget http://tesseract-ocr.googlecode.com/files/tesseract-2.01.tar.gz
tar xfvz tesseract-2.01.tar.gz
cd tesseract-2.01
./configure && make 
wget http://tesseract-ocr.googlecode.com/files/tesseract-2.00.spa.tar.gz
wget http://tesseract-ocr.googlecode.com/files/tesseract-2.00.eng.tar.gz
tar xfvz tesseract-2.00.spa.tar.gz
tar xfvz tesseract-2.00.eng.tar.gz
make install

# 6 Enable OCR Support in Avantfax
mv /var/www/html/avantfax/includes/local_config.php /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
sed "s/false); /true); /g" /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm` > /var/www/html/avantfax/includes/local_config.php
rm -rf /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`

# 7 Change Avantfax user interface language to Spanish
mv /var/www/html/avantfax/includes/local_config.php /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
sed "s/eng"«»); /spa"«»); /g" /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm` > /var/www/html/avantfax/includes/local_config.php
rm -rf /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`

# 8 Change tesseract OCR Language to Spanish
mv /var/www/html/avantfax/includes/local_config.php /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm`
sed "s/'en';/'es';/g" /var/www/html/avantfax/includes/local_config.php.backup.`date +%Y-%m-%d-%Hh%Mm` > /var/www/html/avantfax/includes/local_config.php

# 9 Run ocr_import to OCR existing faxes
cd /var/www/html/avantfax/tools
./ocr_import.php

# 10 Display some info
echo "********************************************************************************"
echo "*"
echo "*"
echo "*"
echo "* Now you can go to https://yourserver/avantfax/admin  and login with:"
echo "* username: admin"
echo "* password: password"
echo "* and configure users for AVANTFAX"
echo "*"
echo "* Then go to https://yourserver/avantfax/"
echo "* and login with one of the users you just created."
echo "* Have a look at the config in /var/www/html/avantfax/includes/local_config.php"
echo "* Good web faxing!!"
echo "*"
echo "*"
echo "*"
echo "*******************************************************************************"

Hello Ramoncio,

I would like to install AvantFax with your code but I am not too deep into linux. I would like to know how to use the script you posted. When I copy it, where do I paste it and how do I execute it?

Thank you.
 
Joined
Jun 14, 2007
Messages
276
Points
0
Re:AVANTFAX is a MUST!!!! But HOW?????

I am very much confused about the whole issue of Hylafax & Avantfax. I had someone tell me that no matter what you did, since this was running on top of Asterisk 1.4 it would not work properly as Asterisk 1.4 does not support T.38 termination, only pass-thru.

So, then I came across someone who had written that there was a solution, although it was not free, from attrafax, yet, when I get the installation guide, it clearly states that if spandsp is installed on your system, this will not work. Spandsp was put on sometime ago and I thought it had something to do with either echo cancellation or call conferencing.

This brings me back to the beginning. How do you get the system to recognize an incoming fax and pass it to either a web interface or printer or something? Does Avantfax work really and is it possible that the installation script could be sent to the forum as a file so that it can be downloaded and edited?

Thanks,

C
 
Joined
Nov 12, 2007
Messages
597
Points
16
Re:AVANTFAX is a MUST!!!! But HOW?????

Avantfax really does work for sending and receiving

You need to install the NVfax files if you want to use incoming SIP for fax detection, I use NVfax detection from as well for calls incoming on zap trunks

Sending a fax is easy, just change the codec in IAXModem to ulaw or alaw seems to work best

Avantfax can setup different categories and users which will email to that user or you can set it to print to a certain printer

I used the script from ramoncio to install avantfax and then just changed things for my setup
 
Joined
Jun 14, 2007
Messages
276
Points
0
Re:AVANTFAX is a MUST!!!! But HOW?????

Thanks for your response. I would be very much interested in getting the correct script, since the last time I pulled it down, I am not sure what happened. When the script was all said and done, I had advantfax installed under /var/www/html/avantfax/avantfax .

I just got the hylafax drivers installed, I believe I have the NVFAX files installed. I would greatly appreciate your assistance.

Thanks,

C
 
Joined
Nov 12, 2007
Messages
597
Points
16
Re:AVANTFAX is a MUST!!!! But HOW?????

I first setup the fax extensions in Elastix
Then I ran the latest avantfax script rh-install.sh which I think is 3.1.2 from memory
When it has run and installed just login to avantfax admin and basically setup how you want it, at this stage the iax faxes should be showing in modems,if not there is an issue

The only other thing I did was to edit /etc/iaxmodem and change the codec to ulaw from slinear and faxing has worked great ever since

Once you get into avantfax admin most of the configs have self explaining text telling you what it does

If you get stuck post back and will help where I can
 
Joined
Jun 14, 2007
Messages
276
Points
0
Re:AVANTFAX is a MUST!!!! But HOW?????

Hi,

OK, I followed your instructions. Changed the codecs. When I look at the logs this is what I see.

26.08.2008 08:52 send_mail> ':-( format failed fax: 3011399 26.08.2008 08:52' sent to 'xxxxx@xxxxxx.xxx' from 'root@localhost' - /var/www/html/avantfax/tmp/2008-08-26-3011399-085250/fax.pdf (3011399.pdf)
26.08.2008 08:52 convert2pdf> created /var/www/html/avantfax/tmp/2008-08-26-3011399-085250/fax.pdf in 0.9ms
26.08.2008 08:52 notify> Created company '3011399' with cid '2'
26.08.2008 08:52 notify> Executing: doneq/q3 format_failed (4)

why the failures?

C
 
Joined
Nov 12, 2007
Messages
597
Points
16
Re:AVANTFAX is a MUST!!!! But HOW?????

Ok thats strange that it should fail,so time to narrow down where the issue is
Have 2 fax extensions setup and for testing send a fax to the other fax extension
If that works ok then we can move forward

Also a thought ,are you using any compression codecs like g729 on the system

and was the fax being sent out on zap channel or SIP channel
 
Joined
Jun 14, 2007
Messages
276
Points
0
Re:AVANTFAX is a MUST!!!! But HOW?????

Hi David,

Well, unless I have just totally missed something, my dial plans identify what are local and international numbers. Having said that, since I was faxing to a local number, it should have gone out over the zap channel. Now, I do not have individual lines in this box, I have a Sangoma card that has 2 E1 ports, of which I have 1 E1 attached.

I am not using any codecs other that ulaw on the E1 however on all my sip channels I use g729.

Any help that you offer is sincerely appreciated.

Thanks,

C
 
Joined
Nov 12, 2007
Messages
597
Points
16
Re:AVANTFAX is a MUST!!!! But HOW?????

This narrows the issue down alot

If your sending over SIP and your SIP trunk is using g729 then the fax will fail as g729 is a compression codec, so basically what it means is the fax file is being compressed twice which will result in a fail

Not sure about the Sangoma cards ,do they have onboard echo cancel as this would be another reason for fax failure if that particular route has the echo cancel on it.

Dave
 
Joined
Jun 26, 2008
Messages
2
Points
0
Re:AVANTFAX is a MUST!!!! But HOW?????

On board hardware EC on Sangoma board doesn't perform hardware echo cancellations operation over fax and dtmf frequencies. You can confirm that hardware EC is not causing fax failure by disabling it and making fax calls.

Step 1: Confirm if the card has hardware EC by following instructions at http://wiki.sangoma.com/wanpipe-linux-a ... onfirmHWEC

Step 2: Disable HWEC by setting TDMV_HWEC = NO in /etc/wanpipe/wanpipe#.conf. Restart wanrouter and asterisk
--> Test few fax calls and confirm situation is same as before.

Step 3: If fax calls works when hardware EC is disabled. Generate binary files by following instructions at http://wiki.sangoma.com/wanpipe-linux-a ... echo_debug and send it to techdesk@sangoma.com.

Best regards,

Jignesh
 
Joined
Nov 15, 2007
Messages
93
Points
0
Ramoncio:

You are doing a good job with this scripts... I have avantfaxt working in my elastix thanks to you...

This post is too long and in sometimes is dificult to locate the correct script for the correct elastix version. Is posible to put the scripts indentified by elastix version? May be in some web space in elastix web or other place?

Thanks again
 
Joined
Oct 8, 2007
Messages
81
Points
0
Usuarioforum said:
Ramoncio:

You are doing a good job with this scripts... I have avantfaxt working in my elastix thanks to you...

This post is too long and in sometimes is dificult to locate the correct script for the correct elastix version. Is posible to put the scripts indentified by elastix version? May be in some web space in elastix web or other place?

Thanks again

Better yet, it will be great if the Elastix guys can include the appropriate script in new Elastix versions so that one can just just click to install and enable web fax. At least half the work has been done by creating the script.
 
Joined
Nov 13, 2007
Messages
50
Points
0
There's a way to change the subject (or the entire layout) of the notification e-mails sended by AvantFax?

I need to filter them by subject but all the mail have the same (only "failed fax" notification use a smiley like :-( that is not filtered!!!).
 
Joined
May 25, 2007
Messages
174
Points
0
Dear All,

what the finial scripts that working with Elastix finial version (1.2 stable )?
please help?
Terry
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,993
Messages
131,109
Members
17,716
Latest member
Orbit114
Top