Asterisk With NVFaxDetect
Asterisk With NVFaxDetect
Originally Created by: kbmetz
1. Login to the FreePBX interface of the appropriate Asterisk box. Click on the Setup tab along the top and then select the Inbound Routes selection on the left navbar. Once this page opens, it will default to Add Incoming Route.
2. Complete the Add Incoming Route window as follows:
DID Number: <Enter the DID number you created in Step 1>
Fax Extension: <Change this to "system">
Fax Email: <Enter FAX recipient's e-mail address here>
Fax Detection type: <Change to "NVFax">
Pause after answer: <Change to "20">
Set Destination: <Select "Core:" and then the recipient's voice extension number>
3. Click Submit and then click the Red Reload Bar along the top. Asterisk will restart.
4. SSH into the Asterisk box you're configuring. Type the following commands:
- asterisk -r
- CLI> set verbose 10
- CLI> show application nvfaxdetect
YOU ARE FINISHED IF YOU SEE A CLI MESSAGE SAYING:
This application listens for fax tones (on IAX and SIP channels too)
for waitdur seconds of time. In addition, it can be interrupted by digits,
or non-silence. Audio is only monitored in the receive direction. If
digits interrupt, they must be the start of a valid extension unless the
option is included to ignore. If fax is detected, it will jump to the
'fax' extension. If a period of non-silence greater than 'mindur' ms,
yet less than 'maxdur' ms is followed by silence at least 'sildur' ms
then the app is aborted and processing jumps to the 'talk' extension.
If all undetected, control will continue at the next priority.
waitdur: Maximum number of seconds to wait (default=4)
options:
'n': Attempt on-hook if unanswered (default=no)
'x': DTMF digits terminate without extension (default=no)
'd': Ignore DTMF digit detection (default=no)
'f': Ignore fax detection (default=no)
't': Ignore talk detection (default=no)
sildur: Silence ms after mindur/maxdur before aborting (default=1000)
mindur: Minimum non-silence ms needed (default=100)
maxdur: Maximum non-silence ms allowed (default=0/forever)
Returns -1 on hangup, and 0 on successful completion with no exit conditions.
IF, INSTEAD, YOU RECEIVE A MESSAGE SAYING THAT NVFAXDETECT ISN'T INSTALLED, YOU MUST COMPLETE THE FOLLOWING STEPS:
- cd /usr/src
- wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.2pre25/spandsp-0.0.2pre25.tar.gz
- tar zxf spandsp-0.0.2pre25.tar.gz
- cd spandsp-0.0.2
- ./configure --prefix=/usr && make && make install
- yum -y install ghostscript
- amportal stop (Hurry! Asterisk will be down until you complete!)
- cd /usr/src/asterisk/apps
- wget http://nerdvittles.com/aah2/app_nv_faxdetect.c
- wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.2pre25/asterisk-1.2.x/app_rxfax.c
- wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.2pre25/asterisk-1.2.x/app_txfax.c
- wget http://aussievoip.com/makefile.patch
- patch < makefile.patch
- cd ..
- make
- make install
- amportal start
NOW, SEE IF NVFAXDETECT IS INSTALLED:
- asterisk -r
- CLI> set verbose 10
- CLI> show application nvfaxdetect
IF YOU NOW SEE THE APPLICATION INSTALLED, YOU SHOULD BE GOOD TO GO!
Comments
robxnue
Thu, 07/10/2008 - 22:10
Permalink
destination
there exists no "core" as destination only
Queues:
Ring Groups:
Gabcast:
Time Conditions:
Phonebook Directory:
Terminate Call:
Extensions:
and
Voicemail:
but no core. Where to find?
fskrotzki
Fri, 07/11/2008 - 10:27
Permalink
FYI: all the links for this
FYI: all the links for this set of directions are no longer valid.
juapia
Thu, 10/30/2008 - 14:07
Permalink
about links
Does anybody have the installation links that are up to date? Or a tutorial to install nvfaxdetect on my freepbx asterisk box. I am a little confused, I don't know if I already have this installed in my system. I got my compilation from pbxinaflash. I can see the NVFaxdetect on my trunks, but when I call my POT the calls drops. I hear no tones or anything. Any clues? I have not found any up to date guides online. I am running asterisk 1.4 with the latest freepbx and scripts
fskrotzki
Thu, 10/30/2008 - 14:21
Permalink
try
try here:
http://bestof.nerdvittles.com/applications/fax/
vmikhelson
Fri, 06/26/2009 - 01:54
Permalink
Will it work with Asterisk 1.6.0.10?
Tried using Nerd Vittles' setup instructions. Unfortunately the fax.pbx script fails. Maybe because I am on Asterisk 1.6.0.10...
Any suggestions?
Thank you,
Vladimir
samsch
Wed, 06/03/2009 - 17:46
Permalink
nvfaxdetect
trying to check for installed nvfaxdetect, I am getting "your application is not registered
JesserY
Mon, 03/15/2010 - 19:13
Permalink
installation links
For the installation links go here: http://soft-switch.org/downloads/spandsp/
Just use the latest I s'pose, I'm trying spandsp-0.0.6pre17.tgz atm.
"your application is not registered" is what I get as well because it's not installed.
Nerd Vittles procedure and script "fskrotzki" posted worked for me (freepbx 2.5, asterisk 1.6 - probly =P), but it doesn't come with NVfax, apparently.
Edit: nevermind, no hope to find the 'makefile.patch.'
It is completely nuts how hard it is to find this NVfax program, absolutely everything is horrifically out of date.
/me ready to pay somebody
leemaisel
Fri, 05/14/2010 - 19:10
Permalink
AAARRRGH!!
And I thought I was the only one... :(
I cannot get spandsp to compile. It cries about "Can't build without LIBTIFF" yet LIBTIFF is installed!
Ugh.
rsw686
Sat, 05/22/2010 - 21:36
Permalink
leemaisel, do you have
leemaisel, do you have libtiff-devel installed?