I have an application, which has it's own (indexed) database of
contacts. I would like to set it up that when there is an incoming
call, it will look up the caller's number, and update the caller id
info, so that the Phone program will show the user's name, in the
incoming call window.
I tried using the new State and Notification Broker, but though I was
able to update the user's name in the registry, it does not help for
the Phone program, seemingly because it's too late, or that the phone
program ignores the registry change.
Therefore, I imagine, the only possible way would be to use TAPI to
intercept the call and updating the info. I am just wondering if anyone
out there has tried this, or has any information or suggestions about
setting this up.
If you know of any code samples, that would even be better.
Thanks in advance,
LionScribe

Re: Trapping Caller ID by Fabien

Fabien
Fri Nov 24 12:05:38 CST 2006

Hi,

I don't undertsand, are the contacts stored in registry ? Are you sure
your application desn't use Outlook to save the contacts ? If it is the
case, you can try to modify your data with
Microsoft.WindowsMobile.PocketOutlook with the Contact object.

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/




lionscribe a =E9crit :

> I have an application, which has it's own (indexed) database of
> contacts. I would like to set it up that when there is an incoming
> call, it will look up the caller's number, and update the caller id
> info, so that the Phone program will show the user's name, in the
> incoming call window.
> I tried using the new State and Notification Broker, but though I was
> able to update the user's name in the registry, it does not help for
> the Phone program, seemingly because it's too late, or that the phone
> program ignores the registry change.
> Therefore, I imagine, the only possible way would be to use TAPI to
> intercept the call and updating the info. I am just wondering if anyone
> out there has tried this, or has any information or suggestions about
> setting this up.
> If you know of any code samples, that would even be better.
> Thanks in advance,
> LionScribe


Re: Trapping Caller ID by lionscribe

lionscribe
Sun Nov 26 11:16:15 CST 2006

I see I haven't made myself clear, so I am re-wording my post.
I have an application, which has it's own read-only database of company
contacts. It has around 10,000 contacts, and it is therefore
understandable that the user does not want it in it their Outlook
contacts, therefore it is in a seperate database, with it's own
interface..
I have setup the application so that users can dial out to the contact
if they have a phone pocket pc.
What I want to be able to do, is that when there is an incoming call,
to have my application look up the number in it's database, and if
there is a match, fill in the name into the caller-id.
I could set it up that a small window pops up with the name (which
would be rather simple to set up in Mobile 5.0), but I would rather
have that it add the name to the caller-id info itself, so that the
call-log will later show the name.
I looked over the TAPI documentation, and it seems that in TAPI 2 there
is no way to set the CallerID info, you can just retrieve it. If that
assumption is correct, then there is no way to do this using TAPI. Is
that correct???
Another possible method may be to set it up that the phone application
should also query my application for a matching name, just like I
imagine it does with Outlook. Is that possible???
Any input would be very appreciated.
Lionscribe