How to enable fax function with asterisk+freepbx?

Hi, can any one direct me a step by step link to enable fax function on asterisk+freepbx.? I now just want to have incoming fax received as email to specified extension, and there is one fax machine connected to the analog port to fax out.

Do i have to do any manual configuration for it or just through freepbx is enough.

later i want to treat the asterisk as a gateway to send and received fax through email, any one know what is the best way to do it?

thanks so much in advance

johnny

start the asterisk cli
and call 666 does it “work” do you see going thru the motions??

Now you understand that like 90 % of TB can not get this to work right???

If iot does “look” like it works then

cd /usr/local/bin
wget http://nerdvittles.com/trixbox123/mime-construct
chmod +x mime-construct

Good Luck…

Best bet is fax machine and copper line

kgtee Posted on: 2006/12/16 19:20
Home away from home

Joined: 2006/6/18
From:
Posts: 390 Re: Fax help on trixbox
There is a bug in freepbx on fax detection on zaptel line. Refer to http://www.freepbx.org/trac/ticket/1505.

The quick fix is to add the following in extensions_custom.conf:

[ext-did-custom]
exten => fax,1,Goto(ext-fax,in_fax,1)

This works for me.

johnny Posted on: 2006/12/18 11:30
Just popping in

Joined: 2006/8/30
From:
Posts: 10
Online Re: Fax help on trixbox
This is the CLI info upon fax in to my PSTN line, I set the destination as Misc Destinations.

