***WORKING*** Asterisk 1.8.1.1, FreePBX 2.8, HylaFAX & AvantFAX setup with A2billing 1.8

Hello everybody, this is my first post and I hope everyone will find it VERY useful!

I have successfully setup FreePBX 2.8.0.4 with Asterisk 1.8.1.1, HylaFax 6.0.5, AvantFax 3.3.3, and IAXModem 1.2.0 using Google Voice as the incoming and outgoing trunk for Faxing.

I have confirmed this works PERFECTLY and incoming and outgoing faxes are received using Google Voice Free DID.

No other provider, IAX or SIP, is necessary to get this working and you can make free calls in and out.

This took me about 3 days of very hard work and very long night, some of them I didnt even sleep LOL, but after persistence and hard work it paid off!

Heres the setup and instructions:

You can either use a physical machine or a Virtual Machine, if the latter I prefer VMWARE Player, just to get it setup to test.

Pre-requisites

CentOS 5

First of all you want to install this on a FRESH install of CentOS minimum packages selected

Once you have your base system up and running login using putty or your favorite SSH program and issue the following command:

#Fix Kernel Path
yum -y install kernel kernel-devel
cd /lib/modules/uname -r
rm -rf build
ln -s /usr/src/kernels/2.6.18-194.26.1.el5-i686/ build
reboot

What this does is updates your Kernel and fixes the path for building and installing.

After the reboot log back in and issue the following command:

#Install Asterisk Dependencies
yum install -y flex screen sox libxml2-devel libxml2 yum-utils mysql-connector-odbc gcc gcc-c++ ncurses-devel subversion libtiff libtiff-devel libusb-devel bison bison-devel ncurses ntp zlib zlib-devel openssl openssl-devel gnutls-devel httpd mysql-server mysql-devel bind php php-mysql php-gd php-pear php-mbstring ghostscript speex-devel libogg-devel libvorbis-devel curl-devel unixODBC-devel libtool-ltdl-devel net-snmp-devel bzip2-devel newt-devel lm_sensors-devel openldap-devel postgresql-devel gtk±devel libtermcap termcap webalizer expect sendmail-cf ImageMagick ghostscript libtiff netpbm-progs libungif cups lpr psutils
reboot

#Install CentOS Testing Repo
cd /etc/yum.repos.d
wget http://dev.centos.org/centos/5/CentOS-Testing.repo
nano /etc/yum.repos.d/CentOS-Testing.repo
#Enabled = 1

yum update --enablerepo=c5-testing php*

After you install the first set of programs with YUM reboot and then enable the CentOS Testing Repo for PHP 5.2

Complete regular install of Asterisk, LibPRI, Dahdi, FreePBX, and other required files.

Now for setup of FAX

Once Asterisk and FreePBX are installed, install IAXModem as usual I use the ./build static so that IAXModem uses its own SpanDSP libraries and doesnt have to bother with Asterisk’s files.

Once you setup your IAX2 extension in FreePBX and create the associated IAXModem file you are ready to Fax

To use Google voice as the outgoing trunk you will need to edit gtalk.conf jabber.conf and extensions_custom.conf to reflect your Google Voice settings

In FreePBX make a trunk for your google voice and direct it to gtalk/[trunk]/[email protected]

Make an outbound route and point it to your trunk, make sure you make sure the dial pattern is correct as Google Voice requires 11 digit format for outgoing calls IE. 1-555-555-1212

Create your incoming route and route it to your IAX2 extension.

Login to avant fax and follow these instructions:

Send a one page black and white text fax to 1-888-hpfaxme (1-888-473-2963).
When your fax is received by the HP Test Fax Service, we will generate a return fax to you within five minutes confirming that we received your fax. This verifies that you can both send and receive a fax with your fax machine.

This is a free service by HP which allows you to send a fax to the number and it will send you a fax back to confirm your faxing is working.

And thats all Faxing is complete setup you should receive a notification within 10 minutes to your inbox. In my own tests it happened within 5 minutes, may vary on time of day.

Enjoy!

I am available via msn djnali at hotmail dot com or email me dali at worldtelephone dot org

hey Darnel is it possible to get your contact info i have a few questions!

This is a update of my last post and quick how-to I found off of a few websites and compiled in order to create a backup of your server automagically incase of any server disruptions you will have a backup remotely backup onto another server for your archival purposes.

  1. Change directory to the YUM Repos

cd /etc/yum.repos.d

  1. Download Mondo Repo

wget ftp://ftp.mondorescue.org/fedora/5/fedora-mondo.repo

  1. Install Mondo

yum install mondo

  1. Setup RSA Key on local server
    Use your e-mail address to create a unique key

ssh-keygen -t rsa -f ~/.ssh/id_rsa -C "[email protected]"

ssh [email protected] 'mkdir ~/.ssh;chmod 700 ~/.ssh’
scp ~/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys
ssh [email protected] ‘chmod 600 ~/.ssh/authorized_keys’

Copy the following into the following file and issue command chmod +x backup.sh to use as a crontab for future unattended backups

nano /root/backup.sh

#!/bin/bash
mondoarchive -OVi -d “/var/cache/mondo” -N -9 -G -s 4G
ssh [email protected] rm /root/backup/mondo/mondorescue-1-old.iso
ssh [email protected] mv /root/backup/mondo/mondorescue-1.iso /root/backup/mondo/mondorescue-1-old.iso
scp /var/cache/mondo/mondorescue-1.iso [email protected]:/root/backup/mondo
ssh [email protected] rm /root/backup/mindi/mondorescue-old.iso
ssh [email protected] mv /root/backup/mindi/mondorescue.iso /root/backup/mindi/mondorescue-old.iso
scp /var/cache/mindi/mondorescue.iso [email protected]:/root/backup/mindi

Full Recovery CD will be in /root/backup/mondo
Small Recovery CD will be in /root/backup/mindi

Complete Updated Guide @ http://www.worldtelephone.org/?q=node/9