It's veyry simple
In your TAPI callback function
Whenever your get the meaage
LINE_CALLSTATE and the dwParam1 is LINECALLSTATE_CONNECTED
You call the function lineMonitorDigits, from now your application can get the detect the digit.
And you can get the digit which press by caller or callee, and whenever the message LINE_MONITORDIGITS come.
you cheack dwParam2 parameter to get the digit.
if(dwParam2 == LINEDIGITMODE_DTMF)
{
short digit = LOBYTE(dwParam1);
}
Have success full.
|