×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Oct 2004
    Location
    Hamburg
    Posts
    58

    Arrow Hang up outgoing call while dialling

    Hi all,

    i want to cancel outgoing calls. In this case I am checking the state of a RLine in a CActive. If needed I get a RMobileCall object from the Line to become access to the call. The usage of hangup(void) should cancel the call. I tried this in the EStatusDialling state and hangup didn't have an effect:

    Code:
    ...
    
    switch (iCallStatus) {
    
      ...
      
      case RCall::EStatusDialling:
        {
          RLine::TLineInfo lineInfo;		
          iLine.GetInfo(lineInfo);
          if (iCall.OpenExistingCall(iLine, lineInfo.iNameOfLastCallAdded) == KErrNone) {
            iCall.HangUp();
            iCall.Close();
            CEikonEnv::Static()->AlertWin(_L("(dialling) hang up!"));
          }
        }
        break;
    
      ...
    
    }
    
    ...
    The outgoing call was generated regular above the phone and not by my application. So I thought that I can't cancel dialling because I am not the owner of the call.

    BUT:
    If I use he same piece of code in the EStatusConnecting state, the hangup works fine:

    Code:
    ...
    
    switch (iCallStatus) {
    
      ...
      
      case RCall::EStatusConnecting:
        {
          RLine::TLineInfo lineInfo;		
          iLine.GetInfo(lineInfo);
          if (iCall.OpenExistingCall(iLine, lineInfo.iNameOfLastCallAdded) == KErrNone) {
            iCall.HangUp();
            iCall.Close();
            CEikonEnv::Static()->AlertWin(_L("(connecting) hang up!"));
          }
        }
        break;
    
      ...
    
    }
    
    ...
    So I think the ownership is not the problem. Unfortunately EStatusConnecting isn't acceptable to cancel the outgoing call, because the target phone rings.

    My question:
    Exists a way to cancel a call while the dialling process?

    (I tried iCall.DialCancel() and iCall.Close(), too. But these functions have other jobs.) Addionally I tried to get the ownership of the call with iCall.AcquireOwnership(acquireState), but it fails.

    I hope that somebody can help me...

    Thank you & Cheers

  2. #2
    Regular Contributor
    Join Date
    Oct 2004
    Location
    Hamburg
    Posts
    58

    Unhappy etelagsm.h / gsmadv.lib

    Please can someone send me the gsmadv.lib.

    Thx
    Last edited by grapentin; 2006-09-19 at 17:29.

  3. #3
    Regular Contributor
    Join Date
    Oct 2004
    Location
    Hamburg
    Posts
    58

    Thumbs down gsmadv.lib

    Hmmm, gsmadv.lib is no solution. It doesn't work on higher symbian versions.

Similar Threads

  1. Replies: 2
    Last Post: 2009-01-28, 15:29
  2. PLEASE HELP , try to hang up an outgoing call
    By white_dragon in forum Symbian
    Replies: 12
    Last Post: 2008-11-28, 08:35
  3. SX1 dialling initiates fax call instead of voice call
    By kdinn in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2005-08-25, 06:12
  4. hang up outgoing call
    By white_dragon in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-01-14, 14:34
  5. Try to Hang up outgoing call - Update
    By white_dragon in forum Symbian
    Replies: 2
    Last Post: 2005-01-11, 22:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×