Displaying 1 result from an estimated 1 matches for "faxfail".
2018 May 21
5
Looking for better fax handling
...ATUS=${STATUS}\nError: ${FAXOPT(error)})
same => n(faxok),Verbose(0,FAX ${destination} Status (S): ${STATUS})
same => n,Set(FAXNAME=${CUT(faxfile,/,6)})
same => n,Set(FILE(/fax_status/${FAXNAME})=${STATUS})
same => n,GotoIf($["${FAXOPT(status)}" != "SUCCESS"]?faxfail)
same => n,System(/bin/mv '${faxfile}' '/fax_success/${FAXNAME}')
same => n,Set(CDR(userfield)=${destination})
same => n,Verbose(0,FAX to ${destination} charged to ${uid})
same => n(faxfail),Verbose(0,FAX ${destination} Status (F): ${STATUS})
same => n,Hang...