Freepbx queues and fax

Hi,

I have a TDM411, 1 FXO port, 1 FXS port.
I installed freepbx 2.1.3, configured an extension (1001) for my analog fax on FXS port (zap).
I have an inbound route for my FXO channel (4). Fax extension is “1001”. Fax detection type is “Zaptel”. And Set destination is on a Queue.
But, when I receive a Fax, on Zap channel, it is never sent to 1001.

When I have a look to the configuration generated by freepbx, I can see that I have only 1 extension fax in context from-pstn :

[code:1]server asterisk # grep [^_-]fax, *
extensions.conf:exten => fax,1,Goto(ext-fax,in_fax,1)[/code:1]
But the call never goes in from-pstn.

The call first goes in context from-zaptel, then to from-zaptel-4, FAX_RX is set to 1001, then it goes to ext-queues context, but never it try to detect fax.

Is it a big bug ? Or may I have to change something somewhere ?

I use gentoo, and I have installed :[code:1]net-misc/asterisk-1.2.12.1
net-misc/asterisk-addons-1.2.4
net-misc/asterisk-app_nv_faxdetect-1.0.6
net-misc/asterisk-app_rtxfax-0.0.2_pre25
net-misc/asterisk-sounds-1.0.8
net-misc/zaptel-1.2.9.1[/code:1]

I really need help.

Thank you by advance, and sorry for my poor english.

No idea ?

I have the same problem if the DID goes to a group.
Impossible to get fax detection.
But, if I read the config, I don’t understand how it could work, call from zap never goes in from-pstn, and from-pstn is the only context that mention fax extension.

Had the same problem here with a ring group. Message in Astersik log indicated that “Fax detected, but no fax extension.” Which is exactly what you guys pointed out: it never gets to the “exten => fax” line. The IVR has that line built in, but it is not in ring groups [ext-group] or even in [ext-did], which is where the system will pause if you set up a “Pause after answer” on an inbound route.

Adding code to the extensions_additional.conf is pointless because that is overwritten the next time you save anything from the FreePBX manager.

Finally I realized that I could put the extra code into the extensions_custom.conf, which is NOT overwritten. These lines solved it for ring groups; maybe something similar is possible for queues. Note that the context names match the “include” statements at the beginning of the respective contexts in extensions_additional.conf.

; These next two dial plans trap faxes that otherwise go undetected.

[ext-group-custom]
exten => fax,1,Goto(ext-fax,in_fax,1) ; trap fax tone present while ringing a ring group

[ext-did-custom]
exten => fax,1,Goto(ext-fax,in_fax,1) ; trap fax tone present during Inbound Route Pause After Answer delay

HTH,

Mark

I found a solution similar, adding this same line in the [from-zaptel] context, in extentions.conf.

But, all those solutions prevent (IMHO) to disable fax in FreePBX for certain DIDs.
I think there is surely another way, more “native”, modifying FreePBX to let it make the good conf, may be in [macro-from-zaptel-X] or something like that. But I didn’t find exactly where and how. So, no patch for today :wink:

By the way, when asterisk detects my fax-call, and send it to the analog fax, this one never get the fax. I have “connection” but never reception.

So now, I give up, and want to configure * to send fax => mail.

  • detects the fax, but the pdf received is pretty empty.
    Logs give :

[code:1]Oct 12 19:07:10 DEBUG[22036] app_rxfax.c: ==============================================================================
Oct 12 19:07:10 DEBUG[22036] app_rxfax.c: Pages transferred: 1
Oct 12 19:07:10 DEBUG[22036] app_rxfax.c: Image size: 1728 x 1
Oct 12 19:07:10 DEBUG[22036] app_rxfax.c: Image resolution 7700 x 7700
Oct 12 19:07:10 DEBUG[22036] app_rxfax.c: Transfer Rate: 9600
Oct 12 19:07:10 DEBUG[22036] app_rxfax.c: Bad rows 0
Oct 12 19:07:10 DEBUG[22036] app_rxfax.c: Longest bad row run 0
Oct 12 19:07:10 DEBUG[22036] app_rxfax.c: Compression type 2
Oct 12 19:07:10 DEBUG[22036] app_rxfax.c: Image size (bytes) 0
Oct 12 19:07:10 DEBUG[22036] app_rxfax.c: ==============================================================================
Oct 12 19:07:13 DEBUG[22036] app_rxfax.c: ==============================================================================
Oct 12 19:07:13 DEBUG[22036] app_rxfax.c: Fax successfully received.
Oct 12 19:07:13 DEBUG[22036] app_rxfax.c: Remote station id:
Oct 12 19:07:13 DEBUG[22036] app_rxfax.c: Local station id:
Oct 12 19:07:13 DEBUG[22036] app_rxfax.c: Pages transferred: 1
Oct 12 19:07:13 DEBUG[22036] app_rxfax.c: Image resolution: 7700 x 7700
Oct 12 19:07:13 DEBUG[22036] app_rxfax.c: Transfer Rate: 9600
Oct 12 19:07:13 DEBUG[22036] app_rxfax.c: ==============================================================================[/code:1]
I’m afraid by image size and resolution !

Fax is really something very difficult for me with * :frowning: