Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Revision as of 04:03, 20 July 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Call termination with RCall::HangUp

From 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 04:03.
101 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×