<br><br><div class="gmail_quote">2011/3/18 Frank Tarczynski <span dir="ltr">&lt;<a href="mailto:ftarz@mindspring.com">ftarz@mindspring.com</a>&gt;</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&#39;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&#39;s fax check line)<br>
[2011-03-17 13:40:17.4] VERBOSE[8825] chan_dahdi.c:     -- Starting simple switch on &#39;DAHDI/1-1&#39;<br>
[2011-03-17 13:40:24.0] VERBOSE[8825] pbx.c:     -- Executing [18884732963@from-fax-machine:1] Set(&quot;DAHDI/1-1&quot;, &quot;CALLERID(num)=19195718465&quot;) in new stack<br>
[2011-03-17 13:40:24.0] VERBOSE[8825] pbx.c:     -- Executing [18884732963@from-fax-machine:2] Dial(&quot;DAHDI/1-1&quot;, &quot;DAHDI/4/18884732963&quot;) 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 &#39;DAHDI/4-1&#39;<br>
[2011-03-17 13:41:13.4] VERBOSE[8825] pbx.c:   == Spawn extension (from-fax-machine, 18884732963, 2) exited non-zero on &#39;DAHDI/1-1&#39;<br>
[2011-03-17 13:41:13.4] VERBOSE[8825] chan_dahdi.c:     -- Hungup &#39;DAHDI/1-1&#39;<br>
<br>
(Incoming fax attempt)<br>
[2011-03-17 13:43:18.3] VERBOSE[8834] chan_dahdi.c:     -- Starting simple switch on &#39;DAHDI/4-1&#39;<br>
[2011-03-17 13:43:19.3] VERBOSE[8834] pbx.c:     -- Executing [s@from-pstn-4:1] Wait(&quot;DAHDI/4-1&quot;, &quot;1&quot;) in new stack<br>
[2011-03-17 13:43:20.4] VERBOSE[8834] pbx.c:     -- Executing [s@from-pstn-4:2] Verbose(&quot;DAHDI/4-1&quot;, &quot;CALLERID is 8884732963&quot;) 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(&quot;DAHDI/4-1&quot;, &quot;Time is 20110317-134320&quot;) 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(&quot;DAHDI/4-1&quot;, &quot;&quot;) in new stack<br>
[2011-03-17 13:43:20.4] VERBOSE[8834] pbx.c:     -- Executing [s@from-pstn-4:5] Ringing(&quot;DAHDI/4-1&quot;, &quot;&quot;) in new stack<br>
[2011-03-17 13:43:20.4] VERBOSE[8834] pbx.c:     -- Executing [s@from-pstn-4:6] Wait(&quot;DAHDI/4-1&quot;, &quot;6&quot;) 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 &#39;DAHDI/4-1&#39;<br>
[2011-03-17 13:43:21.4] VERBOSE[8834] pbx.c:     -- Executing [fax@from-pstn-4:1] NoOp(&quot;DAHDI/4-1&quot;, &quot;Fax Detected&quot;) in new stack<br>
[2011-03-17 13:43:21.4] VERBOSE[8834] pbx.c:     -- Executing [fax@from-pstn-4:2] Dial(&quot;DAHDI/4-1&quot;, &quot;DAHDI/1,40,tr&quot;) 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 &#39;DAHDI/1-1&#39;<br>
[2011-03-17 13:43:24.8] VERBOSE[8834] pbx.c:   == Spawn extension (from-pstn-4, fax, 2) exited non-zero on &#39;DAHDI/4-1&#39;<br>
[2011-03-17 13:43:24.8] VERBOSE[8834] chan_dahdi.c:     -- Hungup &#39;DAHDI/4-1&#39;<br>
<br>
My dialplan looks like this:<br>
[from-pstn-4]<br>
exten =&gt; fax,1,NoOp(Fax Detected)<br>
exten =&gt; fax,2,Dial(DAHDI/1,,rtT)<br>
exten =&gt; fax,3,Congestion()<br>
exten =&gt; fax,104,Busy()<br>
exten =&gt; s,1,Wait(1)<br>
exten =&gt; s,n,Verbose(CALLERID is ${CALLERID(num)})<br>
exten =&gt; s,n,Verbose(Time is ${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})<br>
exten =&gt; s,n,Answer<br>
exten =&gt; s,n,Ringing<br>
exten =&gt; s,n,Wait(6)<br>
exten =&gt; s,n,Dial(SIP/1000)<br>
exten =&gt; s,n,Voicemail(1000,u)<br>
exten =&gt; s,n,Hangup<br>
<br>
My chan_dahdi.conf file looks like:<br>
[trunkgroups]<br>
;trunkgroup =&gt; 1,1<br>
;trunkgroup =&gt; 2,2<br>
;trunkgroup =&gt; 3,3<br>
;trunkgroup =&gt; 4,4<br>
<br>
;spanmap =&gt; 1,1<br>
;spanmap =&gt; 2,2<br>
;spanmap =&gt; 3,3<br>
;spanmap =&gt; 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=&gt;6,full<br>
;callerid=&quot;XXX&quot;&lt;1919XXXXXXX&gt;<br>
;channel =&gt; 3<br>
;callerid=&quot;XXX&quot;&lt;1919XXXXXXX&gt;<br>
;channel =&gt; 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 &quot;Wildcard TDM400P REV E/F Board 5&quot; (MASTER)<br>
;;; line=&quot;1 WCTDM/4/0 FXOKS  (In use) (SWEC: MG2)&quot;<br>
signalling=fxo_ks<br>
callerid=&quot;Channel 1&quot; &lt;4001&gt;<br>
mailbox=5000<br>
group=5<br>
context=from-fax-machine<br>
channel =&gt; 1<br>
callerid=<br>
mailbox=<br>
group=<br>
context=default<br>
<br>
;;; line=&quot;2 WCTDM/4/1 FXOKS  (In use) (SWEC: MG2)&quot;<br>
signalling=fxo_ks<br>
callerid=&quot;Channel 2&quot; &lt;4002&gt;<br>
mailbox=6000<br>
group=5<br>
context=from-internal<br>
channel =&gt; 2<br>
callerid=<br>
mailbox=<br>
group=<br>
context=default<br>
<br>
;;; line=&quot;3 WCTDM/4/2 FXSKS  (In use) (SWEC: MG2)&quot;<br>
signalling=fxs_ks<br>
callerid=asreceived<br>
group=0<br>
context=from-pstn-3<br>
channel =&gt; 3<br>
callerid=<br>
group=<br>
context=default<br>
<br>
;;; line=&quot;4 WCTDM/4/3 FXSKS  (In use) (SWEC: MG2)&quot;<br>
signalling=fxs_ks<br>
callerid=asreceived<br>
group=0<br>
context=from-pstn-4<br>
channel =&gt; 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>