|
|
User login
Feeds |
Hangup
|
|||||
| Wed, 2005-08-10 14:50 | |
|
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 |
|
Forum posts: 142
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
Forum posts: 14
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.