We have set-up our modems for 4 wire leased line. Occasionally the modems revert back to dial-up (PSTN). Is there a way to stop this?

The modem default has dial backup enabled. This can be disabled by setting S15=0 and S17=0 with this command "ATS15=0S17=0&W"