开发者

Answering machine in windows mobile with C#

I want to develop an automatic answering machine in windows mobile with C#. It should auto-answer incoming calls and play an audio file.

Does anyone has any ideas? or ma开发者_Go百科y you know an existing app?


To answer the phone, use the TAPI function lineAnswer.

To play a pre-recorded messasge:

  1. Use the TAPI function lineGetID( ..., "wave/out" ); to get a handle to the wav device associated with the phone hardware.
  2. Use the ID received from step 1 with waveInOpen to play a wav file to the telephone device.

To record calls:

  1. Turn on AllowInCallRecording
  2. Use the TAPI function lineGetID( ..., "wave/out" ); to get a handle to the wav device associated with the phone hardware.
  3. Use the ID received from step 2 with waveOutOpen to pipe data from the telephone to a wav file.

For C#, you will need to P/Invoke these commands or see if they are provided by the OpenNetCF framework.

-PaulH

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