Article View: microsoft.public.win32.programmer.tapi
Article #2Re: Caller-ID, i think i'm halfway...
From: Robert Keith Elias
Date: Sat, 25 Dec 1999 00:00
Date: Sat, 25 Dec 1999 00:00
65 lines
3511 bytes
3511 bytes
Hi "Stefan/GertJan" <StefanMelis@yahoo.com>;
This is a public reply to your message posted:
From group: microsoft.public.win32.programmer.tapi; on Fri, 24 Dec 1999 18:19:41 +0100
Concerning "Caller-ID, i think i'm halfway...";
~ > Hello all,
~ >
~ > I've been busy lately with reading the tapi.hlp file, and especcialy the
~ > part on Caller-ID, and this is what i've found out until now:
~ >
~ > My app needs to be able to receive messages from tapi, and especcialy
~ > LINECALLSTATE_OFFERING messages. But here's my first problem. How do i do
~ > this? What i've read is that you have to do it with phoneSetStatusMessages.
~ > And if this is true, how do i get the hPhone handle which is needed in the
~ > function? and another problem with phoneSetStatusMessages:
~ > which dwPhoneStatus should be enabled for me to be able to receive
~ > LINECALLSTATE_OFFERING messages?
~ > Some sample code for Delphi would be really cool.
There is sample TAPI delphi code at:
http://www.delphimag.com/features/1999/11/di199911re_f/di199911re_d.asp
It demonstrates the use of "callbacks" in delphi, which appears to be
your main problem.
~ > ps i'm working in delphi 3 client server
Unfortunately that code is written for D4 and makes extensive use of
DWORD, so you will not be able to use it without modification.
Just to point you a bit;
the main callback routine there is: LineCallBack(...)
Which is defined as follows (in that code):
ErrNo := LineInitialize(
@rTapi.hTapi, // Usage Handle (other TAPI functions need).
MainInstance, // TAPI.DLL stores info here (can forget).
rTapi.pLineCallback, // Function windows will call with msgs.
'', // Optional app name. (for LINECALLINFO).
@rTapi.dwNumDevs); // # of devices(modems/virtual) returned here.
rTapi.pLineCallback is a pointer to the LineCallBack(...) function.
I will not be able to give you much additional help, since that
program was my first and last effort with both DELPHI and TAPI.
Good Luck;
--
Friar Broccoli
Robert Keith Elias (Quebec, Qc, Canada) Address: kelias@CLIC.NET
Best programmer's & all purpose text editor: http://www.semware.com
--------- I consider ALL arguments in support of my views ---------
Technical Details
Message-ID:
<k9JZ4krq43Jc089yn@clic.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8409vf$8bne$1@reader3.wxs.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108b9d,e98e4623e4c856e9 X-Google-Attributes: gid108b9d,public X-Google-Thread: 107324,e98e4623e4c856e9 X-Google-Attributes: gid107324,public X-Google-Thread: 1043cf,e98e4623e4c856e9 X-Google-Attributes: gid1043cf,public X-Google-Thread: 10923d,e98e4623e4c856e9 X-Google-Attributes: gid10923d,public X-Google-Thread: 10f389,e98e4623e4c856e9 X-Google-Attributes: gid10f389,public X-Google-Thread: 105ac8,e98e4623e4c856e9 X-Google-Attributes: gid105ac8,public From: kelias@clic.net (Robert Keith Elias) Subject: Re: Caller-ID, i think i'm halfway... Date: 1999/12/25 Message-ID: <k9JZ4krq43Jc089yn@clic.net> X-Deja-AN: 564757141 Sender: kelias@clic1.qbc.clic.net References: <8409vf$8bne$1@reader3.wxs.nl> X-Trace: carnaval.risq.qc.ca 946119929 199.45.69.3 (Sat, 25 Dec 1999 06:05:29 EST) Organization: The Broccolist Church NNTP-Posting-Date: Sat, 25 Dec 1999 06:05:29 EST Newsgroups: microsoft.public.win32.programmer.tapi,nl.telecom,nl.comp.programmeren,alt.business.telecommunication,alt.comp.borland-delphi,borland.public.delphi.objectpascal