TAPI 3.0 : Problem in Digit Detection
I am facing problem while detecting the digits from the telephone line over the modem.
The program is able to detect the digits, but the thing is that the program is sometimes able to detect dogits but sometimes it fails to do so. I mean in a single call some digits are detected and some digits are not. Secondly, sometimes it happends that the same digit is detected multiple times.
I have implemented this in VC++.
Here is the implementation of TE_DIGITEVENT,
case TE_DIGITEVENT :
ITDigitDetectionEvent * pDigitEvent;
hr = pEvent->QueryInterface(IID_ITDigitDetectionEvent, (void**)&pDigitEvent);
if (S_OK != hr)
AfxMessageBox( "Failed to get the interface for digits");
unsigned char pucDigit = NULL;
hr = pDigitEvent->get_Digit(&pucDigit);
if(S_OK != hr)
AfxMessageBox( "Failed to get digits." );
I can provide any other information if required so. but needs your support..
Thanks & Regards,
Qaisar Aftab Kiani