Imcoming fax failed

Hi, I tried to configure incoming fax detection on FreePBX Distro 4.2 but it dose not work and shown error as below: [2013-11-04 17:00:55] VERBOSE[2689][C-00000103] pbx.c: -- Executing [s@ext-fax:2] NoOp("SIP/537-00000139", "Receiving Fax for:[email protected] , From: "xxxxx" ") in new stack [2013-11-04 17:00:55] VERBOSE[2689][C-00000103] pbx.c: -- Executing [s@ext-fax:3] StopPlayTones("SIP/537-00000139", "") in new stack [2013-11-04 17:00:55] VERBOSE[2689][C-00000103] pbx.c: -- Executing [s@ext-fax:4] ReceiveFAX("SIP/537-00000139", "/var/spool/asterisk/fax/1383559255.714.tif,f") in new stack [2013-11-04 17:00:55] VERBOSE[2689][C-00000103] res_fax.c: -- Channel 'SIP/537-00000139' receiving FAX '/var/spool/asterisk/fax/1383559255.714.tif' [2013-11-04 17:00:58] VERBOSE[2689][C-00000103] netsock2.c: == Using UDPTL TOS bits 184 [2013-11-04 17:00:58] VERBOSE[2689][C-00000103] netsock2.c: == Using UDPTL CoS mark 5 [2013-11-04 17:00:58] WARNING[2689][C-00000103] res_fax.c: channel 'SIP/537-00000139' refused to negotiate T.38 [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: -- Executing [s@ext-fax:5] ExecIf("SIP/537-00000139", "1?Set(FAXSTATUS="FAILED: error: Disconnected after permitted retries statusstr: Disconnected after permitted retries")") in new stack [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: -- Executing [s@ext-fax:6] Hangup("SIP/537-00000139", "") in new stack [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: == Spawn extension (ext-fax, s, 6) exited non-zero on 'SIP/537-00000139' [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: -- Executing [h@ext-fax:1] GotoIf("SIP/537-00000139", "1?failed") in new stack [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: -- Goto (ext-fax,h,103) [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: -- Executing [h@ext-fax:103] NoOp("SIP/537-00000139", "FAX "FAILED: error: Disconnected after permitted retries statusstr: Disconnected after permitted retries" for: [email protected] , From: "xxx" ") in new stack [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: -- Executing [h@ext-fax:104] Macro("SIP/537-00000139", "hangupcall,") in new stack [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/537-00000139", "1?theend") in new stack [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: -- Goto (macro-hangupcall,s,3) [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: -- Executing [s@macro-hangupcall:3] ExecIf("SIP/537-00000139", "0?Set(CDR(recordingfile)=)") in new stack [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: -- Executing [s@macro-hangupcall:4] Hangup("SIP/537-00000139", "") in new stack [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/537-00000139' in macro 'hangupcall' [2013-11-04 17:01:20] VERBOSE[2689][C-00000103] pbx.c: == Spawn extension (ext-fax, h, 104) exited non-zero on 'SIP/537-00000139' for the configuration details are 1. incoming route Fax Detect: Detect Faxes: Yes Fax Detection type: Dahdi Fax Detection Time: 4 Fax Destination: Fax Recipient 537 2. Extension Fax: Enabled: checked Fax Email: [email protected] 3. Fax configure Fax Transport Options: Error Correction Mode: yes Maximum transfer rate: 14400 Minimum transfer rate: 9600

Did you set up a Virtual Extension and it set to accept a fax?

For the incoming route set Detect Faxes to = No and set the destination to your virtual extension and see if you can get it to go.

[2013-11-04 17:00:58] WARNING[2689][C-00000103] res_fax.c: channel ‘SIP/537-00000139’ refused to negotiate T.38

Have you properly installed a license?

dicko,

Do I need to install a license ?
I think it no need because I am using res_fax and res_fax_spandsp.
For addition question is what is T.38 used for ? Is it used for fax detect=SIP , right ?

t38 is a way of sending faxes over a network that can’t support realtime faxes, The traditional t30 will require an impeccable SIP/IAX voip network or simple analog or digital POTS lines for you to have half a chance :slight_smile:

No, you don’t need a license to “pass through” t38, but if you don’t pass it through to a t38 aware endpoint you will need one or more licenses if you rely on Asterisk, there is a license free t38modem that works well with hylafax but it is not for the faint of heart.

jay69,

Why we need to Virtual Extension for accept a fax ?
Can you give me more information about how to set virtual extension for accept a fax ?

Dicko, the distro includes SpanDSP. It emulates a fax machine.

Dose anyone have a guide or how to for set up incoming fax to a sip extension ?

Actually it emulates a T30 fax machine (and very well) , the T38 side needs a “connector”, to get to it.

(and t38modem does both :slight_smile: )

(albeit with the help of spandsp)

Did you check the wiki

Can you give me a wiki link address ?

I have some update from my tested.
It works if I set Fax Detect=no and Set Destination = Fax Recipient: extension.
So I wonder why Fax Detect dose not work ? I need it works because my office needs 1 incoming DID for both phone and fax.
Any idea ?