[Asterisk-Users] asterisk@home print incoming fax

Tim Litwiller tim at litwiller.net
Tue Mar 22 23:29:02 MST 2005


*@home has this for it's incoming fax macro

--- start snip ---
[ext-fax]
exten => in_fax,1,GotoIf($[${FAX_RX} = system]?2:analog_fax,1)
exten => in_fax,2,Macro(faxreceive)
exten => in_fax,3,system(tiff2ps -2eaz -w 8.5 -h 11 ${FAXFILE} | ps2pdf 
      ${FAXFILE}.pdf)
exten => in_fax,4,system(mime-construct --to ${EMAILADDR} --subject "Fax 
from ${CALLERIDNUM} ${CALLERIDNAME}" --attachment ${CALLERIDNUM}.pdf 
--type application/pdf --file ${FAXFILE}.pdf)
exten => in_fax,5,system(rm ${FAXFILE} ${FAXFILE}.pdf)
exten => in_fax,6,Hangup
exten => analog_fax,1,GotoIf($[${FAX_RX} = disabled]?3:2)  ;if fax is 
disabled, just hang up
exten => analog_fax,2,Dial(${FAX_RX},20,d)
exten => analog_fax,3,Hangup
;exten => out_fax,1,wait(7)
exten => out_fax,1,txfax(${TXFAX_NAME}|caller)
exten => out_fax,2,Hangup
exten => h,1,Hangup()
--- end snip ---

If I just want it to print to my printer I should be able to setup a 
printer and the use
exten => in_fax,3,system(lpr 11 ${FAXFILE})

and then renumber 5 & 6 to 4 & 5 or is this not possible?




More information about the asterisk-users mailing list