You can trick their machine into sending tones. The following code with send tones that a "terminating" fax machine would normally respond with.
This will even force really old G2 fax machines to respond.

indications.conf:
faxrec = !2100/2600,!0/10,!1850/2600

[custom-fax-did]
exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif)
exten => s,2,SetVar(EMAILADDR=${FAX_RX_EMAIL})
exten => s,3,SetCallerID(<${FROM_DID}>)
exten => s,4,Answer
exten => s,5,Playtones(faxrec)
exten => s,6,Wait(6)
exten => s,7,rxfax(${FAXFILE})
exten => s,8,system(tiff2pdf -p letter ${FAXFILE} -o ${FAXFILE}.pdf)
exten => s,9,system(mime-construct --to ${EMAILADDR} --subject "Fax DID ${CALLERIDNUM}" --attachment ${CALLERIDNUM}.pdf --type application/pdf --file ${FAXFILE}.pdf)
exten => s,10,system(rm ${FAXFILE} ${FAXFILE}.pdf)
exten => s,11,Hangup

James Taylor
www.metrotel.net




----- Original Message ----- From: "Lee Howard" <[EMAIL PROTECTED]> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <[email protected]>
Sent: Monday, October 02, 2006 2:16 PM
Subject: Re: [asterisk-users] Fax detection ...


[EMAIL PROTECTED] wrote:

It all boils down to this:  If they don't send a tone I won't get the fax.


And I certainly understand this approach. However, there are some situations where this is simply not suitable - where missing a fax costs money. Take, for example, the real estate industry where a fickle customer (isn't everyone fickle when dealing with real estate?) can be surveying mortgage quotes (frequently done by fax) and if you don't get their faxed authorization to pull their credit report and then you call them two days later to find out where it is ... well that customer may have already signed with another lender... and that just cost that agent 1-2% of the mortgage price (so that lost fax easily cost $2000 in lost opportunity).

Lee.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to