Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 494
  • Last Modified:

TAPI telephony & Caller ID

Hey all...I'm writing a telephony component using TAPI. Currently I have implemented dialling using a name and phone number.

However I need to implement a OnIncomingCall event which can extract an incoming call's number which can then be used in an event handler...kind of like a simple Caller ID feature. Does anyone have any idea how to monitor a TAPI line and extract incoming call information...such as an originating phone number?

The component (TPhone) will be freeware, so whoever helps me out will get a joint author credit.
0
imranali
Asked:
imranali
1 Solution
 
ewalkerCommented:
Imranali, First you have to open a TAPI Line, for monitoring or owning. (Be carefull with this, you can only open for monitoring if another application has ownership of the call, if you open for ownership then you have to handle the call yourself). You will then received messages when you received a call.  Then using the line handle from openinig the line, you can ask TAPI for information about the call.  Which is where you will find the callerID information.  The call that you are interested in is lineGetCallInfo.  If you want to know more info about this kinda of stuff, you might look at the book MAPI, SAPI & TAPI by Michael Amundsen by SAMS.  It has some good info.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now