muze 0 Junior Poster in Training

hello guys.... I am making small TAPI prof which tells about the incoming of the calls.
- When first time I call, it detects the incoming call.
- But when I drop the call and Call again, it does not detects it.

here is small code that is responsible for this job.

CTapiLine::OnNewCall (pCall); // a class' function
	CAnswerDlg* pDlg = (CAnswerDlg*) AfxGetApp()->m_pMainWnd; // application dialog
	pDlg->OnNewCall (pCall); //a function in the application

Now what should I add to this code for the above mentioned problem.