Using RIL to hangup unwanted calls
2009-11-10 14:52
387 查看
When a call is coming, the RIL will call our NotifyCallback functon. The first call will be with RIL_NOTIFY_RING notification code. The it will be called with RIL_NOTIFY_CALLERID notification code. At this point the the lpData member will contain the pointer to the structure RILREMOTEPARTYINFO. The raAddress member contains the caller address (number).
The RIL function RIL_Hangup can be used to hangup a call. The behavior of this function is defined by the RIL driver component. The function hangups a data call if one is active or a voice call in one is present. If both are active at the time of calling, it will hangup the voice call.
The sample application presented here is a single document interface document using MFC. Upon receiving the RIL_NOTIFY_CALLERID, the application searches a database to see whether the number is present or not. If the number is present in the database it will hangup the call. Using the main user interface you can insert, edit or delete the numbers in the database.
To compile this sample you should install Windows CE. An evaluation copy can be downloaded from the Microsoft Windows CE website.
The RIL function RIL_Hangup can be used to hangup a call. The behavior of this function is defined by the RIL driver component. The function hangups a data call if one is active or a voice call in one is present. If both are active at the time of calling, it will hangup the voice call.
The sample application presented here is a single document interface document using MFC. Upon receiving the RIL_NOTIFY_CALLERID, the application searches a database to see whether the number is present or not. If the number is present in the database it will hangup the call. Using the main user interface you can insert, edit or delete the numbers in the database.
To compile this sample you should install Windows CE. An evaluation copy can be downloaded from the Microsoft Windows CE website.
相关文章推荐
- 【转】Using RIL to hangup unwanted calls
- How to make fundamental Winsock calls to set up communication using the internet Protocol
- Using the HotKey to wake up your application like KingSoft Dictionary does(MFC)
- Hang up voice calls(转)
- attempting to bokeyaunrun eclipse useing the jre instead of jdk,to run eclipse using
- Low-level Windows API hooks from C# to stop unwanted keystrokes
- How To Set Up a Firewall Using IPTables on Ubuntu 14.04
- How to log application API calls using import module addresses
- Using Radio Interface Layer (RIL) to retrieve Cell Tower Information on Windows Mobile
- 半监督算法:(Using Weighted Nearest Neighbor to Benefit from Unlabeled Data)
- How to set up your own private RTMP server using nginx
- [Security] Automatically adding CSRF tokens to ajax calls when using jQuery--转
- Adpatch seems to hang when adworker is creating Database object using xdf file
- rails4 5.12 Using partials to clean up duplication in views
- [转]How to find who is using / eating up the Virtual Address Space on your SQL Server
- <转>CProcessData : A template class to ease up SendMessage calls across processes
- This document has errors that must be fixed before using HTML Tidy to generate a tidied up version.
- UN Calls For Action to Reduce Climate-Related Risks
- How to regress out unwanted vectors