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
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users