Jump to content

Smartphone, .NET 2003, outgoing call


Guest mavl4219

Recommended Posts

Guest mavl4219

Hy!

I've tried almoust any Smartphone forum and newsgroup, and I still didn't solve my problem.

I want to write invisible application (running in the background, without GUI), that would be able to intercept outgoing phone calls. My program has to be able to drop outgoing phone call, add some prefix and dial again, if needed.

Program has to run on Windows Mobile 2003 and newer.

I'm not pretty good at embedded visual c++, but i have alot of practise in visual basic 6, and Visual Basic .NET 2003.

I found some procedure, written by Andreas (MVP):

- lineIntializeEx()

- lineNegotiateAPIVersion() / lineGetDevCaps() / lineGetAddressCaps() to find

the line(s) you're interested in

- lineOpen(_MONITOR) the line(s)

- wait for LINE_APPNEWCALL / LINE_CALLSTATE messages

- lineGetCallInfo() to get CalledID and store it later usage

- lineSetCallPrivilege(_OWNER)

- lineDrop() to intercept the outgoing call

- wait for LINE_CALLSTATE messages with LINECALLSTATE_IDLE

- lineDeallocateCall()

- do what ever you need to do

- lineMakeCall() with the stored CalledID

- lineSetCallPrivilege(_MONITOR)

- the other app takes over

But I can't get any data in LineCallBackFunc function, probably because i'm testing in the emulator (i can't connect my device to evc ide or visual basic 2003 .net).

There is another question:

Would LineCallBackFunc be triggered when my application runs in background?

Can someone give me some sample code or something, that will run on SmartPhone with Windows Mobile 2003?

Thnx, Mario

Link to comment
Share on other sites

Guest oferhalevi

Hi,

Without blatantly trying to endorse the use of this software or another, can I just point you to an interesting framework called m-Network. It's a cross-platform (MS Smartphone and Symbian at the moment) development framework, which supports the functionality you're after (see mrPhone).

If you're interested in more details, you can visit the developer website (http://developer.intuwave.com), register (for free), and go to the Reference section.

Let me know if you require any more information,

Ofer Halevi

Hy!

I've tried almoust any Smartphone forum and newsgroup, and I still didn't solve my problem.

I want to write invisible application (running in the background, without GUI), that would be able to intercept outgoing phone calls. My program has to be able to drop outgoing phone call, add some prefix and dial again, if needed.

Program has to run on Windows Mobile 2003 and newer.

I'm not pretty good at embedded visual c++, but i have alot of practise in visual basic 6, and Visual Basic .NET 2003.

I found some procedure, written by Andreas (MVP):

- lineIntializeEx()

- lineNegotiateAPIVersion() / lineGetDevCaps() / lineGetAddressCaps() to find

the line(s) you're interested in

- lineOpen(_MONITOR) the line(s)

- wait for LINE_APPNEWCALL / LINE_CALLSTATE messages

- lineGetCallInfo() to get CalledID and store it later usage

- lineSetCallPrivilege(_OWNER)

- lineDrop() to intercept the outgoing call

- wait for LINE_CALLSTATE messages with LINECALLSTATE_IDLE

- lineDeallocateCall()

- do what ever you need to do

- lineMakeCall() with the stored CalledID

- lineSetCallPrivilege(_MONITOR)

- the other app takes over

But I can't get any data in LineCallBackFunc function, probably because i'm testing in the emulator (i can't connect my device to evc ide or visual basic 2003 .net).

There is another question:

Would LineCallBackFunc be triggered when my application runs in background?

Can someone give me some sample code or something, that will run on SmartPhone with Windows Mobile 2003?

Thnx, Mario

<{POST_SNAPBACK}>

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.