Sleep(100); // Time delay to provide message display.
int r = 0;
// If lineMakeCall succeeded, then drop the call.
if (m_hCall)
{
r = lineDrop (m_hCall, NULL, 0);
Sleep(500);
r = lineDeallocateCall (m_hCall); // Deallocate call handle.
}
// Close the current line.
if (m_hLine)
{
r = lineClose (m_hLine);
if(r<0)
r=0;
}
if (m_hLineApp)
{
lineShutdown(m_hLineApp);
}