delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/23/20:05:33

From: "Rafael García" <rafael AT geninfor DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: modem dialing
Date: Tue, 23 Mar 1999 19:23:31 +0100
Organization: CTV/JET
Lines: 20
Message-ID: <7d8mtc$c0c$1@lola.ctv.es>
NNTP-Posting-Host: infou727.jet.es
X-Trace: lola.ctv.es 922214124 12300 195.55.162.215 (23 Mar 1999 18:35:24 GMT)
X-Complaints-To: usenet AT lola DOT ctv DOT es
NNTP-Posting-Date: 23 Mar 1999 18:35:24 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Is it possible to simply dial a phone number with the modem and hang up?
The intend is to someone that make many calls to use the modem and don't
have to manually press the numbers.

It would be wonderful something like this:

dial(char *number) {
    FILE *f=fopen("com2:","w");
    if (!f) return 1;
    fprintf(f,"atdt82%s\n",number);            // 82 for the office phone
system to get out line
    waitUserKey();
    fprintf(f,"ath\n");
    fclose(f);
    return 0;
    }

Thanks.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019