Article View: microsoft.public.win32.programmer.tapi
Article #3Caller-ID, i think i'm halfway...
From: Stefan/GertJan
Date: Fri, 24 Dec 1999 00:00
Date: Fri, 24 Dec 1999 00:00
38 lines
3072 bytes
3072 bytes
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. So when i receive an offering message, i need to check the dwParam1 to see what's happening... and then with LineGetCallInfo(dwDevice, LPLINECALLSTATUS) i need to get the caller-id? I know that i can get the dwDevice-handle from the LINE_CALLSTATE message, but what is LPLINECALLSTATUS about? What does it do? What do i need it for? How do i use it? In the help file they say that it's a pointer to a variable of type LINECALLSTATUS, but since i'm an absolute beginner and my english isnt good enough (i think), i dont know what they're saying... or meaning... Again, some sample code would be usefull. And ofcourse, the age old question: Is this it, or is there more to it? Please help me out, i've looked at several components on several delphi-pages, but none of them actually worked, so please no more pointers to web-pages, cuz until now what i found there hasn't been of any use to me. Thnx a lot in advance! Grtz StefanMelis ps i'm working in delphi 3 client server, and am connected via serial port to an Alcatel telephone, i'm using TAPI version (i dunno, i believe 1.3 or 1.4)... And for the dutch people: Sorry datie in't Engels is, maar had weinig tijd om naar Nederlands terug te vertalen. Mijn excuses!
Technical Details
Message-ID:
<8409vf$8bne$1@reader3.wxs.nl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108b9d,e98e4623e4c856e9,start X-Google-Attributes: gid108b9d,public X-Google-Thread: 10923d,e98e4623e4c856e9,start X-Google-Attributes: gid10923d,public X-Google-Thread: 107324,e98e4623e4c856e9,start X-Google-Attributes: gid107324,public X-Google-Thread: 10f389,e98e4623e4c856e9,start X-Google-Attributes: gid10f389,public X-Google-Thread: 1043cf,e98e4623e4c856e9,start X-Google-Attributes: gid1043cf,public X-Google-Thread: 105ac8,e98e4623e4c856e9,start X-Google-Attributes: gid105ac8,public From: "Stefan/GertJan" <StefanMelis@yahoo.com> Subject: Caller-ID, i think i'm halfway... Date: 1999/12/24 Message-ID: <8409vf$8bne$1@reader3.wxs.nl> X-Deja-AN: 564579887 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@wxs.nl X-Trace: reader3.wxs.nl 946055983 274158 195.121.164.16 (24 Dec 1999 17:19:43 GMT) Organization: Planet Internet NNTP-Posting-Date: 24 Dec 1999 17:19:43 GMT Newsgroups: microsoft.public.win32.programmer.tapi,nl.telecom,nl.comp.programmeren,alt.business.telecommunication,alt.comp.borland-delphi,borland.public.delphi.objectpascal