TAPI_EVENT.TE_CALLINFOCHANGE 事件从未发生
我的过滤器包含下面的所有内容。我想在接到电话时查看每个事件。这些都发生了:
--- 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);
My filter is contains everything on below. I wanted to see every event while an incoming phone call. And these are happened:
--- incoming call
callhub
callnotification
callstate
address
--- incoming call disconnected
callhub
callstate
I want to get caller id. I can see the called id while line connected to my phone. But it is not firing TAPI_EVENT.TE_CALLINFOCHANGE
event.
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);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最近我在做tapi。这是示例代码......
Recently i worked on tapi. Here is the sample code.....
你需要这些活动。我一开始也遇到过同样的问题。如果没有这些事件,CallInfo 将不会被触发。
抱歉,我也忘记了这一点:
也需要触发。
You need these events. I have had the same issue in the beginning. Without these events CallInfo will not be triggered.
Sorry I also forgot this:
Is needed also to trigger.