<span style="font-family: courier new,monospace;">Hi,</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">All I just want to be able to detect the fax signail while doing an outbout call taking advance of the out_dialout feature of asterisk. So for to have a clear image on how i am doing it.</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">I have my .call that I move the /var/spool/asterisk/ouotgoing like:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">(numbers were changed to preserve privacy)</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Channel: Local/99999999@dial_out/n</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">CallerID: Fax Test &lt;99999999&gt;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">MaxRetries: 0</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">RetryTime: 300</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">WaitTime: 60</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Archive: yes</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Context: dial_go</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Extension: s</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Priority: 1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Set: Q_NAME=511</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Set: ANI=99999999</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">extension.conf</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[dial_out]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">exten =&gt; _X.,1,Macro(recordcall,${Q_NAME},${CALLERID(number)})  ;; this is a custom macro that I created for personal recording puporse</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">exten =&gt; _X.,n,Dial(DAHDI/g1/${EXTEN:0})  ;; this is en sime truck dial macro that dial into the SPANS -&gt; I know it is OK for sure</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">exten =&gt; _X.,n,Hangup()</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[dial_go]</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exten =&gt; s,1,Answer</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">exten =&gt; s,n,Wait(2)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exten =&gt; s,n,Goto(${Q_NAME},1)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">; If none of above happen, send to queue</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exten =&gt; _s-.,1,Goto(${Q_NAME},1)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exten =&gt; fax,1,QueueLog(${Q_NAME}|${UNIQUEID}|NONE|FAXDETECTED|${ANI})</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">exten =&gt; fax,n,Hangup()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">exten =&gt; _512,1,Goto(voicemenu-custom-1,s,1)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">exten =&gt; _5[01]X,1,Queue(${EXTEN}||||${Q_TIMEOUT})</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exten =&gt; _5[01]X,n,Hangup()</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">chan_dahdi.conf</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">faxdetect = incoming</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">I have successfully detected and Answer Machine with AMD application, but as I experience some dificulties to detect fax I have removed on AMD structure form the dial plan, only to focus on fax detection. Here is the asterisk console output when placing a call to fax destination.</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Attempting call on Local/9990909@dial_out/n for s@dial_go:1 (Retry 1)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Executing [9990909@dial_out:1] Macro(&quot;Local/9990909@dial_out-dda8,2&quot;, &quot;recordcall|511|9990909&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Executing [s@macro-recordcall:1] GotoIf(&quot;Local/9990909@dial_out-dda8,2&quot;, &quot;1?5:2&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Goto (macro-recordcall,s,5)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Executing [s@macro-recordcall:5] Set(&quot;Local/9990909@dial_out-dda8,2&quot;, &quot;FILEREC=2010-01-30-17-49-14-SRC-511-DST-9990909&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Executing [s@macro-recordcall:6] Set(&quot;Local/9990909@dial_out-dda8,2&quot;, &quot;FILE_PATH=2010/01/30/2010-01-30-17-49-14-SRC-511-DST-9990909&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Executing [s@macro-recordcall:7] Set(&quot;Local/9990909@dial_out-dda8,2&quot;, &quot;CDR(userfield)=2010-01-30-17-49-14-SRC-511-DST-9990909.wav&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Executing [s@macro-recordcall:8] MixMonitor(&quot;Local/9990909@dial_out-dda8,2&quot;, &quot;/opt/rec/2010/01/30/2010-01-30-17-49-14-SRC-511-DST-9990909.wav|b&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Executing [s@macro-recordcall:9] MacroExit(&quot;Local/9990909@dial_out-dda8,2&quot;, &quot;&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Executing [9990909@dial_out:2] Macro(&quot;Local/9990909@dial_out-dda8,2&quot;, &quot;dialerdial|DAHDI/g1/9990909|511&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Executing [s@macro-dialerdial:1] Dial(&quot;Local/9990909@dial_out-dda8,2&quot;, &quot;DAHDI/g1/9990909&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Requested transfer capability: 0x00 - SPEECH</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- Called g2/9990909</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:14]   == Begin MixMonitor Recording Local/9990909@dial_out-dda8,2</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[Jan 30 17:49:14]     -- DAHDI/32-1 is proceeding passing it to Local/9990909@dial_out-dda8,2</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:15]     -- DAHDI/32-1 is ringing</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[Jan 30 17:49:21]     -- DAHDI/32-1 answered Local/9990909@dial_out-dda8,2</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:21]     -- Executing [s@dial_go:1] Answer(&quot;Local/9990909@dial_out-dda8,1&quot;, &quot;&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:21]     -- Executing [s@dial_go:2] Wait(&quot;Local/9990909@dial_out-dda8,1&quot;, &quot;2&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:23]     -- Executing [s@dial_go:3] Goto(&quot;Local/9990909@dial_out-dda8,1&quot;, &quot;511|1&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:23]     -- Goto (dial_go,511,1)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[Jan 30 17:49:23]     -- Executing [511@dial_go:1] Queue(&quot;Local/9990909@dial_out-dda8,1&quot;, &quot;511||||180&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:23]     -- Started music on hold, class &#39;default&#39;, on channel &#39;Local/9990909@dial_out-dda8,1&#39;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:23]     -- outgoing agentcall, to agent &#39;10017&#39;, on &#39;Local/3601@default-d45d,1&#39;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[Jan 30 17:49:23]     -- Executing [3601@default:1] Dial(&quot;Local/3601@default-d45d,2&quot;, &quot;SIP/3601&quot;) in new stack</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:23]     -- Called 3601</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[Jan 30 17:49:23]     -- SIP/3601-096664f0 is ringing</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">[Jan 30 17:49:23]     -- Agent/10017 is ringing</span><br><br><br>Thanks to all<br><br>Mariano<br>