[asterisk-users] Fax detection ...
Michelle Dupuis
support at ocg.ca
Mon Oct 2 15:04:03 MST 2006
Interesting trick!
On the down side, won't sending this tone be pointless? If the receiver is
not sure a fax is calling, then he will BEEP every caller (even voice
calls). If the receiver is sure a fax is calling, why play the tones?
MD
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of James
Sent: Monday, October 02, 2006 4:35 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Fax detection ...
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" <faxguy at howardsilvan.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Monday, October 02, 2006 2:16 PM
Subject: Re: [asterisk-users] Fax detection ...
> phil.dawson at marnock.com 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
More information about the asterisk-users
mailing list