Inbound Fax not working

Brand new to Linux and FreePBX so bear with me. I’ve gotten my system 90% there, just need faxing for that last 10%. I do have fax pro, and can send faxes from it externally fine, but when I try to send inbound the sender gets a success but nothing shows up in UCP or email. Our PSTN is a PRI on a A101DE. FreePBX 13.0.182 Asterisk 13.9.1

The user extension is a chan_sip @ 5415 with an inbound route setup to catch a DID and send I to the destination Fax Recip > 5415. I’m not using the fax detection tab on the inbound routes since the destination is the Fax Recip.

In User Management > Fax I have it set to enabled, pdf, store locally yes.

When I call the DID I get fax tones, but when I send the sender gets a success, and I see this in the log.

[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx.c: Executing [7265102@from-digital:17] Goto(“DAHDI/i1/9407263276-12”, “ext-fax,2,1”) in new stack
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx_builtins.c: Goto (ext-fax,2,1)
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx.c: Executing [2@ext-fax:1] Set(“DAHDI/i1/9407263276-12”, “FAX_FOR=Brad Hieb (2)”) in new stack
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx.c: Executing [2@ext-fax:2] NoOp(“DAHDI/i1/9407263276-12”, “Receiving Fax for: Brad Hieb (2), From: “9407263276” <9407263276>”) in new stack
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx.c: Executing [2@ext-fax:3] Set(“DAHDI/i1/9407263276-12”, “FAX_RX_USER=2”) in new stack
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx.c: Executing [2@ext-fax:4] Set(“DAHDI/i1/9407263276-12”, “FAX_RX_EMAIL_LEN=21”) in new stack
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx.c: Executing [2@ext-fax:5] ExecIf(“DAHDI/i1/9407263276-12”, “1?Set(ARIUSER=2)”) in new stack
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx.c: Executing [2@ext-fax:6] ExecIf(“DAHDI/i1/9407263276-12”, “1?AGI(fax.agi)”) in new stack
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/fax.agi
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] res_agi.c: <DAHDI/i1/9407263276-12>AGI Script fax.agi completed, returning 0
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx.c: Executing [2@ext-fax:7] Goto(“DAHDI/i1/9407263276-12”, “s,receivefax”) in new stack
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx_builtins.c: Goto (ext-fax,s,3)
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx.c: Executing [s@ext-fax:3] StopPlayTones(“DAHDI/i1/9407263276-12”, “”) in new stack
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] pbx.c: Executing [s@ext-fax:4] ReceiveFAX(“DAHDI/i1/9407263276-12”, “/var/spool/asterisk/fax/1473439645.69.tif,f”) in new stack
[2016-09-09 11:47:25] VERBOSE[22944][C-00000018] res_fax.c: Channel ‘DAHDI/i1/9407263276-12’ receiving FAX ‘/var/spool/asterisk/fax/1473439645.69.tif’
[2016-09-09 11:47:43] WARNING[22944][C-00000018] res_fax_spandsp.c: WARNING T.30 Non-ECM carrier not found
[2016-09-09 11:47:58] VERBOSE[22944][C-00000018] pbx.c: Spawn extension (ext-fax, s, 4) exited non-zero on ‘DAHDI/i1/9407263276-12’
[2016-09-09 11:47:58] VERBOSE[22944][C-00000018] pbx.c: Executing [h@ext-fax:1] GotoIf(“DAHDI/i1/9407263276-12”, “0?failed”) in new stack
[2016-09-09 11:47:58] VERBOSE[22944][C-00000018] pbx.c: Executing [h@ext-fax:2] Set(“DAHDI/i1/9407263276-12”, “DELETE_AFTER_SEND=false”) in new stack
[2016-09-09 11:47:58] VERBOSE[22944][C-00000018] pbx.c: Executing [h@ext-fax:3] GotoIf(“DAHDI/i1/9407263276-12”, “0?noemail”) in new stack
[2016-09-09 11:47:58] VERBOSE[22944][C-00000018] pbx.c: Executing [h@ext-fax:4] System(“DAHDI/i1/9407263276-12”, “/var/lib/asterisk/bin/fax2mail.php --remotestationid “” --user “2” --dest “7265102” --callerid “IkFMQU4gUklUQ0hFWSBJTiIgPDk0MDcyNjMyNzY+” --file /var/spool/asterisk/fax/1473439645.69.tif --exten “Brad Hieb (2)” --delete “false” --attachformat “””) in new stack
[2016-09-09 11:47:58] VERBOSE[22944][C-00000018] pbx.c: Executing [h@ext-fax:5] ExecIf(“DAHDI/i1/9407263276-12”, “1?system(/var/lib/asterisk/bin/faxpro_helper.php --action=“receive” --user=“2” --dest=“7265102” --callerid=“IkFMQU4gUklUQ0hFWSBJTiIgPDk0MDcyNjMyNzY+” --file=”/var/spool/asterisk/fax/1473439645.69.tif" --direction=“in” --status=“OK”)") in new stack
[2016-09-09 11:47:58] VERBOSE[22944][C-00000018] pbx.c: Executing [h@ext-fax:6] Macro(“DAHDI/i1/9407263276-12”, “hangupcall,”) in new stack
[2016-09-09 11:47:58] VERBOSE[22944][C-00000018] pbx.c: Spawn extension (ext-fax, h, 6) exited non-zero on ‘DAHDI/i1/9407263276-12’

Ok that is weird now it is working, maybe the fax updates today fixed it. I’ll try a larger fax to see if it is ok.

1 Like

Ok just send and received a 16 page fax, so I guess there must have been a bug fix or something. Mods can delete this thread.

Now off to getting physical fax machines going via audiocodes mp114 fxs, wish me luck.