hangup on p910

Login to reply to this topic.
Wed, 2005-09-14 10:20
Joined: 2005-09-14
Forum posts: 2
Hello,

I've got a problem when i hang up a call on p910 (works fine on 6600).
here is the runL :
   RCall::TCallInfo aInfo;
   iCall.GetInfo(aInfo);

   if (RCall::EStatusConnected != aInfo.iStatus)
   {
                   // let's make my work
                   return;
   }

   // Let's go for a turn
   iLine.NotifyStatusChange(iStatus, iCallStatus);
   SetActive();

The problem is that i got a button to hangup which call the fonction :
void CMyClass::hangUp()
{
   RCall::TCallInfo aInfo;
   iCall.GetInfo(aInfo);

   if (RCall::EStatusConnected == aInfo.iStatus)
   {
      RCall iCall2;
      RLine::TLineInfo lineInfo;
      iLine.GetInfo(lineInfo);
      if (KErrNone == iCall2.OpenExistingCall(iLine, lineInfo.iNameOfLastCallAdded))
      {
         iCall2.HangUp();
      }
   }
}

On 6600, as i said, it works fine, but on p910, the HangUp() stays blocked.
I tried to call HangUp(status), which must be asynchronous, but it blocks too,

If anybody has an idea...
Thank you.

Thu, 2005-09-22 14:59
Joined: 2005-09-14
Forum posts: 2
Re: hangup on p910
Nobody knows yet Huh
Fri, 2006-03-10 01:32
Joined: 2005-05-19
Forum posts: 45
Re: hangup on p910
Surprise that works on the 6600... It should work...according to the docs, but if you are not the call owner, the call to hangup seems to cause a panic on my phone.

My solution, on the 6600, was to open a comm port to the modem and issue an ATH comment.  It seems to work without creating problems with my app... and allows me to not have to worry about call ownership.... this is, of course, if you are working with CSD connections... not sure if it will work with a voice call.

"If we knew what it was we were doing, it would not be called research, would it?" - Albert Einstein

  • Login to reply to this topic.