I know this topic is on this forum and many others.
I am trying to create a small program to show the telephone number of an incoming call.
There seem to be a million ways to do it in VB, C#, .Net, etc, but I can't seem to find any way to do it in PB.
Requirements:
This is using a normal modem (internal or external).
No accessing the registry
Win 98 through Vista (hopefully 95 too)
From what I understand, the general steps are:
1. Create a connection using lineInitializeEx
A callback function is lauched in step 1 that can be used to trap various events.\
2. Negotiate the TAPI version
3. Select a device to use
4. open that device using LineOpen
5. Look for the callback message of %LINE_CALLSTATE and specifcally %LINECALLSTATE_OFFERING
6. At that point, use LINE_CALLINFO to get the information of the incoming call
or
5. Use LineGetCallStatus to see if it is offering
6. Same as 6 above
Am I missing something? Does anybody have PB examples of anything close to this?
I go through the steps, but the code under LINECALLSTATE never is executed and LIneGetCallStatus gives an unknown status.
oh, and yes, there is a phone line connected that can be used by other programs
Any help would be appreciated.
Thanks!
------------------
Bill Scharf
[This message has been edited by Bill Scharf (edited May 02, 2007).]
I am trying to create a small program to show the telephone number of an incoming call.
There seem to be a million ways to do it in VB, C#, .Net, etc, but I can't seem to find any way to do it in PB.
Requirements:
This is using a normal modem (internal or external).
No accessing the registry
Win 98 through Vista (hopefully 95 too)
From what I understand, the general steps are:
1. Create a connection using lineInitializeEx
A callback function is lauched in step 1 that can be used to trap various events.\
2. Negotiate the TAPI version
3. Select a device to use
4. open that device using LineOpen
5. Look for the callback message of %LINE_CALLSTATE and specifcally %LINECALLSTATE_OFFERING
6. At that point, use LINE_CALLINFO to get the information of the incoming call
or
5. Use LineGetCallStatus to see if it is offering
6. Same as 6 above
Am I missing something? Does anybody have PB examples of anything close to this?
I go through the steps, but the code under LINECALLSTATE never is executed and LIneGetCallStatus gives an unknown status.
oh, and yes, there is a phone line connected that can be used by other programs

Any help would be appreciated.
Thanks!
------------------
Bill Scharf
[This message has been edited by Bill Scharf (edited May 02, 2007).]
Comment