<div>When using the following my sytems commands to not seem to execute. </div><div> </div><div>[outboundfax]<br>; exten => s,1,NoOp(send a fax)<br>exten => s,1,Set(FAXOPT(filename)=${FAXFILE})<br>exten => s,n,Set(FAXOPT(ecm)=yes)<br>
exten => s,n,Set(FAXOPT(headerinfo)=${FAXHEADER})<br>exten => s,n,Set(FAXOPT(localstationid)=${LOCALID})<br>exten => s,n,Set(FAXOPT(maxrate)=14400)<br>exten => s,n,Set(FAXOPT(minrate)=2400)<br>exten => s,n,SendFAX(${FAXFILE},d)<br>
exten => s,n,System(/usr/bin/php /var/lib/asterisk/bin/faxnotify.php INIT "${EMAIL}" "${DESTINATION}" "${TIMESTAMP}" "NO_STATUS"<br>exten => h,1,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})<br>
exten => h,n,NoOp(FaxStatus : ${FAXSTATUS})<br>exten => h,n,NoOp(FaxStatusString : ${FAXSTATUSSTRING})<br>exten => h,n,NoOp(FaxError : ${FAXERROR})<br>exten => h,n,NoOp(RemoteStationID : ${REMOTESTATIONID})<br>
exten => h,n,NoOp(FaxPages : ${FAXPAGES})<br>exten => h,n,NoOp(FaxBitRate : ${FAXBITRATE})<br>exten => h,n,NoOp(FaxResolution : ${FAXRESOLUTION})<br>exten => h,n,System(/usr/bin/php /var/lib/asterisk/bin/faxnotify.php NOTIFY "${EMAIL}" "${DESTINATION}" "${TIMESTAMP}" "${FAXSTAT<br>
; end of outboundfax context<br></div><div>I added this to make sure that it was not permissions.</div><div> </div><div>exten => 777,1,System(/bin/touch /var/lib/asterisk/bin/tesfile.txt)<br>exten => 777,n,Playback(vm-goodbye)<br>
exten => 777,n,Hangup()<br></div><div>When I dial 777 the test file is created in the folder where faxnotify.php exists.</div><div> </div><div>If I copy the data I see in the console and paste it to command prompt the faxnotify script does execute and everything works.</div>
<div>/var/lib/asterisk/bin/faxnotify.php NOTIFY "<a href="mailto:tim@compnetwork.net">tim@compnetwork.net</a>" "6165551212" "20/08/11 : 06:55:11" "FAX_SUCCESS" "1"<br></div>