Call termination with RCall::HangUp
From Forum Nokia Wiki
Introduction
When we terminate an incoming call with RCall then we don't get a missed call in the Missed calls log. However, a short note "calling ..." for a short duration. The note can't be terminated by 3rd party.
Header Required:
#include <etel.h>
Library Required:
LIBRARY etel.lib
Example source code
We can put the following code inside the RunL() of call monitoring active object.
TName callName;
RTelServer::TPhoneInfo phoneInfo;
RLine::TLineInfo lineInfo;
RPhone::TLineInfo plineInfo;
RLine::TCallInfo callInfo;
User::LeaveIfError(iTelServer.Connect());
User::LeaveIfError(iTelServer.GetPhoneInfo(0, phoneInfo));
User::LeaveIfError(iPhone.Open(iTelServer, phoneInfo.iName));
User::LeaveIfError(iPhone.GetLineInfo(0, plineInfo));
User::LeaveIfError(iLine.Open(iPhone, plineInfo.iName));
User::LeaveIfError(iLine.GetCallInfo(0,callInfo));
User::LeaveIfError(iLine.GetInfo(lineInfo));
callName.Copy(lineInfo.iNameOfCallForAnswering);
User::LeaveIfError(iCall.OpenExistingCall(iLine, callName));
User::LeaveIfError( iCall.HangUp() );
iCall.Close();
iLine.Close();
iPhone.Close();
iTelServer.Close();
Retrieved from "http://wiki.forum.nokia.com/index.php/Call_termination_with_RCall::HangUp"