– Starting simple switch on ‘Zap/3-1’
– Executing NoOp(“Zap/3-1”, “Entering from-zaptel with DID == “) in new stack
– Executing Set(“Zap/3-1”, “DID=s”) in new stack
– Executing NoOp(“Zap/3-1”, “DID is now s”) in new stack
– Executing GotoIf(“Zap/3-1”, “1?zapok:notzap”) in new stack
– Goto (from-zaptel,s,7)
– Executing NoOp(“Zap/3-1”, “Is a Zaptel Channel”) in new stack
– Executing Set(“Zap/3-1”, “CHAN=3-1”) in new stack
– Executing Set(“Zap/3-1”, “CHAN=3”) in new stack
– Executing Macro(“Zap/3-1”, “from-zaptel-3|s|1”) in new stack
– Executing NoOp(“Zap/3-1”, “Entering macro-from-zaptel-3 with DID = s”) in new stack
– Executing Set(“Zap/3-1”, “FROM_DID=s”) in new stack
– Executing Set(“Zap/3-1”, "[email protected]”) in new stack
– Executing Answer(“Zap/3-1”, “”) in new stack
– Executing PlayTones(“Zap/3-1”, “ring”) in new stack
– Executing NVFaxDetect(“Zap/3-1”, “6”) in new stack
– Executing Goto(“Zap/3-1”, “ext-miscdests|1|1”) in new stack
– Goto (ext-miscdests,1,1)
== Channel ‘Zap/3-1’ jumping out of macro ‘from-zaptel-3’
– Executing NoOp(“Zap/3-1”, “MiscDest: incoming fax”) in new stack
– Executing Dial(“Zap/3-1”, “Local/666@from-internal|”) in new stack
– Called 666@from-internal
– Executing Goto(“Local/666@from-internal-5290,2”, “ext-fax|in_fax|1”) in new stack
– Goto (ext-fax,in_fax,1)
– Executing StopPlayTones(“Local/666@from-internal-5290,2”, “”) in new stack
– Executing GotoIf(“Local/666@from-internal-5290,2”, “1?3:analog_fax|1”) in new stack
– Goto (ext-fax,in_fax,3)
– Executing Macro(“Local/666@from-internal-5290,2”, “faxreceive”) in new stack
– Executing Set(“Local/666@from-internal-5290,2”,
“FAXFILE=/var/spool/asterisk/fax/1166412060.2.tif”) in new stack
– Executing Set(“Local/666@from-internal-5290,2”,
"[email protected]”) in new stack
– Executing RxFAX(“Local/666@from-internal-5290,2”,
"/var/spool/asterisk/fax/1166412060.2.tif") in new stack
– Local/666@from-internal-5290,1 answered Zap/3-1
== Spawn extension (ext-miscdests, 1, 2) exited non-zero on ‘Zap/3-1’
== Spawn extension (macro-faxreceive, s, 3) exited non-zero on ‘Local/666@from-internal-5290,2’ in macro ‘faxreceive’
== Spawn extension (macro-faxreceive, s, 3) exited non-zero on ‘Local/666@from-internal-5290,2’
– Hungup ‘Zap/3-1’
– Starting simple switch on ‘Zap/3-1’
– Executing NoOp(“Zap/3-1”, “Entering from-zaptel with DID == “) in new stack
– Executing Set(“Zap/3-1”, “DID=s”) in new stack
– Executing NoOp(“Zap/3-1”, “DID is now s”) in new stack
– Executing GotoIf(“Zap/3-1”, “1?zapok:notzap”) in new stack
– Goto (from-zaptel,s,7)
– Executing NoOp(“Zap/3-1”, “Is a Zaptel Channel”) in new stack
– Executing Set(“Zap/3-1”, “CHAN=3-1”) in new stack
– Executing Set(“Zap/3-1”, “CHAN=3”) in new stack
– Executing Macro(“Zap/3-1”, “from-zaptel-3|s|1”) in new stack
– Executing NoOp(“Zap/3-1”, “Entering macro-from-zaptel-3 with DID = s”) in new stack
– Executing Set(“Zap/3-1”, “FROM_DID=s”) in new stack
– Executing Set(“Zap/3-1”, "[email protected]”) in new stack
– Executing Answer(“Zap/3-1”, “”) in new stack
– Executing PlayTones(“Zap/3-1”, “ring”) in new stack
– Executing NVFaxDetect(“Zap/3-1”, “6”) in new stack
– Executing Goto(“Zap/3-1”, “ext-miscdests|1|1”) in new stack
– Goto (ext-miscdests,1,1)
== Channel ‘Zap/3-1’ jumping out of macro ‘from-zaptel-3’
– Executing NoOp(“Zap/3-1”, “MiscDest: incoming fax”) in new stack
– Executing Dial(“Zap/3-1”, “Local/666@from-internal|”) in new stack
– Called 666@from-internal
– Executing Goto(“Local/666@from-internal-ddd9,2”, “ext-fax|in_fax|1”) in new stack
– Goto (ext-fax,in_fax,1)
– Executing StopPlayTones(“Local/666@from-internal-ddd9,2”, “”) in new stack
– Executing GotoIf(“Local/666@from-internal-ddd9,2”, “1?3:analog_fax|1”) in new stack
– Goto (ext-fax,in_fax,3)
– Executing Macro(“Local/666@from-internal-ddd9,2”, “faxreceive”) in new stack
– Executing Set(“Local/666@from-internal-ddd9,2”, “FAXFILE=/var/spool/asterisk/fax/1166412249.5.tif”) in new stack
– Executing Set(“Local/666@from-internal-ddd9,2”, "[email protected]”) in new stack
– Executing RxFAX(“Local/666@from-internal-ddd9,2”, “/var/spool/asterisk/fax/1166412249.5.tif”) in new stack
– Local/666@from-internal-ddd9,1 answered Zap/3-1
== Spawn extension (ext-miscdests, 1, 2) exited non-zero on ‘Zap/3-1’
== Spawn extension (macro-faxreceive, s, 3) exited non-zero on ‘Local/666@from-internal-ddd9,2’ in macro ‘faxreceive’
== Spawn extension (macro-faxreceive, s, 3) exited non-zero on ‘Local/666@from-internal-ddd9,2’
– Hungup ‘Zap/3-1’

And finally nothing received in my emailbox.

Anything wrong with it? I am really a newbie with fax…pls help me.

Thanks Bubba for you valuable suggestions.

For the fax in to my PSTN line, there is no need fax machine connected to the analog port right?

Once I have one fax machine connected to the PSTN line, anything I need to congifure in addition of this in order to receive the fax automatically to this fax machine? like the analog extension I need to create?

For the fax detection type, If what i use is only PSTN line + Fax machine connected to FXS port, I need to set it to zap or NVFax?

Refer to the Zapata.conf, anything else I need to modify?
I set faxdetect=both
rxgain=9.0
txgain=4.0

thanks in advace for any suggestion.

Foip is flaky
use real phone line and fax machine

or if you have IAX trunk with Ulaw and low lag

General Settings
Extension of fax machine Select ‘system’ to have the system receive and email faxes.

Email address used if ‘system’ has been chosen for the fax extension above. to have faxes emailed to:
Email address that faxes appear to come from if ‘system’ has been chosen for the fax extension above.

Inbound routes

Fax Extension Set to ‘system’ to have the system receive and email faxes.

Fax Email Email address is used if ‘system’ has been chosen for the fax extension above.

Fax Detection Type NVFax
Selecting Zaptel or NVFax will immediately answer the call and play ringing tones to the caller for the number of seconds in Pause below.
Use NVFax on SIP or IAX trunks.

Pause after answer 5 or more
The number of seconds we should wait after performing an Immediate Answer. The primary purpose of this is to pause and listen for a fax tone before allowing the call to proceed.: