TAPI 3.0 : Problem in Digit Detection
Hi,
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 :
{
AfxMessageBox("Digit Detected");
ITDigitDetectionEvent * pDigitEvent;
hr = pEvent->QueryInterface(IID_ITDigitDetectionEvent, (void**)&pDigitEvent);
if (S_OK != hr)
{
AfxMessageBox( "Failed to get the interface for digits");
break;
}
unsigned char pucDigit = NULL;
hr = pDigitEvent->get_Digit(&pucDigit);
if(S_OK != hr)
{
AfxMessageBox( "Failed to get digits." );
pDigitEvent->Release();
break;
}
m_Digit=pucDigit;
pDigitEvent->Release();
break;
}
I can provide any other information if required so. but needs your support..
Thanks & Regards,
Qaisar Aftab Kiani
|