<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 <99999999></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 => _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 => _X.,n,Dial(DAHDI/g1/${EXTEN:0}) ;; this is en sime truck dial macro that dial into the SPANS -> I know it is OK for sure</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">exten => _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 => s,1,Answer</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">exten => s,n,Wait(2)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exten => 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 => _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 => 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 => 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 => _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 => _5[01]X,1,Queue(${EXTEN}||||${Q_TIMEOUT})</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exten => _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("Local/9990909@dial_out-dda8,2", "recordcall|511|9990909") 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("Local/9990909@dial_out-dda8,2", "1?5:2") 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("Local/9990909@dial_out-dda8,2", "FILEREC=2010-01-30-17-49-14-SRC-511-DST-9990909") 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("Local/9990909@dial_out-dda8,2", "FILE_PATH=2010/01/30/2010-01-30-17-49-14-SRC-511-DST-9990909") 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("Local/9990909@dial_out-dda8,2", "CDR(userfield)=2010-01-30-17-49-14-SRC-511-DST-9990909.wav") 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("Local/9990909@dial_out-dda8,2", "/opt/rec/2010/01/30/2010-01-30-17-49-14-SRC-511-DST-9990909.wav|b") 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("Local/9990909@dial_out-dda8,2", "") 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("Local/9990909@dial_out-dda8,2", "dialerdial|DAHDI/g1/9990909|511") 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("Local/9990909@dial_out-dda8,2", "DAHDI/g1/9990909") 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("Local/9990909@dial_out-dda8,1", "") 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("Local/9990909@dial_out-dda8,1", "2") 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("Local/9990909@dial_out-dda8,1", "511|1") 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("Local/9990909@dial_out-dda8,1", "511||||180") 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 'default', on channel 'Local/9990909@dial_out-dda8,1'</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[Jan 30 17:49:23] -- outgoing agentcall, to agent '10017', on 'Local/3601@default-d45d,1'</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("Local/3601@default-d45d,2", "SIP/3601") 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>