[asterisk-users] FAX over ISDN PRI

Mariano Lecuona mlecuona at gmail.com
Sat Jan 30 14:53:07 CST 2010


Hi,

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.

I have my .call that I move the /var/spool/asterisk/ouotgoing like:
(numbers were changed to preserve privacy)

Channel: Local/99999999 at dial_out/n
CallerID: Fax Test <99999999>
MaxRetries: 0
RetryTime: 300
WaitTime: 60
Archive: yes
Context: dial_go
Extension: s
Priority: 1
Set: Q_NAME=511
Set: ANI=99999999

extension.conf

[dial_out]
;
exten => _X.,1,Macro(recordcall,${Q_NAME},${CALLERID(number)})  ;; this is a
custom macro that I created for personal recording puporse
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
exten => _X.,n,Hangup()

[dial_go]
;
exten => s,1,Answer
exten => s,n,Wait(2)
exten => s,n,Goto(${Q_NAME},1)
; If none of above happen, send to queue
exten => _s-.,1,Goto(${Q_NAME},1)
;
exten => fax,1,QueueLog(${Q_NAME}|${UNIQUEID}|NONE|FAXDETECTED|${ANI})
exten => fax,n,Hangup()
;
exten => _512,1,Goto(voicemenu-custom-1,s,1)
;
exten => _5[01]X,1,Queue(${EXTEN}||||${Q_TIMEOUT})
exten => _5[01]X,n,Hangup()
;

chan_dahdi.conf

faxdetect = incoming

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.


[Jan 30 17:49:14]     -- Attempting call on Local/9990909 at dial_out/n for
s at dial_go:1 (Retry 1)
[Jan 30 17:49:14]     -- Executing [9990909 at dial_out:1]
Macro("Local/9990909 at dial_out-dda8,2", "recordcall|511|9990909") in new
stack
[Jan 30 17:49:14]     -- Executing [s at macro-recordcall:1]
GotoIf("Local/9990909 at dial_out-dda8,2", "1?5:2") in new stack
[Jan 30 17:49:14]     -- Goto (macro-recordcall,s,5)
[Jan 30 17:49:14]     -- Executing [s at macro-recordcall:5]
Set("Local/9990909 at dial_out-dda8,2",
"FILEREC=2010-01-30-17-49-14-SRC-511-DST-9990909") in new stack
[Jan 30 17:49:14]     -- Executing [s at macro-recordcall:6]
Set("Local/9990909 at dial_out-dda8,2",
"FILE_PATH=2010/01/30/2010-01-30-17-49-14-SRC-511-DST-9990909") in new stack
[Jan 30 17:49:14]     -- Executing [s at macro-recordcall:7]
Set("Local/9990909 at dial_out-dda8,2",
"CDR(userfield)=2010-01-30-17-49-14-SRC-511-DST-9990909.wav") in new stack
[Jan 30 17:49:14]     -- Executing [s at macro-recordcall:8]
MixMonitor("Local/9990909 at dial_out-dda8,2",
"/opt/rec/2010/01/30/2010-01-30-17-49-14-SRC-511-DST-9990909.wav|b") in new
stack
[Jan 30 17:49:14]     -- Executing [s at macro-recordcall:9]
MacroExit("Local/9990909 at dial_out-dda8,2", "") in new stack
[Jan 30 17:49:14]     -- Executing [9990909 at dial_out:2]
Macro("Local/9990909 at dial_out-dda8,2", "dialerdial|DAHDI/g1/9990909|511") in
new stack
[Jan 30 17:49:14]     -- Executing [s at macro-dialerdial:1]
Dial("Local/9990909 at dial_out-dda8,2", "DAHDI/g1/9990909") in new stack
[Jan 30 17:49:14]     -- Requested transfer capability: 0x00 - SPEECH
[Jan 30 17:49:14]     -- Called g2/9990909
[Jan 30 17:49:14]   == Begin MixMonitor Recording
Local/9990909 at dial_out-dda8,2
[Jan 30 17:49:14]     -- DAHDI/32-1 is proceeding passing it to
Local/9990909 at dial_out-dda8,2
[Jan 30 17:49:15]     -- DAHDI/32-1 is ringing
[Jan 30 17:49:21]     -- DAHDI/32-1 answered Local/9990909 at dial_out-dda8,2
[Jan 30 17:49:21]     -- Executing [s at dial_go:1]
Answer("Local/9990909 at dial_out-dda8,1", "") in new stack
[Jan 30 17:49:21]     -- Executing [s at dial_go:2]
Wait("Local/9990909 at dial_out-dda8,1", "2") in new stack
[Jan 30 17:49:23]     -- Executing [s at dial_go:3]
Goto("Local/9990909 at dial_out-dda8,1", "511|1") in new stack
[Jan 30 17:49:23]     -- Goto (dial_go,511,1)
[Jan 30 17:49:23]     -- Executing [511 at dial_go:1]
Queue("Local/9990909 at dial_out-dda8,1", "511||||180") in new stack
[Jan 30 17:49:23]     -- Started music on hold, class 'default', on channel
'Local/9990909 at dial_out-dda8,1'
[Jan 30 17:49:23]     -- outgoing agentcall, to agent '10017', on
'Local/3601 at default-d45d,1'
[Jan 30 17:49:23]     -- Executing [3601 at default:1]
Dial("Local/3601 at default-d45d,2", "SIP/3601") in new stack
[Jan 30 17:49:23]     -- Called 3601
[Jan 30 17:49:23]     -- SIP/3601-096664f0 is ringing
[Jan 30 17:49:23]     -- Agent/10017 is ringing


Thanks to all

Mariano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100130/62969944/attachment.htm 


More information about the asterisk-users mailing list