http://discussion.forum.nokia.com/forum/showthread.php?s=&threadid=51531&highlight=%2Aanswer+call%2A
TBool CAnswerActive::HangUpTheCall(void)
{
Cancel();
TBool Ret = EFalse;
TName callName;
RLine::TLineInfo lineInfo;
TRequestStatus status;
RCall::TStatus callStatus;
iLine.GetStatus(callStatus);
if(callStatus == RCall::EStatusRinging)
{
iLine.GetInfo(lineInfo);
callName.Copy(lineInfo.iNameOfCallForAnswering);
iCall.OpenExistingCall(iLine, callName);
iCall.AnswerIncomingCall(status);
User::WaitForRequest(status);
iCall.HangUp();
iCall.Close();
Ret = ETrue;
}
return Ret;
}
--------------------------------
use iCall.OpenExistingCall(iLine, callName) to create the incoming call not call.OpenNewCall(...