|
@@ -210,6 +210,12 @@ public:
|
|
|
{
|
|
|
CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
auto ret = pFunc->AsyncRequest(ConnectService_Method_GetCallRouteType, ConnectService_MethodSignature_GetCallRouteType, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
m_context.clear();
|
|
|
return ret;
|
|
@@ -225,13 +231,25 @@ public:
|
|
|
}
|
|
|
return Error;
|
|
|
}
|
|
|
+ ErrorCodeEnum GetCallRouteType(ConnectService_GetCallRouteType_Req &Req, ConnectService_GetCallRouteType_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetCallRouteType(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
ErrorCodeEnum GetCallRouteType(ConnectService_GetCallRouteType_Req &Req, ConnectService_GetCallRouteType_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
{
|
|
|
CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
ErrorCodeEnum Error = GetCallRouteType(Req, spAsyncWait, dwTimeout);
|
|
|
if (Error == Error_Succeed) {
|
|
|
bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, dwTimeout);
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
LOG_ASSERT(Error || bEnd);
|
|
|
}
|
|
|
return Error;
|
|
@@ -241,6 +259,12 @@ public:
|
|
|
{
|
|
|
CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
auto ret = pFunc->AsyncRequest(ConnectService_Method_SetVideoCallRouteParams, ConnectService_MethodSignature_SetVideoCallRouteParams, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
m_context.clear();
|
|
|
return ret;
|
|
@@ -256,13 +280,25 @@ public:
|
|
|
}
|
|
|
return Error;
|
|
|
}
|
|
|
+ ErrorCodeEnum SetVideoCallRouteParams(ConnectService_SetVideoCallRouteParams_Req &Req, ConnectService_SetVideoCallRouteParams_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SetVideoCallRouteParams(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
ErrorCodeEnum SetVideoCallRouteParams(ConnectService_SetVideoCallRouteParams_Req &Req, ConnectService_SetVideoCallRouteParams_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
{
|
|
|
CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
ErrorCodeEnum Error = SetVideoCallRouteParams(Req, spAsyncWait, dwTimeout);
|
|
|
if (Error == Error_Succeed) {
|
|
|
bool bEnd = false;
|
|
|
- Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, dwTimeout);
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
LOG_ASSERT(Error || bEnd);
|
|
|
}
|
|
|
return Error;
|