Kbase 19894: How to Dial a Phone Number from 4GL.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/12/2002 |
|
Status: Unverified
GOAL:
Dial a phone number from the Progress 4GL.
FIX:
The following is a list of the basic Hayes commands:
AT - This prefix begins all but two commands you issue to the
modem locally, and calls the modem to attention that
commands are follow.
D - Dial. Use the D command to dial a phone number from the
command line. The format of the command is: ATD [string].
A/ - Repeat. This command does not use the AT prefix nor does it
require a carriage return to enter. Typing this command
causes the modem to repeat the last command line entered,
and is most useful for re-dialing phone numbers that are
busy.
H - Hang Up. This command tells the modem to go "on-hook", or to
disconnect the phone line.
Zn - Reset Modem. This command (in which n=0 or 1) resets the
modem to the configuration profile stored in non-volatile
memory location 0 or 1.
T - Select tone dialing. Any digit 0-9,*,#,A,B,C,D, etc. may be
dialed.
Here is an example of how to use Hayes commands when dialing a phone
number from Progress 4GL:
OUTPUT TO <modem-port>.
PUT CONTROL "ATD <phone-number>" + CHR(13).
PAUSE 10.
PUT CONTROL "ATH" + CHR(13). /*Hang up*/
OUTPUT CLOSE.
FIX:
The following is a list of the basic Hayes commands:
AT - This prefix begins all but two commands you issue to the
modem locally, and calls the modem to attention that
commands are follow.
D - Dial. Use the D command to dial a phone number from the
command line. The format of the command is: ATD [string].
A/ - Repeat. This command does not use the AT prefix nor does it
require a carriage return to enter. Typing this command
causes the modem to repeat the last command line entered,
and is most useful for re-dialing phone numbers that are
busy.
H - Hang Up. This command tells the modem to go "on-hook", or to
disconnect the phone line.
Zn - Reset Modem. This command (in which n=0 or 1) resets the
modem to the configuration profile stored in non-volatile
memory location 0 or 1.
T - Select tone dialing. Any digit 0-9,*,#,A,B,C,D, etc. may be
dialed.
Here is an example of how to use Hayes commands when dialing a phone
number from Progress 4GL:
OUTPUT TO <modem-port>.
PUT CONTROL "ATD <phone-number>" + CHR(13).
PAUSE 10.
PUT CONTROL "ATH" + CHR(13). /*Hang up*/
OUTPUT CLOSE.