On Tue, 21 Sep 2004 01:26:14 -0000, Jeff Gibson
<[EMAIL PROTECTED]> wrote:
I am in the middle of developing a utility and part of what I need to do
is test to see if the phone has an active connection. IE an active
voice call (inbound or outbound). Is there an API call that will return
this status to me? I have tried TelIsPhoneConnected() but my Treo
crashes every time I execute the API call. TelGetCallState() returns
"not supportted". I really hate to poll for phone events but that looks
like the only way at this point.
Any help or ideas?????
The treo600 API provides an API for this:
PhnLibGetPhoneCallStatus
it's discussed here: (\plugged in login required)
http://developers.palmone.com/pe/forums/displaypost.jsp?postID=10103613
// Phone Call Status flags
#define phnVoiceCall1Active 0x0001 // There is a voice call active on line1
#define phnVoiceCall2Active 0x0002 // There is a voice call active on line2
#define phnCSDCallActive 0x0004 // There is a data call currently active
#define phnGPRSCallActive 0x0008 // There is a GPRS session active
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/