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:
- Use the TAPI function lineGetID( ..., "wave/out" ); to get a handle to the wav device associated with the phone hardware.
- Use the ID received from step 1 with waveInOpen to play a wav file to the telephone device.
To record calls:
- Turn on AllowInCallRecording
- Use the TAPI function lineGetID( ..., "wave/out" ); to get a handle to the wav device associated with the phone hardware.
- 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
精彩评论