[Asterisk-Users] asterisk@home print incoming fax

Asterisk at Home asteriskathome at yahoo.com
Wed Mar 23 07:07:31 MST 2005


try it out and tell us if it works. That would be a
cool feature.

--- Tim Litwiller <tim at litwiller.net> wrote:
> *@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?
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
>
http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   
>
http://lists.digium.com/mailman/listinfo/asterisk-users
> 


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 



More information about the asterisk-users mailing list