<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&nbsp; also skip few Events (Ringning, Accepted).</DIV>
<DIV>I Used these Steps<BR>&nbsp;<BR>Line Initialize:<BR>----------------<BR>&nbsp; lparams = new LINEINITIALIZEEXPARAMS;<BR>&nbsp; lparams-&gt;dwOptions =LINEINITIALIZEEXOPTION_USEHIDDENWINDOW;<BR>&nbsp; lparams-&gt;dwTotalSize = sizeof (LINEINITIALIZEEXPARAMS);<BR>&nbsp; lparams-&gt;dwNeededSize =&nbsp; sizeof (LINEINITIALIZEEXPARAMS)*2;<BR>&nbsp; lparams-&gt;Handles.hEvent = MyCallBack;</DIV>
<DIV>1&gt;lineInitializeEx(&amp;hLineApp,hcurr,MyCallBack,szAppName,&amp;no,&amp;ApiVersion,lparams)<BR>&nbsp;&nbsp;&nbsp; &nbsp;.....(Few Line of Code)</DIV>
<DIV>2&gt;lineOpen(hLineApp,dwDeviceID,&amp;hLine, ApiVersion,0, (DWORD)MyCallBack,<BR>&nbsp;&nbsp; LINECALLPRIVILEGE_MONITOR,LINEMEDIAMODE_INTERACTIVEVOICE&nbsp; , 0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ......(Few Line of Code)</DIV>
<DIV>Select Device<BR>------------- <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lineGetDevCaps(hLineApp,i,dwAPIVersion,0,lpLineDevCaps)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;.....(Few Line of Code)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Dial Number<BR>-----------<BR>&nbsp;lineMakeCall(hLine,&amp;lphCall,lpsz ,0,NULL);</DIV>
<DIV>&nbsp;</DIV>
<DIV>On Event Line_Reply</DIV>
<DIV>-------------------<BR>&nbsp;lineSetCallPrivilege(*lphCall,LINECALLPRIVILEGE_MONITOR);</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>On Event LINECALLSTATE_CONNECTED<BR>--------------------------------<BR>&nbsp;LINEMONITORTONE LineTone[10]; </DIV>
<DIV>&nbsp;LineTone[0].dwAppSpecific&nbsp;&nbsp;= CallBackInst; <BR>&nbsp;LineTone[0].dwDuration&nbsp;&nbsp;&nbsp;= 750;<BR>&nbsp;LineTone[0].dwFrequency1&nbsp;&nbsp;= 400;<BR>&nbsp;......(Few Line of Code)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;lineMonitorTones(lphCall,LineTone,0);</DIV>
<DIV><BR>I Use MODEM<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Maze InterNal 56k Fax Modem ITU-T V.92/90</DIV>
<DIV>&nbsp;</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.