Can't Receive Incoming Fax -

bjblackmore

New Member
Joined
Jul 24, 2009
Messages
18
Reaction score
0
Hi,

I'm trying to configure our PBX to send and receive faxes. I've followed the steps in the 'HylaFAX / AvantFax for PIAF' guide (http://pbxinaflash.com/community/threads/hylafax-avantfax-for-piaf-parts-1-4.3645/?t=3645) and can now send faxes, which works well. But on incoming faxes, the sender get an error message saying "The number you dialed is not in service, please check your number and try again".

If I look in the Asterisk CLI (below), I can see the call being answered, then redirecting to the fax extension. So I'm not sure why it's not receiving the fax?

-- Starting simple switch on 'Zap/1-1'
-- Executing [s@from-zaptel:1] NoOp("Zap/1-1", "Entering from-zaptel with DID == ") in new stack
-- Executing [s@from-zaptel:2] Ringing("Zap/1-1", "") in new stack
-- Executing [s@from-zaptel:3] Set("Zap/1-1", "DID=s") in new stack
-- Executing [s@from-zaptel:4] NoOp("Zap/1-1", "DID is now s") in new stack
-- Executing [s@from-zaptel:5] GotoIf("Zap/1-1", "1?zapok:notzap") in new stack
-- Goto (from-zaptel,s,8)
-- Executing [s@from-zaptel:8] NoOp("Zap/1-1", "Is a Zaptel Channel") in new stack
-- Executing [s@from-zaptel:9] Set("Zap/1-1", "CHAN=1-1") in new stack
-- Executing [s@from-zaptel:10] Set("Zap/1-1", "CHAN=1") in new stack
-- Executing [s@from-zaptel:11] Macro("Zap/1-1", "from-zaptel-1|s|1") in new stack
-- Executing [s@from-zaptel:12] NoOp("Zap/1-1", "Returned from Macro from-zaptel-1") in new stack
-- Executing [s@from-zaptel:13] Goto("Zap/1-1", "from-pstn|s|1") in new stack
-- Goto (from-pstn,s,1)
-- Executing [s@from-pstn:1] NoOp("Zap/1-1", "No DID or CID Match") in new stack
-- Executing [s@from-pstn:2] Answer("Zap/1-1", "") in new stack
-- Executing [s@from-pstn:3] Wait("Zap/1-1", "2") in new stack
-- Redirecting Zap/1-1 to fax extension
== Spawn extension (from-pstn, fax, 0) exited non-zero on 'Zap/1-1'
-- Executing [fax@from-pstn:1] Set("Zap/1-1", "__FROM_DID=fax") in new stack
-- Executing [fax@from-pstn:2] NoOp("Zap/1-1", "Received an unknown call with DID set to fax") in new stack
-- Executing [fax@from-pstn:3] Goto("Zap/1-1", "s|a2") in new stack
-- Goto (from-pstn,s,2)
-- Executing [s@from-pstn:2] Answer("Zap/1-1", "") in new stack
-- Executing [s@from-pstn:3] Wait("Zap/1-1", "2") in new stack
-- Executing [s@from-pstn:4] Playback("Zap/1-1", "ss-noservice") in new stack
-- <Zap/1-1> Playing 'ss-noservice' (language 'en')
-- Executing [s@from-pstn:5] SayAlpha("Zap/1-1", "fax") in new stack
-- <Zap/1-1> Playing 'letters/f' (language 'en')
-- <Zap/1-1> Playing 'letters/a' (language 'en')
-- <Zap/1-1> Playing 'letters/x' (language 'en')
-- Executing [s@from-pstn:6] Hangup("Zap/1-1", "") in new stack
== Spawn extension (from-pstn, s, 6) exited non-zero on 'Zap/1-1'
-- Executing [h@from-pstn:1] Hangup("Zap/1-1", "") in new stack
== Spawn extension (from-pstn, h, 1) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1'

I'm running Asterisk 1.4.21.2, Zaptel source 1.4.12.1, FreePBX 2.7.0.2. The FXO card is a genuine X100p single port card.

Any help would be much appreciated!

Ben
 
Last edited by a moderator:
Hi

You do not need or want to do fax detection on the Hylafax / Avantfax install, just send the call to the Fax destination.

Additionally, have you configured your Zap channel DID module in FreePBX?

Joe
 
Hi Joe,

Thanks for the reply.

I hadn't configured the Zap Channel DID. As it's only a single port X100p card, is the following correct:

Channel: 1
Description: Zaptel Analog Line
DID: <my POTS number>

Also, when you say 'don't do fax detection, just send the call to the fax destination' does this mean it can auto detect between a voice call, and fax call? This line is configured as a backup zap trunk, in the event our SIP trunk goes down it will fail over to this POTS line. However, as it doesn't happen very often, it'll mainly be used as our fax line. But in the event it does get used as a fail over, it needs to be able to send normal calls to standard extensions, and fax calls to the fax destination!

Ben
 
Hi

Yes, that is correct - put your DID in the Zap Channel DID field, and then put that DID into Inbound routes, and send it to the Hylafax destination.

I've not done too much work with Zaptel fax detection in the past, as I always recommend that you have a dedicated DID or Fax line, but it should be possible to detect a fax and route accordingly, however, be aware that this takes 2 to 3 rings to do this successfully.

Joe
 
Hi Joe,

Thanks again for the reply.

I've made those changes, and done some testing. With fax detect enabled, and the destination for faxes set to 'Custom Destinations: Fax (Hylafax)', and the standard destination set to extension 101, when a fax comes it, it just seems to go straight to extension 101. So I changed both destination to 'Custom Destinations: Fax (Hylafax)', and tried again, and the fax does come in OK, and displays in the AvantFax inbox, in fact the quality is pretty good!

I just can't see how to get the system to detect between voice & fax on the same inbound Zaptel route!

I don't think our situation justifies having separate fax & DID lines, as we very rarely send or receive faxes, maybe once every couple of months, if setting up a credit account. Most stuff is done via email. And the DID is purely in the event of a failure, which shouldn't be that often.

Ben
 
Hi

It has been a while since I touched zaptel, so do your own research.

As I understand it, you need to use zaptel as the fax detection type when using physical lines, and you may want faxdetect=incoming in your zap config files in /etc/asterisk.

Joe
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top