Controlling the phone

  • Thread starter Thread starter davebythesea
  • Start date Start date
D

davebythesea

Hi folks,

Is there a way we can control the phone through the compact framework?

For example, I would like to (if possible) force incoming calls to go
straight to voice mail? Things like that.

Thanks again,
Dav
 
Must of these things is achieved using TAPI. Not too sure about forcing the
phone to answer machine though.
 
Thanks for the tip Simon,

I wonder if the TAPI is accessible via pInvoke? MMh, I think its going to be
tricky...

Oh well, we will see.

Cheers,
Dav
 
You should be able to handle this by hooking the SystemState notification
for an incoming call. Then send a press of the red key (using keyb_event) to
reject the call, the network will send it to your voicemail at this point.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
 
This is sounding like what I could use! And maybe it will get the job done a
bit quicker and easier than using pInvoke of the TAPI (yikes ;)

Thanks a lot for the tip Peter. I will try this method first and see how I
get along.

Cheers,
Dav
 
I wonder then, if something like this might do the trick? -

public partial class Form1 : Form
{
private SystemState systemState;

public Form1()
{
InitializeComponent();

systemState = new SystemState(SystemProperty.PhoneIncomingCall);

systemState.Changed += new
ChangeEventHandler(systemState_Changed);
}

void systemState_Changed(object sender, ChangeEventArgs args)
{
// reject call, mimic red button press
}
}
 
*Everything* is accessible by P/Invoke. If you search the archives for TAPI
wrappers, you'll find some.

Paul T.
 
*Everything* is available via P/Invoke. Just take time and experience, and
the former will give you the latter.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
Hi again,

Last night I thought I'd look into TAPI, so after doing some googling and
looking on msdn, I put together a first effort C# TAPI pInvoke project for
Windows Mobile 5. I referenced a DLL from Windows\System32 (tapi3.dll I think
it was). But, shouldnt I be referencing a Mobile version of the tapi.dll?
Thing is I couldnt find it anywhere in the Mobile SDK?

Is it ok to use a Win32 dll reference for a Smart Device project?

Dav

The thing I find weird is, the project
 
You want the cellcore.dll and the coredll.dll to use TAPI on devices (phone
edition or professional devices). For example the function lineInitializeEx
can be found in coredll.dll.
 
Thanks Simon, I was nearly way off track there!

Simon Hart said:
You want the cellcore.dll and the coredll.dll to use TAPI on devices (phone
edition or professional devices). For example the function lineInitializeEx
can be found in coredll.dll.
 
Back
Top