[asterisk-users] Detecting incoming faxes and forwarding to phone fax machine

Jeremy Winder jwinder at logicalsi.com
Tue Jan 19 10:46:38 CST 2010


I'm having a problem receiving incoming faxes and I'm hoping someone
here can help me out.

My system is a PBX in a Flash with one dahdi card for my incoming analog
lines and another dahdi card for my analog devices (fax and modem).

My dahdi-channels.conf file looks like:

; Autogenerated by /usr/sbin/dahdi_genconf on Tue Jun 23 14:56:24 2009
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is
intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global
settings
;

; Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER) 

; Span 2: WCTDM/1 "Wildcard TDM800P Board 2" 
;;; line="5 WCTDM/1/0 FXSKS"
signalling=fxs_ks
callerid=asreceived
faxdetect=incoming
group=0
context=from-zaptel
channel => 5
callerid=
group=
context=default
;AMPLABEL:Channel 5 - Button 1
;AMPWILDCARDLABEL(6):Trunks

;;; line="6 WCTDM/1/1 FXSKS"
signalling=fxs_ks
callerid=asreceived
faxdetect=incoming
group=0
context=from-zaptel
channel => 6
callerid=
group=
context=default

;;; line="7 WCTDM/1/2 FXSKS"
signalling=fxs_ks
callerid=asreceived
faxdetect=incoming
group=0
context=from-zaptel
channel => 7
callerid=
group=
context=default

;;; line="8 WCTDM/1/3 FXSKS"
signalling=fxs_ks
callerid=asreceived
faxdetect=incoming
group=0
context=from-zaptel
channel => 8
callerid=
group=
context=default

;;; line="9 WCTDM/1/4 FXSKS"
signalling=fxs_ks
callerid=asreceived
faxdetect=incoming
group=0
context=from-zaptel
channel => 9
callerid=
group=
context=default

;;; line="10 WCTDM/1/5 FXSKS"
signalling=fxs_ks
callerid=asreceived
faxdetect=incoming
group=0
context=from-zaptel
channel => 10
callerid=
group=
context=default

In FreePBX under Inbound Routes I have the following configured:
Fax Extension: 117
Fax Detection Type: Zaptel
Pause After Answer: 5

In FreePBX under General Settings I have the following configured:
Extension for fax machine for receiving faxes: 117

I can call into our IVR and and enter extension 117 and get the fax
machine. So I know the extension is working. However, when someone sends
me a fax I see the following in the logs:

[2010-01-19 10:29:25] VERBOSE[14688] app_macro.c:   == Channel
'DAHDI/7-1' jumping out of macro 'from-zaptel-7'
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Executing
[7063277795 at from-trunk:1] NoOp ("DAHDI/7-1", "Catch-All DID Match -
Found 7063277795 - You probably want a DID for this.") in new stack
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Executing
[7063277795 at from-trunk:2]Goto("DAHDI/7-1", "ext-did,s,1") in new stack
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Goto (ext-did,s,1)
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Executing
[s at ext-did:1] Set("DAHDI/7-1", "__FROM_DID=s") in new stack
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Executing
[s at ext-did:2] ExecIf("DAHDI/7-1", "1 ?Set(CALLERID(name)=8009806858)) in
new stack
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Executing
[s at ext-did:3] Set("DAHDI/7-1", "FAX_RX=117") in new stack
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Executing
[s at ext-did:4] Set("DAHDI/7-1", "FAX_RX_EMAIL=jwinder at logicalsi.com") in
new stack
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Executing
[s at ext-did:5] Answer("DAHDI/7-1", "") in new stack
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Executing
[s at ext-did:6] Wait("DAHDI/7-1", "5") in new stack
[2010-01-19 10:29:26] VERBOSE[14688] chan_dahdi.c:     -- Redirecting
DAHDI/7-1 to fax extension
[2010-01-19 10:29:26] VERBOSE[14688] pbx.c:   == Spawn extension
(ext-did, fax, 1) exited non-zero on 'DAHDI/7-1'
[2010-01-19 10:29:26] VERBOSE[14688] pbx.c:     -- Executing
[fax at ext-did:1] Goto("DAHDI/7-1", "ext-fax,in_fax,1") in new stack
[2010-01-19 10:29:26] VERBOSE[14688] pbx.c:     -- Goto
(ext-fax,in_fax,1)
[2010-01-19 10:29:26] VERBOSE[14688] pbx.c:     -- Executing
[in_fax at ext-fax:1] StopPlayTones("DAHDI/7-1", "") in new stack
[2010-01-19 10:29:26] VERBOSE[14688] pbx.c:     -- Executing
[in_fax at ext-fax:2] GotoIf("DAHDI/7-1", "0?3:analog_fax,1") in new stack
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Executing
[s at ext-did:2] ExecIf("DAHDI/7-1", "1 ?Set(CALLERID(name)=8009806858)")
in new stack
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Executing
[s at ext-did:3] Set("DAHDI/7-1", "FAX_RX=117") in new stack
[2010-01-19 10:29:25] VERBOSE[14688] pbx.c:     -- Executing
[s at ext-did:4] Set("DAHDI/7-1", "FAX_RX_ZAP/1,20,d") in new stack ZAP'
e 'ZAP' (cause 66 - Channel not implemented)
 at this time (1:0/0/1)
") in new stack
g_fax, 4) exited non-zero on 'DAHDI/7-1'
e application/pdf --file ") in new stack
") in new stack
 exited non-zero on 'DAHDI/7-1'
[2010-01-19 10:29:27] VERBOSE[14688] chan_dahdi.c:     -- Hungup
'DAHDI/7-1'

To my untrained eye, I would say this stems from the ZAPTel becoming
DAHDI problem. But I'm clueless how to fix it.

Any help will be greatly appreciated,

Jeremy


























More information about the asterisk-users mailing list