I am encountering a problem when receiving a fax sent from an analog line. I tested a fax from fax zero to destination DID/sip extension and it came in just fine. Is it possible that my generated ext-fax dial plan is the problem? For receiving faxes from an analog line what should I be looking for? Attached are error(s) and success(s).
Fax from Fax Zero to DID
[2011-08-04 15:38:42] VERBOSE[19180] pbx.c: -- Executing [[email protected]:1] Set("SIP/SOME-TRNK-0000075a", "__FROM_DID=5552221313") in new stack
[2011-08-04 15:38:42] VERBOSE[19180] pbx.c: -- Executing [[email protected]:2] Gosub("SIP/SOME-TRNK-0000075a", "app-blacklist-check,s,1") in new stack
[2011-08-04 15:38:42] VERBOSE[19180] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/SOME-TRNK-0000075a", "0?blacklisted") in new stack
[2011-08-04 15:38:42] VERBOSE[19180] pbx.c: -- Executing [[email protected]:2] Set("SIP/SOME-TRNK-0000075a", "CALLED_BLACKLIST=1") in new stack
[2011-08-04 15:38:42] VERBOSE[19180] pbx.c: -- Executing [[email protected]:3] Return("SIP/SOME-TRNK-0000075a", "") in new stack
[2011-08-04 15:38:42] VERBOSE[19180] pbx.c: -- Executing [[email protected]:3] ExecIf("SIP/SOME-TRNK-0000075a", "0 ?Set(CALLERID(name)=8009806858)") in new stack
[2011-08-04 15:38:42] VERBOSE[19180] pbx.c: -- Executing [[email protected]:4] Set("SIP/SOME-TRNK-0000075a", "__CALLINGPRES_SV=allowed_not_screened") in new stack
[2011-08-04 15:38:42] VERBOSE[19180] pbx.c: -- Executing [[email protected]:5] Set("SIP/SOME-TRNK-0000075a", "CALLERPRES()=allowed_not_screened") in new stack
[2011-08-04 15:38:42] VERBOSE[19180] pbx.c: -- Executing [[email protected]:6] Set("SIP/SOME-TRNK-0000075a", "FAX_DEST=ext-fax^4001^1") in new stack
[2011-08-04 15:38:42] VERBOSE[19180] pbx.c: -- Executing [[email protected]:7] Answer("SIP/SOME-TRNK-0000075a", "") in new stack
[2011-08-04 15:38:43] VERBOSE[19180] pbx.c: -- Executing [[email protected]:8] Wait("SIP/SOME-TRNK-0000075a", "4") in new stack
[2011-08-04 15:38:44] VERBOSE[19180] chan_sip.c: == Redirecting 'SIP/SOME-TRNK-0000075a' to fax extension due to CNG detection
[2011-08-04 15:38:44] VERBOSE[19180] pbx.c: == Spawn extension (from-trunk, fax, 1) exited non-zero on 'SIP/SOME-TRNK-0000075a'
[2011-08-04 15:38:44] VERBOSE[19180] pbx.c: -- Executing [[email protected]:1] Goto("SIP/SOME-TRNK-0000075a", "ext-fax,4001,1") in new stack
[2011-08-04 15:38:44] VERBOSE[19180] pbx.c: -- Goto (ext-fax,4001,1)
[2011-08-04 15:38:44] VERBOSE[19180] pbx.c: -- Executing [[email protected]:1] NoOp("SIP/SOME-TRNK-0000075a", "Receiving Fax for: SPC4001 (4001), From: "8009806858" <8009806858>") in new stack
[2011-08-04 15:38:44] VERBOSE[19180] pbx.c: -- Executing [[email protected]:2] Set("SIP/SOME-TRNK-0000075a", "[email protected]") in new stack
[2011-08-04 15:38:44] VERBOSE[19180] pbx.c: -- Executing [[email protected]:3] Goto("SIP/SOME-TRNK-0000075a", "s,receivefax") in new stack
[2011-08-04 15:38:44] VERBOSE[19180] pbx.c: -- Goto (ext-fax,s,3)
[2011-08-04 15:38:44] VERBOSE[19180] pbx.c: -- Executing [[email protected]:3] StopPlayTones("SIP/SOME-TRNK-0000075a", "") in new stack
[2011-08-04 15:38:44] VERBOSE[19180] pbx.c: -- Executing [[email protected]:4] ReceiveFAX("SIP/SOME-TRNK-0000075a", "/var/spool/asterisk/fax/1312497522.2395.tif,f") in new stack
[2011-08-04 15:38:44] VERBOSE[19180] res_fax.c: -- Channel 'SIP/SOME-TRNK-0000075a' receiving FAX '/var/spool/asterisk/fax/1312497522.2395.tif'
[2011-08-04 15:38:55] WARNING[19180] res_fax_spandsp.c: WARNING T.30 ECM carrier not found
[2011-08-04 15:38:56] WARNING[19180] res_fax_spandsp.c: WARNING T.30 ECM carrier not found
[2011-08-04 15:38:56] WARNING[19180] res_fax_spandsp.c: WARNING T.30 ECM carrier not found
[2011-08-04 15:39:19] VERBOSE[19180] pbx.c: == Spawn extension (ext-fax, s, 4) exited non-zero on 'SIP/SOME-TRNK-0000075a'
[2011-08-04 15:39:19] VERBOSE[19180] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/SOME-TRNK-0000075a", "0?failed") in new stack
[2011-08-04 15:39:19] VERBOSE[19180] pbx.c: -- Executing [[email protected]:2] GotoIf("SIP/SOME-TRNK-0000075a", "0?end") in new stack
[2011-08-04 15:39:19] VERBOSE[19180] pbx.c: -- Executing [[email protected]:3] System("SIP/SOME-TRNK-0000075a", "/var/lib/asterisk/bin/fax-process.pl --to "[email protected]" --from "" --dest "5552221313" --subject "New fax from 8009806858 %3C8009806858%3E" --attachment fax_8009806858.pdf --type application/pdf --file /var/spool/asterisk/fax/1312497522.2395.tif") in new stack
[2011-08-04 15:39:20] VERBOSE[19180] pbx.c: -- Executing [[email protected]:4] Macro("SIP/SOME-TRNK-0000075a", "hangupcall,") in new stack
[2011-08-04 15:39:20] VERBOSE[19180] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/SOME-TRNK-0000075a", "1?skiprg") in new stack
[2011-08-04 15:39:20] VERBOSE[19180] pbx.c: -- Goto (macro-hangupcall,s,4)
[2011-08-04 15:39:20] VERBOSE[19180] pbx.c: -- Executing [[email protected]:4] GotoIf("SIP/SOME-TRNK-0000075a", "1?skipblkvm") in new stack
[2011-08-04 15:39:20] VERBOSE[19180] pbx.c: -- Goto (macro-hangupcall,s,7)
[2011-08-04 15:39:20] VERBOSE[19180] pbx.c: -- Executing [[email protected]:7] GotoIf("SIP/SOME-TRNK-0000075a", "1?theend") in new stack
[2011-08-04 15:39:20] VERBOSE[19180] pbx.c: -- Goto (macro-hangupcall,s,9)
[2011-08-04 15:39:20] VERBOSE[19180] pbx.c: -- Executing [[email protected]:9] Hangup("SIP/SOME-TRNK-0000075a", "") in new stack
[2011-08-04 15:39:20] VERBOSE[19180] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/SOME-TRNK-0000075a' in macro 'hangupcall'
[2011-08-04 15:39:20] VERBOSE[19180] pbx.c: == Spawn extension (ext-fax, h, 4) exited non-zero on 'SIP/SOME-TRNK-0000075a'
Above was successful and came through to email just fine as .pdf. Now what happens when sent from an analog line to system.
[2011-08-04 15:47:11] VERBOSE[19251] pbx.c: -- Executing [[email protected]:1] Set("SIP/SOME-TRNK-00000760", "__FROM_DID=5552221313") in new stack
[2011-08-04 15:47:11] VERBOSE[19251] pbx.c: -- Executing [[email protected]:2] Gosub("SIP/SOME-TRNK-00000760", "app-blacklist-check,s,1") in new stack
[2011-08-04 15:47:11] VERBOSE[19251] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/SOME-TRNK-00000760", "0?blacklisted") in new stack
[2011-08-04 15:47:11] VERBOSE[19251] pbx.c: -- Executing [[email protected]:2] Set("SIP/SOME-TRNK-00000760", "CALLED_BLACKLIST=1") in new stack
[2011-08-04 15:47:11] VERBOSE[19251] pbx.c: -- Executing [[email protected]:3] Return("SIP/SOME-TRNK-00000760", "") in new stack
[2011-08-04 15:47:11] VERBOSE[19251] pbx.c: -- Executing [[email protected]:3] ExecIf("SIP/SOME-TRNK-00000760", "0 ?Set(CALLERID(name)=3235555567)") in new stack
[2011-08-04 15:47:11] VERBOSE[19251] pbx.c: -- Executing [[email protected]:4] Set("SIP/SOME-TRNK-00000760", "__CALLINGPRES_SV=allowed_not_screened") in new stack
[2011-08-04 15:47:11] VERBOSE[19251] pbx.c: -- Executing [[email protected]:5] Set("SIP/SOME-TRNK-00000760", "CALLERPRES()=allowed_not_screened") in new stack
[2011-08-04 15:47:11] VERBOSE[19251] pbx.c: -- Executing [[email protected]:6] Set("SIP/SOME-TRNK-00000760", "FAX_DEST=ext-fax^4001^1") in new stack
[2011-08-04 15:47:11] VERBOSE[19251] pbx.c: -- Executing [[email protected]:7] Answer("SIP/SOME-TRNK-00000760", "") in new stack
[2011-08-04 15:47:11] VERBOSE[19251] pbx.c: -- Executing [[email protected]:8] Wait("SIP/SOME-TRNK-00000760", "4") in new stack
[2011-08-04 15:47:16] VERBOSE[19251] chan_sip.c: == Redirecting 'SIP/SOME-TRNK-00000760' to fax extension due to CNG detection
[2011-08-04 15:47:16] VERBOSE[19251] pbx.c: == Spawn extension (from-trunk, fax, 1) exited non-zero on 'SIP/SOME-TRNK-00000760'
[2011-08-04 15:47:16] VERBOSE[19251] pbx.c: -- Executing [[email protected]:1] Goto("SIP/SOME-TRNK-00000760", "ext-fax,4001,1") in new stack
[2011-08-04 15:47:16] VERBOSE[19251] pbx.c: -- Goto (ext-fax,4001,1)
[2011-08-04 15:47:16] VERBOSE[19251] pbx.c: -- Executing [[email protected]:1] NoOp("SIP/SOME-TRNK-00000760", "Receiving Fax for: SPC4001 (4001), From: "3235555567" <3235555567>") in new stack
[2011-08-04 15:47:16] VERBOSE[19251] pbx.c: -- Executing [[email protected]:2] Set("SIP/SOME-TRNK-00000760", "[email protected]") in new stack
[2011-08-04 15:47:16] VERBOSE[19251] pbx.c: -- Executing [[email protected]:3] Goto("SIP/SOME-TRNK-00000760", "s,receivefax") in new stack
[2011-08-04 15:47:16] VERBOSE[19251] pbx.c: -- Goto (ext-fax,s,3)
[2011-08-04 15:47:16] VERBOSE[19251] pbx.c: -- Executing [[email protected]:3] StopPlayTones("SIP/SOME-TRNK-00000760", "") in new stack
[2011-08-04 15:47:16] VERBOSE[19251] pbx.c: -- Executing [[email protected]:4] ReceiveFAX("SIP/SOME-TRNK-00000760", "/var/spool/asterisk/fax/1312498031.2401.tif,f") in new stack
[2011-08-04 15:47:16] VERBOSE[19251] res_fax.c: -- Channel 'SIP/SOME-TRNK-00000760' receiving FAX '/var/spool/asterisk/fax/1312498031.2401.tif'
[2011-08-04 15:47:27] WARNING[19251] res_fax_spandsp.c: WARNING T.30 ECM carrier not found
[2011-08-04 15:47:28] WARNING[19251] res_fax_spandsp.c: WARNING T.30 ECM carrier not found
[2011-08-04 15:47:28] WARNING[19251] res_fax_spandsp.c: WARNING T.30 ECM carrier not found
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Executing [[email protected]:5] ExecIf("SIP/SOME-TRNK-00000760", "1?Set(FAXSTATUS=FAILED LICENSE EXCEEDED)") in new stack
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Executing [[email protected]:6] ExecIf("SIP/SOME-TRNK-00000760", "0?Set(FAXSTATUS="FAILED FAXOPT: error: status: SUCCESS statusstr: OK")") in new stack
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Executing [[email protected]:7] Hangup("SIP/SOME-TRNK-00000760", "") in new stack
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: == Spawn extension (ext-fax, s, 7) exited non-zero on 'SIP/SOME-TRNK-00000760'
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/SOME-TRNK-00000760", "1?failed") in new stack
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Goto (ext-fax,h,103)
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Executing [[email protected]:103] NoOp("SIP/SOME-TRNK-00000760", "FAX FAILED LICENSE EXCEEDED for: [email protected] , From: "3235555567" <32355555567>") in new stack
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Executing [[email protected]:104] Macro("SIP/SOME-TRNK-00000760", "hangupcall,") in new stack
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/SOME-TRNK-00000760", "1?skiprg") in new stack
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Goto (macro-hangupcall,s,4)
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Executing [[email protected]:4] GotoIf("SIP/SOME-TRNK-00000760", "1?skipblkvm") in new stack
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Goto (macro-hangupcall,s,7)
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Executing [[email protected]:7] GotoIf("SIP/SOME-TRNK-00000760", "1?theend") in new stack
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Goto (macro-hangupcall,s,9)
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: -- Executing [[email protected]:9] Hangup("SIP/SOME-TRNK-00000760", "") in new stack
[2011-08-04 15:47:42] VERBOSE[19251] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/SOME-TRNK-00000760' in macro 'hangupcall'
[2011-08-04 15:47:42] VERBOSE[19251] pbx.c: == Spawn extension (ext-fax, h, 104) exited non-zero on 'SIP/SOME-TRNK-00000760'
Here it fails. Dial plan being utilized below.
[ext-fax]
exten => in_fax,1,StopPlaytones ; you must do this or it will play ring sounds over your fax
exten => in_fax,2,GotoIf($[${FAX_RX} = system]?3:analog_fax,1)
exten => in_fax,3,Macro(faxreceive)
exten => in_fax,4,Hangup
exten => analog_fax,1,GotoIf($[${FAX_RX} = disabled]?3:2) ;if fax is disabled, just hang up
exten => analog_fax,2,DBGet(DIAL=DEVICE/${FAX_RX}/dial);
exten => analog_fax,3,Dial(${DIAL},20,d)
exten => analog_fax,4,Hangup
exten => out_fax,1,txfax(${TXFAX_NAME},caller)
exten => out_fax,2,Hangup
exten => h,1,system(/var/lib/asterisk/bin/fax-process.pl --to ${EMAILADDR} --from ${FAX_RX_FROM} --subject "Fax from ${URIENCODE(${CALLERID(number)})} ${URIENCODE(${CALLERID(name)})}" --attachment fax_${URIENCODE(${CALLERID(number)})}.pdf --type application/pdf --file ${FAXFILE});
exten => h,2,system(rm ${FAXFILE})
exten => h,3,Hangup()
If relevant asterisk cli information for FAX license etc.
'fax show license'
Fax Licensing Information
==============================
Free fax licenses: 1
Total licensed ports: 1
Licenses Found:
File: FFA-......
'core show applications like fax'
-= Matching Asterisk Applications =-
ReceiveFAX: Receive a Fax
SendFAX: Send a Fax
-= 2 Applications Matching =-
'fax show settings'
FAX For Asterisk Settings:
ECM: Enabled
Status Events: Off
Minimum Bit Rate: 14400
Maximum Bit Rate: 14400
Modem Modulations Allowed: V17,V27,V29
FAX Technology Modules:
Spandsp (Spandsp FAX Driver) Settings:
DIGIUM (Digium FAX Driver) Settings:
Maximum T.38 Packet Delay: 800
T.38 Session Packet Capture: Off
G.711 Session Audio Capture: Off
I hope this helps with the debugging of the problem. Also is there another forum I should be replicating this information to saturate and receive a better response and fix? Thank you for any help/support/advice in advance.