Microsoft KB Archive/80251

= PC Gen: Contents of Modem Script File BUSY.MDM =

Article ID: 80251

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Mail for PC Networks 2.1e

-



This article was previously published under Q80251



SUMMARY
The following is the Microsoft Mail version 2.1e modem script file BUSY.MDM, which can be compiled with SCRCOMP.EXE: ;********************************************************************
 * Microsoft Mail Script File
 * Filename: busy.mdm
 * Date   : Jun 12, 1990
 * Script : Script file to prevent dialing out
 * This script is intended to be used in the phone number field for
 * one or more postoffices in the Admin Setup screen.
 * Script procedures defined:
 * CALL
 * DISCONNECT
 * Script procedures defined:
 * CALL
 * DISCONNECT
 * DISCONNECT

CALL: display &quot;>>> No dialout performed <<<&quot;

return 7              ; return &quot;busy&quot; signal

DISCONNECT: wait 2                ; wait 2 seconds

send &quot;+++&quot;            ; send escape sequence to put modem ;   back to command state wait 2                ; wait 2 seconds

clearrsp              ; clear the response buffer

sendln &quot;ATH0&quot;         ; hang up the phone

waitrsp 1             ; wait for a response

if (response != &quot;0^M&quot;) ; if hang up failed, drop DTR to force ;   hang up            { DTR 0             ; drop DTR to reset modem wait 2            ; some modems require a delay here DTR 1             ; raise DTR clearrsp          ; clear response buffer }

return 0              ; always return OK

Additional query words: 2.1 2.10e 2.10

Keywords: KB80251

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.