• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 635
  • Last Modified:

Answer call

Hi experts,

How can I make code to answer any incoming call automatically? I will appreciate answer is with code in c# or vb.net.

Regards,
0
mukesh39
Asked:
mukesh39
  • 5
  • 3
1 Solution
 
mukesh39Author Commented:
Waiting for reply!!!
0
 
pgnatyukCommented:
What do you mean "to answer any incoming call automatically"?
You know that Microsoft does not like such things.  The phone itself will interrupt any running application and the user will answer. If you will override this behavior your application will be not certified by MS.

From own experience I can say that the users were happy to have a button on our application main screen that call the standard Windows Phone application. We simply past the phone number from our application and call Dial.

Here, in MSDN thread, you will a solution in VB - press the talk (VK_TTALK) button instead of the user:

http://social.msdn.microsoft.com/forums/en-US/netfxcompact/thread/a91d7975-cfe6-4479-b73e-169ec3a14762/
http://social.msdn.microsoft.com/forums/en-US/vssmartdevicesvbcs/thread/77a4c230-494c-4636-a798-0fc89fff73e8/

You can use TAPI:
Creating a custom Phone App on Windows Mobile (Part 1)
http://www.devsource.com/c/a/Architecture/Creating-custom-Phone-App-Windows-Mobile/2/

The SDK also has few samples (there is an example how to make the call):
http://msdn.microsoft.com/en-us/library/bb158662.aspx

CodeProject. TAPI 3.0 Application development using C#.NET
http://www.codeproject.com/KB/IP/devangpro.aspx
(I'd recommend you to use this article).

One more example:
How to manage incoming call with OpenNetCf TAPI (Windows Mobile C#)
http://programmaremobile.blogspot.com/2009/10/how-to-manage-incoming-call-with.html

Here is an interesting article (just for your to know):
Windows Mobile Revolution: call recording supported on almost ALL handsets!
http://www.smartphonemag.com/cms/blog/9/windows-mobile-revolution-call-recording-supported-almost-all-handsets
0
 
pgnatyukCommented:
Here you will see how to make the phone call in C# and VB:
http://msdn.microsoft.com/en-us/library/aa446543.aspx
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
pgnatyukCommented:
I provided all information needed including the examples of real VB and C# programs.
0
 
pgnatyukCommented:
I think, http://a#32052892 is the answer.

0
 
mukesh39Author Commented:
Hi,

Can I add my comments? My question was "automatically answering incoming call", none of reference works with Windows Mobile.

Let me know what can I provide to help moderator.

If expert can provide me help, still I am open to accept solution.
0
 
pgnatyukCommented:
Guys, you can close this. I do not need the points. It is simply a matter of a fact: http://a#32052892 is the answer. All examples and all explanations are about Windows Mobile. For example:

How to manage incoming call with OpenNetCf TAPI (Windows Mobile C#)
http://programmaremobile.blogspot.com/2009/10/how-to-manage-incoming-call-with.html

The subject is difficult. There are the privileged API. It can work differently on different devices. It is not for a beginner.
0
 
mukesh39Author Commented:
It did not helped me to solve problem.  I got solution from another forum.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now