<DIV><BR>I am Working on TAPI 2.0 and I develop a Software like Predictive Dialer IN Visual C++ 6 and <BR>Facing Some Problems. </DIV>
<DIV>Problem 1: Problem is that I want to Detect Any Tone e.g(Fax Tone, Ringing Tone, Busy Tone.....) <BR>Problem 2: My program also skip few Events (Ringning, Accepted).</DIV>
<DIV>I Used these Steps<BR> <BR>Line Initialize:<BR>----------------<BR> lparams = new LINEINITIALIZEEXPARAMS;<BR> lparams->dwOptions =LINEINITIALIZEEXOPTION_USEHIDDENWINDOW;<BR> lparams->dwTotalSize = sizeof (LINEINITIALIZEEXPARAMS);<BR> lparams->dwNeededSize = sizeof (LINEINITIALIZEEXPARAMS)*2;<BR> lparams->Handles.hEvent = MyCallBack;</DIV>
<DIV>1>lineInitializeEx(&hLineApp,hcurr,MyCallBack,szAppName,&no,&ApiVersion,lparams)<BR> .....(Few Line of Code)</DIV>
<DIV>2>lineOpen(hLineApp,dwDeviceID,&hLine, ApiVersion,0, (DWORD)MyCallBack,<BR> LINECALLPRIVILEGE_MONITOR,LINEMEDIAMODE_INTERACTIVEVOICE , 0)<BR> ......(Few Line of Code)</DIV>
<DIV>Select Device<BR>------------- <BR> lineGetDevCaps(hLineApp,i,dwAPIVersion,0,lpLineDevCaps)<BR> .....(Few Line of Code)</DIV>
<DIV> </DIV>
<DIV>Dial Number<BR>-----------<BR> lineMakeCall(hLine,&lphCall,lpsz ,0,NULL);</DIV>
<DIV> </DIV>
<DIV>On Event Line_Reply</DIV>
<DIV>-------------------<BR> lineSetCallPrivilege(*lphCall,LINECALLPRIVILEGE_MONITOR);</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>On Event LINECALLSTATE_CONNECTED<BR>--------------------------------<BR> LINEMONITORTONE LineTone[10]; </DIV>
<DIV> LineTone[0].dwAppSpecific = CallBackInst; <BR> LineTone[0].dwDuration = 750;<BR> LineTone[0].dwFrequency1 = 400;<BR> ......(Few Line of Code)</DIV>
<DIV> </DIV>
<DIV> lineMonitorTones(lphCall,LineTone,0);</DIV>
<DIV><BR>I Use MODEM<BR> Maze InterNal 56k Fax Modem ITU-T V.92/90</DIV>
<DIV> </DIV>
<DIV><BR>Thanks </DIV>
<DIV>As Kiran</DIV>
<DIV><A href="mailto:shahzi77@yahoo.com">shahzi77@yahoo.com</A></DIV>
<DIV><A href="mailto:askiran2002@yahoo.com">askiran2002@yahoo.com</A></DIV>
<DIV><A href="mailto:shah_khunbati@hotmail.com">shah_khunbati@hotmail.com</A></DIV><p><hr size=1><font face=arial size=-1>Do you Yahoo!?<br>
<a href="http://taxes.yahoo.com/filing.html"><b>Yahoo! Finance Tax Center</a></b> - File online. File on time.