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);
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.