<br><br><div class="gmail_quote">2011/3/18 Frank Tarczynski <span dir="ltr"><<a href="mailto:ftarz@mindspring.com">ftarz@mindspring.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am running Asterisk 1.6.2.17.2 with a Openvox A400 card with 2FXO/2FXS modules. I'm trying to set-up things to route analog fax calls from a FXO port to an analog fax machine on a FXS port on the same card.<br>
<br>
Outgoing faxes work just fine. But incoming faces are routed to the right DAHDI extension, but the call dropped right as the fax machine rings for the first time. The fax machine works fine when connected directly to the analog telephone line and I see the same behavior if I route the fax call to anyother DAHDI or SIP extension.<br>
<br>
Can anyone help?<br>
<br>
I see this in the asterisk log:<br>
(Send fax out to HP's fax check line)<br>
[2011-03-17 13:40:17.4] VERBOSE[8825] chan_dahdi.c: -- Starting simple switch on 'DAHDI/1-1'<br>
[2011-03-17 13:40:24.0] VERBOSE[8825] pbx.c: -- Executing [18884732963@from-fax-machine:1] Set("DAHDI/1-1", "CALLERID(num)=19195718465") in new stack<br>
[2011-03-17 13:40:24.0] VERBOSE[8825] pbx.c: -- Executing [18884732963@from-fax-machine:2] Dial("DAHDI/1-1", "DAHDI/4/18884732963") in new stack<br>
[2011-03-17 13:40:24.0] VERBOSE[8825] app_dial.c: -- Called 4/18884732963<br>
[2011-03-17 13:40:26.2] VERBOSE[8825] app_dial.c: -- DAHDI/4-1 answered DAHDI/1-1<br>
[2011-03-17 13:40:29.6] NOTICE[8825] chan_dahdi.c: Fax detected, but no fax extension<br>
[2011-03-17 13:41:13.4] VERBOSE[8825] chan_dahdi.c: -- Hungup 'DAHDI/4-1'<br>
[2011-03-17 13:41:13.4] VERBOSE[8825] pbx.c: == Spawn extension (from-fax-machine, 18884732963, 2) exited non-zero on 'DAHDI/1-1'<br>
[2011-03-17 13:41:13.4] VERBOSE[8825] chan_dahdi.c: -- Hungup 'DAHDI/1-1'<br>
<br>
(Incoming fax attempt)<br>
[2011-03-17 13:43:18.3] VERBOSE[8834] chan_dahdi.c: -- Starting simple switch on 'DAHDI/4-1'<br>
[2011-03-17 13:43:19.3] VERBOSE[8834] pbx.c: -- Executing [s@from-pstn-4:1] Wait("DAHDI/4-1", "1") in new stack<br>
[2011-03-17 13:43:20.4] VERBOSE[8834] pbx.c: -- Executing [s@from-pstn-4:2] Verbose("DAHDI/4-1", "CALLERID is 8884732963") in new stack<br>
[2011-03-17 13:43:20.4] VERBOSE[8834] app_verbose.c: CALLERID is 8884732963<br>
[2011-03-17 13:43:20.4] VERBOSE[8834] pbx.c: -- Executing [s@from-pstn-4:3] Verbose("DAHDI/4-1", "Time is 20110317-134320") in new stack<br>
[2011-03-17 13:43:20.4] VERBOSE[8834] app_verbose.c: Time is 20110317-134320<br>
[2011-03-17 13:43:20.4] VERBOSE[8834] pbx.c: -- Executing [s@from-pstn-4:4] Answer("DAHDI/4-1", "") in new stack<br>
[2011-03-17 13:43:20.4] VERBOSE[8834] pbx.c: -- Executing [s@from-pstn-4:5] Ringing("DAHDI/4-1", "") in new stack<br>
[2011-03-17 13:43:20.4] VERBOSE[8834] pbx.c: -- Executing [s@from-pstn-4:6] Wait("DAHDI/4-1", "6") in new stack<br>
[2011-03-17 13:43:21.4] VERBOSE[8834] chan_dahdi.c: -- Redirecting DAHDI/4-1 to fax extension<br>
[2011-03-17 13:43:21.4] VERBOSE[8834] pbx.c: == Spawn extension (from-pstn-4, fax, 1) exited non-zero on 'DAHDI/4-1'<br>
[2011-03-17 13:43:21.4] VERBOSE[8834] pbx.c: -- Executing [fax@from-pstn-4:1] NoOp("DAHDI/4-1", "Fax Detected") in new stack<br>
[2011-03-17 13:43:21.4] VERBOSE[8834] pbx.c: -- Executing [fax@from-pstn-4:2] Dial("DAHDI/4-1", "DAHDI/1,40,tr") in new stack<br>
[2011-03-17 13:43:21.4] VERBOSE[8834] app_dial.c: -- Called 1<br>
[2011-03-17 13:43:21.4] VERBOSE[8834] app_dial.c: -- DAHDI/1-1 is ringing<br>
[2011-03-17 13:43:23.4] VERBOSE[8834] app_dial.c: -- DAHDI/1-1 is ringing<br>
<br>
(Call is routed to fax machine, but then dropped before it can answer)<br>
[2011-03-17 13:43:24.8] VERBOSE[8834] chan_dahdi.c: -- Hungup 'DAHDI/1-1'<br>
[2011-03-17 13:43:24.8] VERBOSE[8834] pbx.c: == Spawn extension (from-pstn-4, fax, 2) exited non-zero on 'DAHDI/4-1'<br>
[2011-03-17 13:43:24.8] VERBOSE[8834] chan_dahdi.c: -- Hungup 'DAHDI/4-1'<br>
<br>
My dialplan looks like this:<br>
[from-pstn-4]<br>
exten => fax,1,NoOp(Fax Detected)<br>
exten => fax,2,Dial(DAHDI/1,,rtT)<br>
exten => fax,3,Congestion()<br>
exten => fax,104,Busy()<br>
exten => s,1,Wait(1)<br>
exten => s,n,Verbose(CALLERID is ${CALLERID(num)})<br>
exten => s,n,Verbose(Time is ${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})<br>
exten => s,n,Answer<br>
exten => s,n,Ringing<br>
exten => s,n,Wait(6)<br>
exten => s,n,Dial(SIP/1000)<br>
exten => s,n,Voicemail(1000,u)<br>
exten => s,n,Hangup<br>
<br>
My chan_dahdi.conf file looks like:<br>
[trunkgroups]<br>
;trunkgroup => 1,1<br>
;trunkgroup => 2,2<br>
;trunkgroup => 3,3<br>
;trunkgroup => 4,4<br>
<br>
;spanmap => 1,1<br>
;spanmap => 2,2<br>
;spanmap => 3,3<br>
;spanmap => 4,4<br>
<br>
[channels]<br>
language=en<br>
context=incoming<br>
toneduration=40<br>
;usedistinctiveringdetection=yes<br>
answeronpolarityswitch=no<br>
usecallerid=yes<br>
cidsignalling=bell<br>
cidstart=ring<br>
;hidecallerid=yes<br>
;hidecalleridname=yes<br>
;waitfordialtone=yes<br>
;mwimonitor=no<br>
;mwilevel=512<br>
;mwimonitornotify=/usr/local/bin/dahdinotify.sh<br>
;mwisendtype=rpas,lrev<br>
callwaiting=yes<br>
;restrictcid=no<br>
usecallingpres=yes<br>
sendcalleridafter = 1<br>
callwaitingcallerid=yes<br>
threewaycalling=yes<br>
transfer=yes<br>
canpark=yes<br>
cancallforward=yes<br>
callreturn=yes<br>
echocancel=yes<br>
echocancelwhenbridged=yes<br>
echotraining=yes<br>
rxgain=2.0<br>
txgain=8.0<br>
group=1<br>
callgroup=1<br>
pickupgroup=1<br>
;immediate=yes<br>
immediate=no<br>
callerid = asreceived<br>
useincomingcalleridondahditransfer = yes<br>
callprogress=no<br>
progzone=us<br>
;faxdetect=both<br>
faxdetect=incoming<br>
;faxdetect=outgoing<br>
;faxdetect=no<br>
faxbuffers=>6,full<br>
;callerid="XXX"<1919XXXXXXX><br>
;channel => 3<br>
;callerid="XXX"<1919XXXXXXX><br>
;channel => 4<br>
#include dahdi-channels.conf<br>
<br>
My dahdi-channels.conf file look like:<br>
; Autogenerated by /usr/sbin/dahdi_genconf on Tue Nov 30 19:08:07 2010<br>
; If you edit this file and execute /usr/sbin/dahdi_genconf again,<br>
; your manual changes will be LOST.<br>
; Dahdi Channels Configurations (chan_dahdi.conf)<br>
;<br>
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended<br>
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings<br>
;<br>
<br>
; Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER)<br>
;;; line="1 WCTDM/4/0 FXOKS (In use) (SWEC: MG2)"<br>
signalling=fxo_ks<br>
callerid="Channel 1" <4001><br>
mailbox=5000<br>
group=5<br>
context=from-fax-machine<br>
channel => 1<br>
callerid=<br>
mailbox=<br>
group=<br>
context=default<br>
<br>
;;; line="2 WCTDM/4/1 FXOKS (In use) (SWEC: MG2)"<br>
signalling=fxo_ks<br>
callerid="Channel 2" <4002><br>
mailbox=6000<br>
group=5<br>
context=from-internal<br>
channel => 2<br>
callerid=<br>
mailbox=<br>
group=<br>
context=default<br>
<br>
;;; line="3 WCTDM/4/2 FXSKS (In use) (SWEC: MG2)"<br>
signalling=fxs_ks<br>
callerid=asreceived<br>
group=0<br>
context=from-pstn-3<br>
channel => 3<br>
callerid=<br>
group=<br>
context=default<br>
<br>
;;; line="4 WCTDM/4/3 FXSKS (In use) (SWEC: MG2)"<br>
signalling=fxs_ks<br>
callerid=asreceived<br>
group=0<br>
context=from-pstn-4<br>
channel => 4<br>
callerid=<br>
group=<br>
context=default<br>
<br>
<br>
<br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br>What happens when you call the fax machine from a cell phone, for instance ?<br>Can you ear the fax machine answering ?<br>