PDA

View Full Version : Intercepting and rewriting phone # before dial


Zillah
11-02-2006, 03:56 AM
Hi!

I'm a new windows mobile user, developer by trade. I have a need for an application that will intercept a dial attempt from contacts or smart dialing and apply some re-write rules to the number then proceeding with the dial as normal. I've not found such a program for WM (I use TakePhone to do it on Treo 650) so I decided to try to write it!

This is for Windows Mobile 5 (on a wizard, if it matters).

I'm a Java developer, and rarely use Windows so I'm not so up on the technology used for this kind of thing, but no matter. I orderd the Windows Mobile 5 developer thing from MS and have it all installed. Using the managed code Microsoft.WindowsMobile.Telephony stuff I can dial a phone number. I suppose I could even add a menu to the contact that would specifically run my code and then I could use the Phone.Talk thing to place the call, however, I'd really like to enable the program and just have it work in the background when it is enabled.

First, can this be done with managed code? If so, how! :) Any input would be appreciated. Also, if you know of software that does this already, I'll just go buy it.

Thanks in advance!

mamaich
12-02-2006, 08:49 AM
this should be possible to be done with managed code, but the only idea I have now is hooking RIL.DLL or COM-port communications. And the easiest way to hook something - is to use C/C++.

Zillah
14-02-2006, 04:20 AM
Thanks for the reply! I've done some searching on RIL and RILGSM and found minimal info regarding "hooking" it. It seems that the person most likely to have done it is "itsme" who has posted a bit of information regarding the entry points and functions available in said DLL.

I'll keep looking...