Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 08:31, 4 January 2008.

How to resume a call

From Forum Nokia Wiki

If the call is on hold, one can resume the call using CTelephony::Resume(). It is very similar to CTelephony::Hold(). Pass CTelephony::Resume() the call ID to resume the call.

  • Libraries Needed: Etel3rdParty.lib and euser.lib
  • Asynchronous call

Since, CTelephony::Resume() is asynchronous, CTelephony::EResumeCancel is used to cancel.


#include <e32base.h>
#include <Etel3rdParty.h>
 
class CClientApp : public CActive
{
private:
    CTelephony* iTelephony;
    CTelephony::TCallId iCallId;
public:
    CClientApp(CTelephony* aTelephony, CTelephony::TCallId aCallId);
    TInt ResumeCall();
private:
    void RunL();
    void DoCancel();
};
 
CClientApp::CClientApp(CTelephony* aTelephony, CTelephony::TCallId aCallId)
    : CActive(EPriorityStandard),
      iTelephony(aTelephony),
      iCallId(aCallId)
    {
       //Constructor
    }
 
TInt CClientApp::ResumeCall()
    {
    //Check that the phone supports Resuming calls.
    CTelephony::TCallCapsV1 callCapsV1;
    CTelephony::TCallCapsV1Pckg callCapsV1Pckg(callCapsV1);
    iTelephony->GetCallDynamicCaps(iCallId, callCapsV1Pckg);
 
    if( callCapsV1.iControlCaps & CTelephony::KCapsResume )
       {
       //The call represented by 'iCallId' can be resumed
       iTelephony->Resume(iStatus, iCallId);
       SetActive();
       return KErrNone;
       }
    else
       {
       //The call cannot be resumed;
       //return an error indicate this.
       return KErrNotSupported;
       }
    }
 
void CClientApp::RunL()
    {
    if(iStatus==KErrNone)
       {
          //The call has been resumed successfully;
       }
    }
 
void CClientApp::DoCancel()
    {
    iTelephony->CancelAsync(CTelephony::EResumeCancel);
    }







Wiki Internal Links

Related Discussions
Thread Thread Starter Forum Replies Last Post
call settings nsivach General Symbian C++ 9 2007-09-07 14:45
Access to call log krtrivdi Python 1 2007-07-16 15:37
Teminate a call TheLittleBird General Symbian C++ 8 2007-09-15 01:12
How to implement the "pause" function ? ziyaaf Mobile Java General 1 2008-05-28 05:56
Help Required(Calling a number when in browser) santy563 General Browsing 2 2008-05-11 15:49
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX