[Asterisk-Users] asterisk@home print incoming fax

Tim Litwiller tim at litwiller.net
Wed Mar 23 11:43:34 MST 2005


I tested today with and without my modifications - and all I get is comm 
err messages on the sending fax machine -
So now I wonder if asterisk can recieve faxes on my X100p that the phone 
line is connected to.


Tim Litwiller 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
>





More information about the asterisk-users mailing list