# Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # For USRobotic USB (USR5637) modem, use hardware flow control ModemType: Class1 # use class 1 interface ModemRate: 19200 # rate for DCE-DTE communication ModemFlowControl: rtscts # hardware flow control # ModemSetupDTRCmd: ATS13=1&D3 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) ModemNoFlowCmd: AT&H0 # setup modem for no flow control ModemHardFlowCmd: AT&H1 # setup modem for hardware flow control ModemSoftFlowCmd: AT&H2 # setup modem for software flow control ModemResultCodesCmd: ATQ0X4 # enable result codes # ModemMfrQueryCmd: !USR5637 ModemModelQueryCmd: ATI3 ModemRevQueryCmd: ATI7 # XXX returns a multi-line result # # When AT+FCLASS=1 is issued the modem automatically switches # to software flow control; these parameters let the fax software # reset flow control as needed after entering Class 1. # Class1NFLOCmd: AT+FLO=0 # setup modem for no flow control Class1HFLOCmd: AT+FLO=2 # setup modem for hardware flow control Class1SFLOCmd: AT+FLO=1 # modem does this automatically # # This should resolve "DIS/DTC received 3 times" errors: # Class1ResponseWaitCmd: AT+FRS=1 # wait after sending TCF for response # # The remainder of this configuration is included so that the # modem "idles" in Class 0 while not sending or receiving facsimile. # Note: If these 2 lines are not comment out, # USRobotic USB modem will not be able negotiate handshake # ModemSetupAACmd: AT+FCLASS=0 # leave modem idling in class 0 # ModemAnswerCmd: AT+FCLASS=1A # answer in Class 1 # # When using AT+FRS=n we see USR modems reset themselves in the middle of sessions # this is not good. So, we seem to work-around that problem by not using the # command. Unfortunately, this isn't an ideal thing. # Class1SwitchingCmd: "" # End config ## and/or by device FILETYPE=pdf # Added by MedBASE # New name n=`date +%Y%m%d%H%M%S` t=/usr/share/oscar-emr/OscarDocument/oscar/incomingdocs/1/Fax/$n # make pdf in target $TIFF2PDF -o $t.pdf $FILE sudo chown tomcat7:tomcat7 $t.pdf # End Added by MedBASE case "$DEVICE" in teamA) sudo /bin/chgrp 1002 $FILE #Team A faxes chmod g+rw $FILE #Make readable ;; teamB) sudo /bin/chgrp 1003 $FILE #Team B faxes chmod g+rw $FILE #Make readable ;; esac # End of FaxDispatch