Hangup

Login to reply to this topic.
Wed, 2005-08-10 14:50
Joined: 2005-05-02
Forum posts: 2
i am able to dial a call from my 6600 and now i want to close the call on the press of RED button.
The problem is i am able to close the call only after the other end has picked up the call.I checked and found that i am not the owner of that call thought i am dialing it. Is it cause of some ownership issues??? how can i acquire the ownership of the call.i can call acquireownership but the document says that it will be completed only
"Aquires ownership from another client. This function completes when the current call owner calls the TransferOwnership() function, or if it closes its handle without hanging up. When (and if) the request completes, call ownership has transferred to the new client."
How to make sure that this function is completed??


Best Regards
Himanshu

Thu, 2005-08-11 04:41
Joined: 2003-04-01
Forum posts: 142
Re: Hangup
here's code for hanging up incoming call:

TName callName;
   RLine::TLineInfo lineInfo;
   TRequestStatus status;
   RCall::TStatus callStatus;

   iLine.GetStatus(callStatus);

   if(callStatus == RCall::EStatusRinging)
   {
      iLine.GetInfo(lineInfo);
      callName.Copy(lineInfo.iNameOfCallForAnswering);
      
      iCall.OpenExistingCall(iLine, callName);
      iCall.AnswerIncomingCall(status);
      User::WaitForRequest(status);

      iCall.HangUp();
      iCall.Close();

      Ret = ETrue;
   }


you propably could use similar approach on outgoing calls as well.

yucca
Tue, 2005-08-23 19:41
Joined: 2005-07-12
Forum posts: 14
Re: Hangup
I have a question for you yucca?

I would like to know What should I do in order to hang up an Incoming call that I detect.
My problem is that I don't know where I should situate the code for hang up.
Should I situate it in the swich (aCommand)... but how can I import the iLine and the iCall detected in the CActiveIncomingCallObserver....

Thanks and Sorry because of my stupid question.

  • Login to reply to this topic.