I’m trying to configure incoming fax-to-email in FreePBX, but I’m running into some issues.
What I’m trying to do is allow faxes that are sent to an incoming DID to be forwarded to the email entered into a users extension. I’ve set up everything using the wiki as a guide.
Fax detection is set to Dahdi (I’ve configured the config file correctly.)
From what I can tell from the logs, the pbx is detecting the faxes and accepting them, but not forwarding them to email.
Here is the asterik log for the incoming fax.
[2017-10-09 11:16:47] VERBOSE[2531][C-00002b64] sig_pri.c: – Accepting call from ‘6182302579’ to ‘9257065564’ on channel 0/5, span 1
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:1] Set(“DAHDI/i1/6182302579-165f”, “__DIRECTION=INBOUND”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:2] Gosub(“DAHDI/i1/6182302579-165f”, “sub-record-check,s,1(in,9257065564,dontcare)”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [in@sub-record-check:1] NoOp(“DAHDI/i1/6182302579-165f”, “Inbound Recording Check to 9257065564”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [in@sub-record-check:4] Gosub(“DAHDI/i1/6182302579-165f”, “recordcheck,1(dontcare,in,9257065564)”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:3] Gosub(“DAHDI/i1/6182302579-165f”, “app-blacklist-check,s,1()”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:4] Set(“DAHDI/i1/6182302579-165f”, “__FROM_DID=9257065564”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:5] Set(“DAHDI/i1/6182302579-165f”, “CDR(did)=9257065564”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:6] ExecIf(“DAHDI/i1/6182302579-165f”, “0 ?Set(CALLERID(name)=6182302579)”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:7] Set(“DAHDI/i1/6182302579-165f”, “__MOHCLASS=”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:8] Set(“DAHDI/i1/6182302579-165f”, “__REVERSAL_REJECT=FALSE”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:9] GotoIf(“DAHDI/i1/6182302579-165f”, “1?post-reverse-charge”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Goto (from-digital,9257065564,11)
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:11] NoOp(“DAHDI/i1/6182302579-165f”, “”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:12] Set(“DAHDI/i1/6182302579-165f”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:13] Set(“DAHDI/i1/6182302579-165f”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:14] Set(“DAHDI/i1/6182302579-165f”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:15] Set(“DAHDI/i1/6182302579-165f”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:16] NoOp(“DAHDI/i1/6182302579-165f”, “CallerID Entry Point”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:17] Set(“DAHDI/i1/6182302579-165f”, “FAX_DEST=ext-fax^67^1”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:18] Set(“DAHDI/i1/6182302579-165f”, “FAXOPT(faxdetect)=yes”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:19] Answer(“DAHDI/i1/6182302579-165f”, “”) in new stack
[2017-10-09 11:16:47] VERBOSE[27399][C-00002b64] pbx.c: – Executing [9257065564@from-digital:20] Wait(“DAHDI/i1/6182302579-165f”, “6”) in new stack
[2017-10-09 11:17:15] VERBOSE[27399][C-00002b64] pbx.c: – Executing [h@ext-fax:4] System(“DAHDI/i1/6182302579-165f”, “/var/lib/asterisk/bin/fax2mail.php --remotestationid “FaxZero.com” --user “67” --dest “9257065564” --callerid “IlVUIFNVUFBPUlQiIDw2MTgyMzAyNTc5Pg==” --file /var/spool/asterisk/fax/1507573007.26008.tif --exten “USER_HERE (67)” --delete “true” --attachformat “””) in new stack