Caller-ID inside an application

tdi

Progress Fan
Hi you all there!!

Hope you are having good times!.

I have this question, since i would like to incorporate this functionality to a system for a fast food restaurant chain i'm working on...
Is it possible that I can have in any way, accesible the Caller-ID information, can i go to the modem and get it?, is something i can do with win api?.
Any clue?

Thanks.
Octavio Olguin
Tecnologías de Información (TDI)
Mexico.
 

Chris Kelleher

Administrator
Staff member
Hi Octavio-

Yes if you have a Caller-ID enabled modem, you can use the Windows API to call the lineGetCallInfo function in TAPI.

Here is some more information about it from MSDN:
http://msdn.microsoft.com/library/psdk/tapi22/func1_96cv.htm

lineGetCallInfo
The lineGetCallInfo function enables an application to obtain fixed information about the specified call.

Code:
LONG WINAPI lineGetCallInfo(
  HCALL hCall,               
  LPLINECALLINFO lpCallInfo  
);

Parameters:

hCall
A handle to the call to be queried. The call state of hCall can be any state.

lpCallInfo
A pointer to a variably sized data structure of type LINECALLINFO. Upon successful completion of the request, this structure is filled with call-related information. Prior to calling lineGetCallInfo, the application should set the dwTotalSize member of this structure to indicate the amount of memory available to TAPI for returning information.
 

tdi

Progress Fan
Thanks Chris.... Again...

I'm wondering,

IS THERE ANY QUESTION YOU CAN'T ASWER!!!!!!!!!

Thanks..
Have a nice night :).

Octavio
 

Chris Kelleher

Administrator
Staff member
Originally posted by tdi
IS THERE ANY QUESTION YOU CAN'T ASWER!!!!!!!!!

hahaha... well yes there are a few I can't :)

I guess when you've been developing Progress applications for over 10 years, there isn't too much left that I haven't had to learn at some point.

-Chris
 
Top