[asterisk-users] digium fax: is this even close to working?
sean darcy
seandarcy2 at gmail.com
Fri Sep 18 18:45:27 CDT 2009
My set up is 1.6.0.15 with the digium fax modules. I want to capture a
fax from the internal analog fax machine (using an SPA2102), and then
resend it. I know the internal extension of the fax machine, and for now
I'm just testing it to one outside fax machine if I dial 8447.
In particular, I'm completely unfamiliar with the use of "G" in the Dial
app.
exten => 8447,1,Answer()
exten => 8447,n,GoSub(Capture-Fax,s,1(1xxxyyyyyyy))
[Capture-Fax]
exten =>
s,1,Set(FAXFILE=${FAX_RX_FOLDER}/${STRFTIME(${EPOCH},,%Y%m%d)}_${STRFTIME(${EPOCH},,%H%M)})
exten => s,n,ReceiveFAX(${FAXFILE}.tif) ;; 1.6 use ReceiveFAX
exten => s,n,Hangup()
exten=>h,1,Dial(${TRUNK}/${ARG1},,G(send^1)) ;ARG1: outside fax number
exten=>send,1,SendFAX(${FaxFile}.tif)
exten=>send,n,Hangup()
exten=>send,n,Return()
Thanks for any reviewing eyes.
sean
More information about the asterisk-users
mailing list