首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Windows Mobile >

◆请教哪位朋友提供一个截获来电的例子,送100分◆

2012-03-09 
◆请问哪位朋友提供一个截获来电的例子,送100分◆如题!我现在正在学习用c#开发smartphone下的程序谢谢![解决

◆请问哪位朋友提供一个截获来电的例子,送100分◆
如题!
我现在正在学习用c#开发smartphone下的程序
谢谢!

[解决办法]
Windows Mobile-based Device Features > Communication Services and Networking > CellCore > Radio Interface Layer > RIL Application Development > RIL Call Overview

To receive an inbound voice call, the cellular TSP and the RIL driver complete the following steps:

The radio detects an incoming call.
RIL generates a RIL_NOTIFY_RING message with the following values set in the RILRINGINFO structure.Member Value
dwCallType RIL_CALLTYPE_VOICE
dwAddressId 0

RIL generates a RIL_NOTIFY_CALLERID message with the following values set in the RILREMOTEPARTYINFO structure.Member Value
raAddress "4255551212 "
dwValidity RIL_REMOTEPARTYINFO_VALID

TAPI calls the RIL_GetLineStatus function to obtain the status of the call. The return value should be RIL_RESULT_OK with the lpData parameter containing a pointer to the RIL_LINESTAT_RINGING constant. This step may occur multiple times.
Connection Manager requests that TAPI obtain the mute state by calling RIL_GetAudioMuting. The return value should be RIL_RESULT_OK - FALSE (not muted). This step may occur multiple times.
TAPI calls the RIL_GetCallList function to obtain a list of available calls. This step may occur multiple times. The return value should be RIL_RESULT_OK with the lpData parameter containing a pointer to RILCALLINFO with the following values set.Member Value
dwID 1
dwDirection RIL_CALLDIR_INCOMING
dwStatus RIL_CALLSTAT_INCOMING
dwType RIL_CALLTYPE_VOICE
dwMultiparty RIL_CALL_SINGLEPARTY
raAddress "14255551212 "

When the user answers the phone, TAPI calls RIL_Answer.
The radio answers the call.
The RIL driver returns RIL_RESULT_OK with lpData = NULL for the answer command.
The RIL driver generates the RIL_NOTIFY_CONNECT and RIL_CALLTYPE_VOICE constants.
The TSP calls RIL_SetAudioDevices to set RIL_AUDIO_HANDSET as the device for both Tx and Rx audio. The return value should be RIL_RESULT_OK.
TAPI calls the RIL_GetLineStatus function to make sure that the call has been answered. The return value should be RIL_RESULT_OK with the lpData parameter pointing to the RIL_LINESTAT_CALLINPROGRESS constant.
If an incoming call notification is received by Connection Manager via TAPI while a data connection is active, the Connection Manager will request a disconnect of the data connection and wait for a response from the radio that the data is appropriately disconnected before receiving the incoming call. The incoming call will not be received if the radio does not disconnect the data connection. If the data connection is capable of a suspend and resume, the radio should mark the data connection as suspended.

Under normal operation, if a voice call is being initiated, a lower priority connection cannot be initiated at the same time. But certain situations can occur when data connections are requested to the radio before the notification about an incoming call reaches the Connection Manager. In this case, the data connection is rejected in favor of the possible voice call if both connections cannot be connected concurrently. Another acceptable behavior would be to reject the voice call and connect data, but this might lead to poorer user experience.

Certain applications might also make connection requests directly to the radio, without going through the Connection Manager. If the requested connection uses radio resources, Connection Manager will detect those connections, and keep an internal fake connection object classified as an alien connection which has a higher priority than data connections and lower priority than other Connection Manager voice connections. Thus, if a voice call is requested, the alien call will be disconnected by Connection Manager, and the voice call will be made once the alien connection is detected to be disconnected.



Note By default, simultaneous data and voice connections are not supported. This capability is enabled only if the RIL driver sends the RIL_NOTIFY_SYSTEMCAPSCHANGED notification set to RIL_SYSTEMCAPS_VOICEDATA.

[解决办法]
c++的可以吗?
[解决办法]
有C++的吗 : 麻烦发邮箱 kingflute@126.com
谢谢了
[解决办法]
有C++的吗 : 麻烦发邮箱 chenzhongfang@163.com
谢谢了
[解决办法]
有C++的吗 : 麻烦发邮箱 xu_kem@163.com
谢谢了
[解决办法]
100分就要人家发代码给你。
那人家已经做好的许多产品岂不是晕掉了。
我有现成的代码,有偿转让
770824170
[解决办法]
顶楼上。
===================
但是方便的话C++代码我也想要。。。
yiban@139.com
万分感谢!!!:)
[解决办法]
这个在SDK里可以查到嘛。
C#直接用不了,必须使用非托管代码。
[解决办法]
现在还是用C++的多些。。。你可以看这个:http://download.csdn.net/source/180559
[解决办法]
这个很简单嘛。TAPI就弄搞定。
[解决办法]
c#用来开发那种cs结构的程序很快,也很有效,加上sql。
像这种程序嘛,一定要C++来开发的,用native api.

热点排行