TSPI_lineDevSpecific
- From: jhguan@xxxxxxx
- Date: Thu, 17 Jul 2008 02:59:43 -0700 (PDT)
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;
}
.
- Follow-Ups:
- Re: TSPI_lineDevSpecific
- From: Andreas Marschall [MVP TAPI]
- Re: TSPI_lineDevSpecific
- Prev by Date: Re: How can I simulate a pickup phone action when dialing out
- Next by Date: Re: TSPI_lineDevSpecific
- Previous by thread: How can I simulate a pickup phone action when dialing out
- Next by thread: Re: TSPI_lineDevSpecific
- Index(es):