×
Namespaces

Variants
Actions

Call termination with RCall::HangUp

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: mahbub_s60 (27 Feb 2009)
Last edited: hamishwillee (20 Jul 2012)

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();
This page was last modified on 20 July 2012, at 07:03.
82 page views in the last 30 days.
×