}
else
{
- //fetch active calls to show appropriate scene
- pCallList = static_cast<ArrayListT<AppCallInfo>*>(__pActiveCallList->GetValuesN());
- //fetch the held call on disconnecting the active call and activate it.
- r = pCallList->GetAt(0, heldCall);
- if (r == E_SUCCESS)
+ if(__pIncomingCall == null)
{
- HoldActiveCall(&heldCall, false);
- delete pCallList;
+ //fetch active calls to show appropriate scene
pCallList = static_cast<ArrayListT<AppCallInfo>*>(__pActiveCallList->GetValuesN());
+ //fetch the held call on disconnecting the active call and activate it.
+ r = pCallList->GetAt(0, heldCall);
+ if (r == E_SUCCESS)
+ {
+ HoldActiveCall(&heldCall, false);
+ delete pCallList;
+ pCallList = static_cast<ArrayListT<AppCallInfo>*>(__pActiveCallList->GetValuesN());
+ }
}
}