我的过滤器包含下面的所有内容。我想在来电时查看每个事件。这些都发生了:
--- incoming call
callhub
callnotification
callstate
address
--- incoming call disconnected
callhub
callstate
我想获取来电显示。当线路连接到我的手机时,我可以看到被叫 ID。但这不是触发TAPI_EVENT.TE_CALLINFOCHANGE
事件。
tapiObj.EventFilter = (int)(TAPI_EVENT.TE_ACDGROUP |
TAPI_EVENT.TE_ADDRESSDEVSPECIFIC |
TAPI_EVENT.TE_AGENT |
TAPI_EVENT.TE_AGENTHANDLER |
TAPI_EVENT.TE_AGENTSESSION |
TAPI_EVENT.TE_ASRTERMINAL |
TAPI_EVENT.TE_CALLHUB |
TAPI_EVENT.TE_CALLMEDIA |
TAPI_EVENT.TE_DIGITEVENT |
TAPI_EVENT.TE_FILETERMINAL |
TAPI_EVENT.TE_GATHERDIGITS |
TAPI_EVENT.TE_GENERATEEVENT |
TAPI_EVENT.TE_PHONEDEVSPECIFIC |
TAPI_EVENT.TE_PHONEEVENT |
TAPI_EVENT.TE_PRIVATE |
TAPI_EVENT.TE_QOSEVENT |
TAPI_EVENT.TE_QUEUE |
TAPI_EVENT.TE_REQUEST |
TAPI_EVENT.TE_TAPIOBJECT |
TAPI_EVENT.TE_TONEEVENT |
TAPI_EVENT.TE_TONETERMINAL |
TAPI_EVENT.TE_TTSTERMINAL |
TAPI_EVENT.TE_ADDRESS |
TAPI_EVENT.TE_CALLINFOCHANGE |
TAPI_EVENT.TE_CALLSTATE |
TAPI_EVENT.TE_CALLNOTIFICATION);