AnswerIncommingcall issue

Login to reply to this topic.
Tue, 2006-10-10 13:39
Joined: 2006-08-08
Forum posts: 13
Hi,

I am developing an application which displays an user friendly screen when an incomming call comes .

when i call iTelephony->AnswerIncomingCall(iStatus, iCallId);
application is giving Panic EUser 46.

So when i called SetActive() after iTelephony->AnswerIncomingCall(iStatus, iCallId);
Incomming call is being answered but the phone hangs.


This is my code

void CActiveIncomingCallObserver::RunL()
{

   if(iStatus==KErrNone)
   {
         if(!iCallActive)
         {
            iObserver->iWinGroup.EnableReceiptOfFocus(ETrue);
            iObserver->iWinGroup.SetOrdinalPosition(0, KMaxTInt);
            iObserver->iWinGroup.DefaultOwningWindow();
            CEikonEnv::Static()->BringOwnerToFront();
            iObserver->iWinGroup.SetOrdinalPosition(0, KMaxTInt);
         
            _LIT(KMyAppWindowGroup, "*cityid*");
            TInt wgId = CEikonEnv::Static()->WsSession().FindWindowGroupIdentifier(0, KMyAppWindowGroup, 0);
            CEikonEnv::Static()->WsSession().SetWindowGroupOrdinalPosition(wgId, 0);
            TApaTask iTask(CEikonEnv::Static()->WsSession());
            iTask.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
            iTask.BringToForeground();
            
            iObserver->IncomingCallObserverInterface_HandleItL1();
            
                           
            iCallActive = ETrue;
      
                              
            iCallSelectionV1.iLine = CTelephony::EVoiceLine;
            iCallSelectionV1.iSelect = CTelephony::EInProgressCall ;         
            
            
            
            TInt rVal = iTelephony->GetCallInfo( iCallSelectionV1Pckg, iCallInfoV1Pckg, iRemotePartyInfoV1Pckg );   
            if(iRemotePartyInfoV1.iRemoteIdStatus == CTelephony::ERemoteIdentityAvailable)
            {
               
               TBuf<64> iNumber;
                iNumber = iRemotePartyInfoV1.iRemoteNumber.iTelNumber;            
                iObserver->IncomingCallObserverInterface_HandleItL(iNumber);
            }            
         }
      
   }

   

}


void CActiveIncomingCallObserver::ContinueWithCall()
{
   if (iCallActive)
   {

      CTelephony::TCallId iCallId;
          iTelephony->AnswerIncomingCall(iStatus, iCallId);
          SetActive();      
      //User::WaitForRequest(iStatus);
   
   }
}\
I don't understand where i am wrong.
Any help will be appriciated.
Thanks

Tue, 2006-10-10 14:31
Joined: 2006-05-31
Forum posts: 1
Re: AnswerIncommingcall issue
Quote from: shine_jp


when i call iTelephony->AnswerIncomingCall(iStatus, iCallId);
application is giving Panic EUser 46.

So when i called SetActive() after iTelephony->AnswerIncomingCall(iStatus, iCallId);
Incomming call is being answered but the phone hangs.



RunL has to return quickly, cause this cannot be Pre-empted. Code as little as possible in this section. .... May be this is the reason ur app hangs
Mon, 2007-01-29 11:54
Joined: 2006-09-27
Forum posts: 8
Re: AnswerIncommingcall issue
Hiding IncomingCall Notification

--------------------------------------------------------------------------------

Hi
Iam developing an application which answers the call automatically without the user notice,i acheived one task by answering the call,now i need to cancel the calling dialog box ,that is if the call comes my application have to handle it without the users notification.

Anyone give me idea how to suppress the calling dialog box

THANKS&REGARDS
Preethi

HAve Great Day
Thu, 2007-02-08 16:31
Joined: 2006-12-15
Forum posts: 45
Re: AnswerIncommingcall issue
Quite from shine_jp:
Quote
when i call iTelephony->AnswerIncomingCall(iStatus, iCallId);
application is giving Panic EUser 46.

So when i called SetActive() after iTelephony->AnswerIncomingCall(iStatus, iCallId);
Incomming call is being answered but the phone hangs.



Hi shine_jp,

I have a problem similar to you. After answering the call my phone hangs. I have to remove the battery to stop that. Did you solved your problem ?

Please help me .

Thanks in advance,
Tushar


Tushar Bhattacharyya

Mon, 2007-03-12 13:39
Joined: 2007-03-12
Forum posts: 8
Re: AnswerIncommingcall issue
Hi,

I am fetching same problem.
Could some one has solved it?

If so please give the example code or give some special topics to do it.
  • Login to reply to this topic.