TSPI_lineDevSpecific



When I use TSPI_lineDevSpecific, my TAPI 3 application takes much time
for the start. This is why?
thank you in advance.

LONG TSPI_lineDevSpecific(
DRV_REQUESTID dwRequestID,
HDRVLINE hdLine,
DWORD dwAddressID,
HDRVCALL hdCall,
LPVOID lpParams,
DWORD dwSize
)
{
std::string tapi_msg = (char *)lpParams;

m_log.LogTrace("TSPI_lineDevSpecific hdLine=%x hdCall=%x lpParams=
%s", hdLine, hdCall, tapi_msg.c_str());

std::vector<std::string> stdResults;

if (!SplitTapiMsg(tapi_msg.c_str(), "|", stdResults, true))
return generic_failure;

if (!stdResults[0].compare("login")) {

this->m_type = stdResults[0];
this->m_host = stdResults[1];
this->m_port = 0;
try {
this->m_port = atoi(stdResults[2].c_str());
} catch(...) {
//
}
this->m_end = stdResults[3];
this->m_user = stdResults[4];
this->m_password = stdResults[5];

this->m_realname = "";
… }

} else if (!stdResults[0].compare("operator")) {


}

return 0;
}
.