Re: asterisk trixbox txfax
[out-fax]
exten => out_fax,1,txfax(${TXFAX_NAME}|caller)
exten => out_fax,2,SetVar(FAX_OK=1)
exten => out_fax,3,system(echo "Your fax to ${DEST_PHONE} was sended successfully" | mail -s "Fax se
nded successfully" ${SENDER_MAIL})
exten => out_fax,102,NoOp(TxFax exited with an error 102)
exten => s-NOANSWER,1,NoOp(TxFax exited with dialstatus ${DIALSTATUS})
exten => s-NOANSWER,2,Hangup()
exten => s-BUSY,1,NoOp(TxFax exited with dialstatus ${DIALSTATUS})
exten => s-BUSY,2,Hangup()
exten => h,1,NoOp(HANGUPCAUSE is ${HANGUPCAUSE})
exten => h,2,GotoIf($${FAX_OK} = 1?4:3)
exten => h,3,system(echo "There was an error sending your fax to ${DEST_PHONE}" | mail -s "Fax NOT sended" ${SENDER_MAIL})
exten => h,4,Macro(hangupcall)
|