sean darcy
2009-Sep-18 23:45 UTC
[asterisk-users] digium fax: is this even close to working?
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
David Backeberg
2009-Sep-21 18:05 UTC
[asterisk-users] digium fax: is this even close to working?
On Fri, Sep 18, 2009 at 7:45 PM, sean darcy <seandarcy2 at gmail.com> wrote:> 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.Usually this is where somebody asks for fax passthrough support on a particular support, which asterisk does not do at present. First, I don't think you can dial like that (G) from hangup. Put the steps you want to happen after hangup in the hangup context, as h,2, etc. steps. That will at least solve your immediate troubleshooting problem. h,1,Dial() h,2,SendFax() h,3,HangUp()