Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Nov : Non-standard answer to a call using modem

www.cryer.info
Managed Newsgroup Archive

Non-standard answer to a call using modem

Subject:Non-standard answer to a call using modem
Posted by:"Pavel Reznicek" (pavel.jindri..@tiscali.cz)
Date:Wed, 29 Nov 2006 02:30:17

Hi all,

I am having troubles in my task and need help.
I googled and tested thoroughly but have still no success.

I need to answer a call using a standard analog modem connected through
a serial port. But I don't answer to a dialing modem but to a special
automated phone device that is waiting for the digit tones 1 and #. Then
it considers the call answered OK. Otherwise it stops calling and needs
to be manually restarted by a technician that must travel there from a
distant location. The devices I want to respond to are used by lifts to
supervise them in a lift-making company.

Normally it is done well by picking up the phone, pressing the '1' and
'#' buttons (and hanging up the phone).

I need to simulate the using the modem (in Delphi). Now I communicate
with the modem using a component sending it AT commands over the serial
port:

...RING...

ATH1<crlf> (pick up) -- OK
ATDT,1,#;<crlf> (dial '1' and '#') --
   -- it doesn't return OK;
   -- when I press a second <crlf> and repeat the same command,
      it succeeds. Why not the first time ??
   -- isn't the line already hanged up after the second <crlf>??
ATH0 (hang up)

This is what I tried. I would be much appreciated by any help.

Pavel Reznicek

Replies:

www.cryer.info
Managed Newsgroup Archive