//Call connected successfully
r = E_SUCCESS;
//Add calls information to call log before deleting from active call list.
- /*IListT<AppCallInfo>* pCallList = pEndCallsList->GetValuesN();
+ IListT<AppCallInfo>* pCallList = pEndCallsList->GetValuesN();
if(pCallList != null)
{
AppCallInfo endCallInfo;
SaveCallInfoToLogsDb(endCallInfo);
}
delete pCallList;
- }*/
+ }
pEndCallsList->RemoveAll();
delete pEndCallsList;
}
//Incoming Call connected successfully
r = E_SUCCESS;
//save to ended call to call logs db.
- //SaveCallInfoToLogsDb(callToBeEnded);
+ SaveCallInfoToLogsDb(callToBeEnded);
}
break;
break;
}
//"Held" call successfully ended - Add call ended to call log database
- //SaveCallInfoToLogsDb(callToBeEnded);
+ SaveCallInfoToLogsDb(callToBeEnded);
//accept incoming call by Holding "Active" call using "TAPI_CALL_ANSWER_HOLD_AND_ACCEPT".
res = tel_answer_call(__pTapiHandle, incomingCallHandle, TAPI_CALL_ANSWER_HOLD_AND_ACCEPT, &HandleCallbackResponse, this);
IListT<AppCallInfo>* pCallList = pEndCallsList->GetValuesN();
if(pCallList != null)
{
-/* int callCount = pCallList->GetCount();
+ int callCount = pCallList->GetCount();
for (int index = 0; index < callCount; index++)
{
AppCallInfo endCallInfo;
{
SaveCallInfoToLogsDb(endCallInfo);
}
- }*/
+ }
delete pCallList;
pCallList = null;
}
conferenceCall.RemoveCallFromCallerList(index);
//update its status to individual call before saving to database
callToBeEnded.SetConference(false);
- // SaveCallInfoToLogsDb(callToBeEnded);
+ SaveCallInfoToLogsDb(callToBeEnded);
isParticipantCallEnded = true;
break;
}
//remove the conference call handle from active call list to avoid any processing in HandleIdleCallback().
pTelManager->__pActiveCallList->Remove(endConfCallInfo.GetCallHandle()->ToLong());
//Save "End" Conf. call info to call log database
- // pTelManager->SaveCallInfoToLogsDb(endConfCallInfo);
+ pTelManager->SaveCallInfoToLogsDb(endConfCallInfo);
//check if the ended call was the last call and show notification to user
bool isLastCall = (pTelManager->__pActiveCallList->GetCount() == 0);
//update missed status
endCallInfo.SetCalllogType(CALL_LOG_TYPE_VOICE_MISSED_UNSEEN);
//save ended call to call log db.
- SaveCallInfoToLogsDb(endCallInfo);
+ //SaveCallInfoToLogsDb(endCallInfo);
}
- /*//save ended call to call log db.
- SaveCallInfoToLogsDb(endCallInfo);*/
+ //save ended call to call log db.
+ SaveCallInfoToLogsDb(endCallInfo);
//notify listener that call is disconnected.
if (isLastCall == true)
}
//Save "End" call info to call log database
- //SaveCallInfoToLogsDb(endCallInfo);
+ SaveCallInfoToLogsDb(endCallInfo);
//notify listener that call is disconnected.
__pEventListener->HandleCallDisconnected(isLastCall, *pCallList);
delete pCallList;
long long startTime = 0;
SystemTime::GetTicks(startTime);
__pDialedCall->SetCallNotificationTime(startTime);
- SaveCallInfoToLogsDb(*__pDialedCall);
+ //SaveCallInfoToLogsDb(*__pDialedCall);
}
void
//transfer ownership to Active calls list
__pActiveCallList->Add(connectedCallHandle, *(pConnectedCall));
- if (pConnectedCall->GetCalllogType() == CALL_LOG_TYPE_VOICE_INCOMING)
+/* if (pConnectedCall->GetCalllogType() == CALL_LOG_TYPE_VOICE_INCOMING)
{
SaveCallInfoToLogsDb(*pConnectedCall);
- }
+ }*/
pConnectedCall = null;
//notify listener that call is connected.