HylaFAX The world's most advanced open source fax server |
Hi,
I'm using PBX in a Flash, Asterisk 1.4.21.2, FreePBX
2.7.0.2 & HylaFax 4.4.4
I have a single POTS line that we rarely use to
send/receive faxes on (maybe once every couple of months to open credit
accounts). We've now configured this line to act as a fail over to our SIP trunk
- again it rarely goes down, but we want this 'just in case'. Because of this,
it's not worth paying for 2 separate lines, so we're going to use the single
line for both fail over & faxing.
I've installed an X100P FXO card, and configured
Zaptel on the server. I can make and receive calls using the FXO card. I now
want to configure HylaFax to send/receive faxes. I've followed the instructions
in 'HylaFAX / AvantFax for PIAF! - Parts 1-4' (http://www.pbxinaflash.com/forum/showthread.php?t=3645),
and can successfully send faxes. However, when a fax comes it, it just seems to
ring internal extensions. I've set the inbound route (in FreePBX > Setup >
Inbound Routes), to detect faxes, type zaptel, detect time 4, and send to Custom
Destination: Fax (HylaFax), but the internal extensions still seem to ring on
incoming faxes. If I change the default destination for the inbound route from
Ring Group to Custom Destination: Fax (HylaFax), then the fax does go through to
the AvantFax inbox, and is received correctly, the trouble is, normal calls also
go though to the AvantFax inbox, and the caller gets the squeaky beeps &
tones! It seems Asterisk/HylaFax can't distinguish between voice & data
calls?
Can anyone tell me how I can get Asterisk/HylaFax to
receive fax transmissions, and send them to the AvantFax inbox correctly, while
still receiving voice calls, and putting them through to internal
extensions?
Setup so far:
Trunks
------------------------------------
Description: Zap channel 1
Max channels: 1
Zap identifier: 1
------------------------------------
Inbound Routes
------------------------------------
Description: Incoming
DID Number: 0123456789
Detect faxes: Yes
Fax detection type: Zaptel
Fax detection time: 4
Fax destination: Custom Destinations: Fax
(Hylafax)
Set destination
Ring Groups: Sales (600)
------------------------------------
Zap Channel DIDs
------------------------------------
Channel: 1
Description: Zaptel Channel 1
DID: 0123456789
------------------------------------ My config files are as follows:
zapata.conf
------------------------------------
faxdetect=both
;faxdetect=incoming ;faxdetect=outgoing ;faxdetect=no [channels]
language=en context=from-fax signalling=fxs_ls rxwink=300 ;usedistinctiveringdetection=yes channel=1 usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=no echotraining=800 rxgain=0.0 txgain=0.0 group=1 callgroup=1 pickupgroup=1 immediate=no ------------------------------------
zaptel.conf
------------------------------------
# Span 1: WCFXO/0 "Wildcard X100P Board 1" (MASTER)
fxsls=1 # Global data
loadzone=uk
defaultzone=uk ------------------------------------ iax_custom.conf (iax-fax1, iax-fax2, & iax-fax3 are
all the same as iax-fax0, so I've just posted that below)
------------------------------------
[iax-fax0]
type=friend host=127.0.0.1 port=4570 context=from-fax disallow=all allow=ulaw jitterbuffer=no qualify=yes deny=0.0.0.0/0.0.0.0 permit=127.0.0.1/255.255.255.0 ------------------------------------
extensions_custom.conf
------------------------------------
[from-internal-custom]
exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234 exten => 1234,2,Hangup() exten => h,1,Hangup() include => custom-recordme ; extensions can also dial 5678 [custom-count2four]
exten => s,1,SayDigits(1234) exten => s,2,Hangup [custom-recordme]
exten => 5678,1,Wait(2) exten => 5678,2,Record(/tmp/asterisk-recording:gsm) exten => 5678,3,Wait(2) exten => 5678,4,Playback(/tmp/asterisk-recording) exten => 5678,5,Wait(2) exten => 5678,6,Hangup [custom-fax-iaxmodem]
exten => s,1,Dial(IAX2/iax-fax0/${EXTEN}) exten => s,n,Dial(IAX2/iax-fax1/${EXTEN}) exten => s,n,Dial(IAX2/iax-fax2/${EXTEN}) exten => s,n,Dial(IAX2/iax-fax3/${EXTEN}) exten => s,n,Busy exten => s,n,Hangup [from-fax]
exten => fax,1,Answer() exten => fax,2,Wait(3) exten => fax,3,Dial(ZAP/1) exten => fax,4,Hangup ------------------------------------
|