Changelog for HylaFAX
+* replace Class1TCFResponseDelay with Class1SwitchingCmd (20 Oct 2005)
* disable client programs from looking for UNIX socket
when the CONFIG_UNIXTRANSPORT is not enabled (20 Oct 2005)
* improve security technique when creating temporary files (20 Oct 2005)
Class1PPMWaitCmd: AT+FTS=7 # command to stop and wait before PPM
Class1TCFWaitCmd: AT+FTS=7 # command to stop and wait before TCF
Class1EOPWaitCmd: AT+FTS=9 # command to stop and wait before EOP
-Class1TCFResponseDelay: 75 # 75ms delay between recv TCF & response
Class1SendMsgDelay: 200 # 75ms delay after training
Class1SwitchingCmd: AT+FRS=7 # silence between HDLC recv and trans
Class1TrainingRecovery: 1500 # 1.5sec delay after training failure
Class1PPMWaitCmd: AT+FTS=7 # command to stop and wait before PPM
Class1TCFWaitCmd: AT+FTS=7 # command to stop and wait before TCF
Class1EOPWaitCmd: AT+FTS=9 # command to stop and wait before EOP
-Class1TCFResponseDelay: 75 # 75ms delay between recv TCF & response
Class1SendMsgDelay: 200 # 75ms delay after training
Class1SwitchingDelay: 75 # 150ms delay in switching transmission direction
Class1TrainingRecovery: 1500 # 1.5sec delay after training failure
Class1TCFMaxNonZero
Class1TCFMinRun
Class1TCFRecvTimeout
- Class1TCFResponseDelay
Class1TrainingRecovery
"
Class2Parameters="
# Class1SwitchingCmd \
Command to ensure silence after receiving HDLC and before sending
# Class1TCFRecvTimeout Timeout for receiving TCF (ms)
-# Class1TCFResponseDelay Delay before sending DCS and TCF (ms)
# Class1TrainingRecovery Delay after failed training (ms)
EOF
;;
* Send training response; we follow the spec
* by delaying 75ms before switching carriers.
*/
- pause(conf.class1TCFResponseDelay);
+ if (!atCmd(conf.class1SwitchingCmd, AT_OK)) return (false);
if (ok) {
/*
* Send CFR later so that we can cancel
{ "modemringsbeforeresponse", &ModemConfig::ringsBeforeResponse, 0 },
{ "modemsoftresetcmddelay", &ModemConfig::softResetCmdDelay, 3000 },
{ "class1tcfrecvtimeout", &ModemConfig::class1TCFRecvTimeout, 4500 },
-{ "class1tcfresponsedelay", &ModemConfig::class1TCFResponseDelay,75 },
{ "class1sendmsgdelay", &ModemConfig::class1SendMsgDelay, 200 },
{ "class1trainingrecovery", &ModemConfig::class1TrainingRecovery,1500 },
{ "class1recvabortok", &ModemConfig::class1RecvAbortOK, 200 },
fxStr class1SwitchingCmd; // after recv HDLC and before sending
fxStr class1MsgRecvHackCmd; // cmd to avoid +FCERROR before image
u_int class1TCFRecvTimeout; // timeout receiving TCF
- u_int class1TCFResponseDelay; // delay (ms) btwn TCF & ack/nak
u_int class1SendMsgDelay; // delay (ms) after training
u_int class1TrainingRecovery; // delay (ms) after failed training
u_int class1RecvAbortOK; // if non-zero, OK sent after recv abort
Class1TCFMinRun integer \s-11000\s+1 Class 1/1.0: minimum zero run in good \s-1TCF\s+1
Class1TCFRecvHack boolean \s-1No\s+1 Class 1/1.0: deliberately look for carrier loss before TCF
Class1TCFRecvTimeout integer \s-14500\s+1 Class 1/1.0: max wait (ms) for \s-1TCF\s+1
-Class1TCFResponseDelay integer \s-175\s+1 Class 1/1.0: delay between \s-1TCF\s+1 and ack/nak
Class1TMConnectDelay integer \s-10\s+1 Class 1/1.0: delay between +FTM CONNECT and data transmission
Class1SendMsgDelay integer \s-1200\s+1 Class 1/1.0: delay before sending image data
Class1SwitchingCmd string \s-1AT+FRS=7\s+1 Class 1/1.0: command to ensure silence after HDLC reception
) message data that is received during the
training phase of the facsimile reception protocol.
.TP
-.B Class1TCFResponseDelay
-The time, in milliseconds, to delay between receiving
-.SM TCF
-and sending a response on the v.21 carrier to indicate whether or not
-training was successful.
-.TP
.B Class1TMConnectDelay
The time, in milliseconds, to delay after receiving CONNECT following +FTM
before sending image data. T.31 8.3.3 requires the modem to respond with